bmt: Binary Merkle Tree Hash (#14334)
bmt is a new package that provides hashers for binary merkle tree hashes on size-limited chunks. the main motivation is that using BMT hash as the chunk hash of the swarm hash offers logsize inclusion proofs for arbitrary files on a 32-byte resolution completely viable to use in challenges on the blockchain.
Showing
- bmt/bmt.go 562 additions, 0 deletionsbmt/bmt.go
- bmt/bmt_r.go 85 additions, 0 deletionsbmt/bmt_r.go
- bmt/bmt_test.go 481 additions, 0 deletionsbmt/bmt_test.go
- swarm/storage/chunker.go 2 additions, 1 deletionswarm/storage/chunker.go
- swarm/storage/types.go 1 addition, 0 deletionsswarm/storage/types.go
Loading
Please register or sign in to comment