aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum-debug/leaf/sign
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sigsum-debug/leaf/sign')
-rw-r--r--cmd/sigsum-debug/leaf/sign/sign.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sigsum-debug/leaf/sign/sign.go b/cmd/sigsum-debug/leaf/sign/sign.go
index 348ae23..3b40c32 100644
--- a/cmd/sigsum-debug/leaf/sign/sign.go
+++ b/cmd/sigsum-debug/leaf/sign/sign.go
@@ -22,10 +22,10 @@ func Main(args []string, optPrivateKey string, optShardHint uint64) error {
return fmt.Errorf("parse private key: %w", err)
}
- preimage := types.HashFn(data)
+ message := types.HashFn(data)
stm := types.Statement{
ShardHint: optShardHint,
- Checksum: *types.HashFn(preimage[:]),
+ Checksum: *types.HashFn(message[:]),
}
sig, err := stm.Sign(priv)
if err != nil {