aboutsummaryrefslogtreecommitdiff
path: root/pkg/client
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-03-28 15:45:33 +0200
committerLinus Nordberg <linus@nordberg.se>2022-03-28 15:45:33 +0200
commit0a11cb0cb7953facd6393e0f5189164f112ade1c (patch)
tree3feef3420147ce645f826a1a2a0115b174e9844f /pkg/client
parent468b097a63c52fbf851c4cc99d8b716a13c19aa9 (diff)
sign using SSHSIG; add test using ssh-keygen -Y sign
Diffstat (limited to 'pkg/client')
-rw-r--r--pkg/client/submitter.go2
1 files changed, 1 insertions, 1 deletions
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[:]),