aboutsummaryrefslogtreecommitdiff
path: root/pkg/requests
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/requests')
-rw-r--r--pkg/requests/requests.go12
-rw-r--r--pkg/requests/requests_test.go10
2 files changed, 11 insertions, 11 deletions
diff --git a/pkg/requests/requests.go b/pkg/requests/requests.go
index 6b74184..cfaaf29 100644
--- a/pkg/requests/requests.go
+++ b/pkg/requests/requests.go
@@ -13,11 +13,11 @@ import (
)
type Leaf struct {
- ShardHint uint64 `ascii:"shard_hint"`
- Message merkle.Hash `ascii:"message"`
- Signature types.Signature `ascii:"signature"`
- PublicKey types.PublicKey `ascii:"public_key"`
- DomainHint string `ascii:"domain_hint"`
+ ShardHint uint64 `ascii:"shard_hint"`
+ Message merkle.Hash `ascii:"message"`
+ Signature types.Signature `ascii:"signature"`
+ PublicKey types.PublicKey `ascii:"public_key"`
+ DomainHint string `ascii:"domain_hint"`
}
type Leaves struct {
@@ -37,7 +37,7 @@ type ConsistencyProof struct {
type Cosignature struct {
Cosignature types.Signature `ascii:"cosignature"`
- KeyHash merkle.Hash `ascii:"key_hash"`
+ KeyHash merkle.Hash `ascii:"key_hash"`
}
func (req *Leaf) ToASCII(w io.Writer) error {
diff --git a/pkg/requests/requests_test.go b/pkg/requests/requests_test.go
index db809c0..b4dfc70 100644
--- a/pkg/requests/requests_test.go
+++ b/pkg/requests/requests_test.go
@@ -221,11 +221,11 @@ func TestCosignatureFromASCII(t *testing.T) {
func validLeaf(t *testing.T) *Leaf {
t.Helper()
return &Leaf{
- ShardHint: 1,
- Message: *newHashBufferInc(t),
- Signature: *newSigBufferInc(t),
- PublicKey: *newPubBufferInc(t),
- DomainHint: "example.com",
+ ShardHint: 1,
+ Message: *newHashBufferInc(t),
+ Signature: *newSigBufferInc(t),
+ PublicKey: *newPubBufferInc(t),
+ DomainHint: "example.com",
}
}