diff options
Diffstat (limited to 'pkg/types/leaf.go')
-rw-r--r-- | pkg/types/leaf.go | 16 |
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 { |