An open API service indexing awesome lists of open source software.

https://github.com/rarimo/go-merkle

Merkle tree implementation on Golang
https://github.com/rarimo/go-merkle

Last synced: over 1 year ago
JSON representation

Merkle tree implementation on Golang

Awesome Lists containing this project

README

          

# Go Merkle tree light implementation

This implementation will construct the Merkle tree where parent hash are hash of concatenation of its leafs,
but firstly will go lexicographically smaller hash. Also, to check the path ypu should concatenate hashes in
lexicographically order.

More precisely:

According to Openzeppelin contracts "",
Hash of `a` and `b` will be:
- `hash(ab)`, if a < b
- `hash(ba)`, otherwise