aboutsummaryrefslogtreecommitdiff
path: root/pkg/types/leaf.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-05-21 20:31:09 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-06-21 19:46:54 +0200
commitbbd6591c4f87b3f2c3e870b6418c6234d90a82e6 (patch)
treeb28921823087f9bbdd8536cf536ec4d9301dd360 /pkg/types/leaf.go
parent8d097316c0a12f14de4b9e27e1fe4c458c32f4b0 (diff)
go fmt
Diffstat (limited to 'pkg/types/leaf.go')
-rw-r--r--pkg/types/leaf.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/types/leaf.go b/pkg/types/leaf.go
index 9e8d445..99cf08a 100644
--- a/pkg/types/leaf.go
+++ b/pkg/types/leaf.go
@@ -12,14 +12,14 @@ import (
)
type Statement struct {
- ShardHint uint64 `ascii:"shard_hint"`
- Checksum merkle.Hash `ascii:"checksum"`
+ ShardHint uint64 `ascii:"shard_hint"`
+ Checksum merkle.Hash `ascii:"checksum"`
}
type Leaf struct {
Statement
- Signature Signature `ascii:"signature"`
- KeyHash merkle.Hash `ascii:"key_hash"`
+ Signature Signature `ascii:"signature"`
+ KeyHash merkle.Hash `ascii:"key_hash"`
}
type Leaves []Leaf
@@ -84,10 +84,10 @@ func (l *Leaf) FromASCII(r io.Reader) error {
func (l *Leaves) FromASCII(r io.Reader) error {
leaves := &struct {
- ShardHint []uint64 `ascii:"shard_hint"`
- Checksum []merkle.Hash `ascii:"checksum"`
- Signature []Signature `ascii:"signature"`
- KeyHash []merkle.Hash `ascii:"key_hash"`
+ ShardHint []uint64 `ascii:"shard_hint"`
+ Checksum []merkle.Hash `ascii:"checksum"`
+ Signature []Signature `ascii:"signature"`
+ KeyHash []merkle.Hash `ascii:"key_hash"`
}{}
if err := ascii.StdEncoding.Deserialize(r, leaves); err != nil {