aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum-debug/hashleaf
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sigsum-debug/hashleaf')
-rw-r--r--cmd/sigsum-debug/hashleaf/hashleaf.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/sigsum-debug/hashleaf/hashleaf.go b/cmd/sigsum-debug/hashleaf/hashleaf.go
index 00f8bbb..0f5d3e3 100644
--- a/cmd/sigsum-debug/hashleaf/hashleaf.go
+++ b/cmd/sigsum-debug/hashleaf/hashleaf.go
@@ -18,9 +18,10 @@ func Main(_ []string, optPriv string, optShardHint uint64) error {
if err != nil {
return fmt.Errorf("sign: %v", err)
}
+ preimage := types.HashFn(data)
stm := types.Statement{
ShardHint: optShardHint,
- Checksum: *types.HashFn(data),
+ Checksum: *types.HashFn(preimage[:]),
}
sig, err := stm.Sign(priv)
if err != nil {