aboutsummaryrefslogtreecommitdiff
path: root/pkg/db/trillian.go
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 15:31:45 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-29 22:16:22 +0200
commit203e2144f67269e879716e6406bb78e8e3728938 (patch)
treefed67be13cb7dfe903eb61c2d9f87ea3333f4ee5 /pkg/db/trillian.go
parentcb5c579ae46ee0570f2f32408e0427f989bd33ab (diff)
change verification_key to public_key
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 97f1305..024a021 100644
--- a/pkg/db/trillian.go
+++ b/pkg/db/trillian.go
@@ -29,7 +29,7 @@ func (c *TrillianClient) AddLeaf(ctx context.Context, req *requests.Leaf) error
Checksum: *types.HashFn(req.Message[:]),
},
Signature: req.Signature,
- KeyHash: *types.HashFn(req.VerificationKey[:]),
+ KeyHash: *types.HashFn(req.PublicKey[:]),
}
serialized := leaf.ToBinary()