aboutsummaryrefslogtreecommitdiff
path: root/pkg/client
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/client')
-rw-r--r--pkg/client/submitter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/client/submitter.go b/pkg/client/submitter.go
index f03e66a..21c9258 100644
--- a/pkg/client/submitter.go
+++ b/pkg/client/submitter.go
@@ -73,9 +73,9 @@ func (sc *SubmitClient) AddLeaves(_ context.Context, leaves []requests.Leaf) ([]
bundles = nil
for _, leaf := range leaves {
l := types.Leaf{
- Statement: types.Statement{
+ SignedData: types.SignedData{
ShardHint: leaf.ShardHint,
- Checksum: leaf.Checksum,
+ Checksum: *types.HashFn(leaf.Preimage[:]),
},
Signature: leaf.Signature,
KeyHash: *types.HashFn(leaf.VerificationKey[:]),