aboutsummaryrefslogtreecommitdiff
path: root/pkg/requests
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/requests')
-rw-r--r--pkg/requests/requests.go2
-rw-r--r--pkg/requests/requests_test.go4
2 files changed, 3 insertions, 3 deletions
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",