aboutsummaryrefslogtreecommitdiff
path: root/pkg/client
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-04-13 15:07:34 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-13 15:07:34 +0200
commitd86d2433e0da077063bb21dc7c29d491c6fe862f (patch)
tree5f760e33f25bfea5fca3fcb7c9f1f43d79dc99d9 /pkg/client
parent468b097a63c52fbf851c4cc99d8b716a13c19aa9 (diff)
parentee322c9e18b9675aab08f4c9f38f6be19b1d6890 (diff)
Merge branch 'sshsig' into main
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[:]),