From 203e2144f67269e879716e6406bb78e8e3728938 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 29 Apr 2022 15:31:45 +0200 Subject: change verification_key to public_key Issue: #40 --- pkg/db/trillian.go | 2 +- pkg/db/trillian_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/db') 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() diff --git a/pkg/db/trillian_test.go b/pkg/db/trillian_test.go index 9a390a1..2b19096 100644 --- a/pkg/db/trillian_test.go +++ b/pkg/db/trillian_test.go @@ -23,7 +23,7 @@ func TestAddLeaf(t *testing.T) { ShardHint: 0, Message: types.Hash{}, Signature: types.Signature{}, - VerificationKey: types.PublicKey{}, + PublicKey: types.PublicKey{}, DomainHint: "example.com", } for _, table := range []struct { -- cgit v1.2.3