arnaucube f31ed1d2d1 | 3 years ago | |
---|---|---|
.github/workflows | 3 years ago | |
.golangci.yml | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
addbatch.go | 3 years ago | |
addbatch_test.go | 3 years ago | |
dbg.go | 3 years ago | |
go.mod | 3 years ago | |
go.sum | 3 years ago | |
hash.go | 3 years ago | |
hash_test.go | 3 years ago | |
tree.go | 3 years ago | |
tree_test.go | 3 years ago | |
utils.go | 3 years ago | |
vt.go | 3 years ago | |
vt_test.go | 3 years ago |
arbo: tree in Esperanto.
MerkleTree implementation in Go. Compatible with the circomlib implementation of the MerkleTree (when using the Poseidon hash function), following the specification from https://docs.iden3.io/publications/pdfs/Merkle-Tree.pdf and https://eprint.iacr.org/2018/955.
Allows to define which hash function to use. So for example, when working with zkSnarks the Poseidon hash function can be used, but when not, it can be used the Blake3 hash function, which improves the computation time.