From 0a11cb0cb7953facd6393e0f5189164f112ade1c Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 28 Mar 2022 15:45:33 +0200 Subject: sign using SSHSIG; add test using ssh-keygen -Y sign --- pkg/client/submitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/client/submitter.go') diff --git a/pkg/client/submitter.go b/pkg/client/submitter.go index 412890f..287bac3 100644 --- a/pkg/client/submitter.go +++ b/pkg/client/submitter.go @@ -75,7 +75,7 @@ func (sc *SubmitClient) AddLeaves(_ context.Context, leaves []requests.Leaf) ([] l := types.Leaf{ Statement: types.Statement{ ShardHint: leaf.ShardHint, - Checksum: leaf.Checksum, + Checksum: *types.HashFn(leaf.Preimage[:]), }, Signature: leaf.Signature, KeyHash: *types.HashFn(leaf.VerificationKey[:]), -- cgit v1.2.3