From f3e418081703081d984e48e3ad2a7e98a6206bde Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 29 Apr 2022 15:23:41 +0200 Subject: change verification_key to public_key Issue: #40 --- pkg/requests/requests.go | 2 +- pkg/requests/requests_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/requests') diff --git a/pkg/requests/requests.go b/pkg/requests/requests.go index 94b3130..7d7437d 100644 --- a/pkg/requests/requests.go +++ b/pkg/requests/requests.go @@ -15,7 +15,7 @@ type Leaf struct { ShardHint uint64 `ascii:"shard_hint"` Message types.Hash `ascii:"message"` Signature types.Signature `ascii:"signature"` - VerificationKey types.PublicKey `ascii:"verification_key"` + PublicKey types.PublicKey `ascii:"public_key"` DomainHint string `ascii:"domain_hint"` } diff --git a/pkg/requests/requests_test.go b/pkg/requests/requests_test.go index d6aaf6c..e439774 100644 --- a/pkg/requests/requests_test.go +++ b/pkg/requests/requests_test.go @@ -223,7 +223,7 @@ func validLeaf(t *testing.T) *Leaf { ShardHint: 1, Message: *newHashBufferInc(t), Signature: *newSigBufferInc(t), - VerificationKey: *newPubBufferInc(t), + PublicKey: *newPubBufferInc(t), DomainHint: "example.com", } } @@ -234,7 +234,7 @@ func validLeafASCII(t *testing.T) string { "shard_hint", 1, "message", newHashBufferInc(t)[:], "signature", newSigBufferInc(t)[:], - "verification_key", newPubBufferInc(t)[:], + "public_key", newPubBufferInc(t)[:], "domain_hint", "example.com", ) } -- cgit v1.2.3