aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 15:23:41 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-04-29 22:07:01 +0200
commitf3e418081703081d984e48e3ad2a7e98a6206bde (patch)
tree98a8fdcf3bde60cc77ac8de0e0e4cfd2c2cb909a
parent60131023dd5b3d28175d4cc5f7519086793482dd (diff)
change verification_key to public_keyv0.0.7
Issue: #40
-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 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",
)
}