From 60131023dd5b3d28175d4cc5f7519086793482dd Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 29 Apr 2022 15:21:33 +0200 Subject: change 'preimage' to 'message' 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 bb63de0..94b3130 100644 --- a/pkg/requests/requests.go +++ b/pkg/requests/requests.go @@ -13,7 +13,7 @@ import ( type Leaf struct { ShardHint uint64 `ascii:"shard_hint"` - Preimage types.Hash `ascii:"preimage"` + Message types.Hash `ascii:"message"` Signature types.Signature `ascii:"signature"` VerificationKey types.PublicKey `ascii:"verification_key"` DomainHint string `ascii:"domain_hint"` diff --git a/pkg/requests/requests_test.go b/pkg/requests/requests_test.go index c8104ff..d6aaf6c 100644 --- a/pkg/requests/requests_test.go +++ b/pkg/requests/requests_test.go @@ -221,7 +221,7 @@ func validLeaf(t *testing.T) *Leaf { t.Helper() return &Leaf{ ShardHint: 1, - Preimage: *newHashBufferInc(t), + Message: *newHashBufferInc(t), Signature: *newSigBufferInc(t), VerificationKey: *newPubBufferInc(t), DomainHint: "example.com", @@ -232,7 +232,7 @@ func validLeafASCII(t *testing.T) string { t.Helper() return fmt.Sprintf("%s=%d\n%s=%x\n%s=%x\n%s=%x\n%s=%s\n", "shard_hint", 1, - "preimage", newHashBufferInc(t)[:], + "message", newHashBufferInc(t)[:], "signature", newSigBufferInc(t)[:], "verification_key", newPubBufferInc(t)[:], "domain_hint", "example.com", -- cgit v1.2.3