From 3f8010612c376ba9775101a3c823125ce9c82304 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 28 Mar 2022 13:18:52 +0200 Subject: follow SSHSIG changes in lib --- pkg/db/trillian.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/db/trillian.go') diff --git a/pkg/db/trillian.go b/pkg/db/trillian.go index 25b2fb3..453a884 100644 --- a/pkg/db/trillian.go +++ b/pkg/db/trillian.go @@ -26,7 +26,7 @@ func (c *TrillianClient) AddLeaf(ctx context.Context, req *requests.Leaf) error leaf := types.Leaf{ Statement: types.Statement{ ShardHint: req.ShardHint, - Checksum: req.Checksum, + Checksum: *types.HashFn(req.Preimage[:]), }, Signature: req.Signature, KeyHash: *types.HashFn(req.VerificationKey[:]), -- cgit v1.2.3