aboutsummaryrefslogtreecommitdiff
path: root/pkg/db/trillian.go
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 15:08:53 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-29 22:16:22 +0200
commitcb5c579ae46ee0570f2f32408e0427f989bd33ab (patch)
tree3848d1e492a8d947062494d935b432f25b352370 /pkg/db/trillian.go
parent26a04562c886dd1c46e738e29d2754631ff33992 (diff)
change 'preimage' to 'message'
Issue: #40
Diffstat (limited to 'pkg/db/trillian.go')
-rw-r--r--pkg/db/trillian.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/db/trillian.go b/pkg/db/trillian.go
index 34501b9..97f1305 100644
--- a/pkg/db/trillian.go
+++ b/pkg/db/trillian.go
@@ -26,7 +26,7 @@ func (c *TrillianClient) AddLeaf(ctx context.Context, req *requests.Leaf) error
leaf := types.Leaf{
Statement: types.Statement{
ShardHint: req.ShardHint,
- Checksum: *types.HashFn(req.Preimage[:]),
+ Checksum: *types.HashFn(req.Message[:]),
},
Signature: req.Signature,
KeyHash: *types.HashFn(req.VerificationKey[:]),