aboutsummaryrefslogtreecommitdiff
path: root/pkg/types/tree_head.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/tree_head.go
parent8d097316c0a12f14de4b9e27e1fe4c458c32f4b0 (diff)
go fmt
Diffstat (limited to 'pkg/types/tree_head.go')
-rw-r--r--pkg/types/tree_head.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/types/tree_head.go b/pkg/types/tree_head.go
index 04b3b10..baedf08 100644
--- a/pkg/types/tree_head.go
+++ b/pkg/types/tree_head.go
@@ -13,9 +13,9 @@ import (
)
type TreeHead struct {
- Timestamp uint64 `ascii:"timestamp"`
- TreeSize uint64 `ascii:"tree_size"`
- RootHash merkle.Hash `ascii:"root_hash"`
+ Timestamp uint64 `ascii:"timestamp"`
+ TreeSize uint64 `ascii:"tree_size"`
+ RootHash merkle.Hash `ascii:"root_hash"`
}
type SignedTreeHead struct {
@@ -25,8 +25,8 @@ type SignedTreeHead struct {
type CosignedTreeHead struct {
SignedTreeHead
- Cosignature []Signature `ascii:"cosignature"`
- KeyHash []merkle.Hash `ascii:"key_hash"`
+ Cosignature []Signature `ascii:"cosignature"`
+ KeyHash []merkle.Hash `ascii:"key_hash"`
}
func (th *TreeHead) toBinary() []byte {