diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-05-21 20:31:09 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-06-21 19:46:54 +0200 |
commit | bbd6591c4f87b3f2c3e870b6418c6234d90a82e6 (patch) | |
tree | b28921823087f9bbdd8536cf536ec4d9301dd360 /pkg/requests | |
parent | 8d097316c0a12f14de4b9e27e1fe4c458c32f4b0 (diff) |
go fmt
Diffstat (limited to 'pkg/requests')
-rw-r--r-- | pkg/requests/requests.go | 12 | ||||
-rw-r--r-- | pkg/requests/requests_test.go | 10 |
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", } } |