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
- Host: GitHub
- URL: https://github.com/rarimo/go-merkle
- Owner: rarimo
- License: mit
- Created: 2023-10-04T12:18:07.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T11:05:43.000Z (over 2 years ago)
- Last Synced: 2025-01-24T07:45:42.274Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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