diff options
Diffstat (limited to 'cmd/sigsum-debug/leaf/sign/sign.go')
-rw-r--r-- | cmd/sigsum-debug/leaf/sign/sign.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/sigsum-debug/leaf/sign/sign.go b/cmd/sigsum-debug/leaf/sign/sign.go index 3b40c32..b371baf 100644 --- a/cmd/sigsum-debug/leaf/sign/sign.go +++ b/cmd/sigsum-debug/leaf/sign/sign.go @@ -6,6 +6,7 @@ import ( "git.sigsum.org/sigsum-go/internal/fmtio" "git.sigsum.org/sigsum-go/pkg/hex" + "git.sigsum.org/sigsum-go/pkg/merkle" "git.sigsum.org/sigsum-go/pkg/types" ) @@ -22,10 +23,10 @@ func Main(args []string, optPrivateKey string, optShardHint uint64) error { return fmt.Errorf("parse private key: %w", err) } - message := types.HashFn(data) + message := merkle.HashFn(data) stm := types.Statement{ ShardHint: optShardHint, - Checksum: *types.HashFn(message[:]), + Checksum: *merkle.HashFn(message[:]), } sig, err := stm.Sign(priv) if err != nil { |