aboutsummaryrefslogtreecommitdiffstats
path: root/merkle.go
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2016-05-04 16:00:26 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2016-05-04 16:00:26 -0400
commit867f3654993a7e6f30009316d301b0f040dab224 (patch)
tree460085ea5f7f4bf7b1424e02e190e344de2a0b98 /merkle.go
parent7713bb6f8c06a0feb326ea629ad80ab44438326b (diff)
downloadpos-867f3654993a7e6f30009316d301b0f040dab224.tar.gz
Remove hard-coding of the hashsize
Diffstat (limited to 'merkle.go')
-rw-r--r--merkle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/merkle.go b/merkle.go
index f0a3f2b..6d126f7 100644
--- a/merkle.go
+++ b/merkle.go
@@ -7,7 +7,7 @@ import (
"golang.org/x/crypto/sha3"
)
-const hashSize int64 = 32
+var hashSize = int64(sha3.New256().Size())
type Merkle interface {
Build() []byte