aboutsummaryrefslogtreecommitdiff
path: root/pkg/requests
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 15:21:33 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-29 22:07:01 +0200
commit60131023dd5b3d28175d4cc5f7519086793482dd (patch)
tree5685b8b8c3342fb24e1ae8c033267a2c27ba6ce4 /pkg/requests
parent8db1fdd6b372dab210a77f3c0d48d9deebfe5da3 (diff)
change 'preimage' to 'message'
Issue: #40
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",