From bbd6591c4f87b3f2c3e870b6418c6234d90a82e6 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 21 May 2022 20:31:09 +0200 Subject: go fmt --- pkg/requests/requests.go | 12 ++++++------ pkg/requests/requests_test.go | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'pkg/requests') 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", } } -- cgit v1.2.3