Tommy ツ

Results 5 comments of Tommy ツ

If you want to know about the current Bitcoin Merkle Tree standard, you may check directly at their GitHub repo: https://github.com/bitcoin/bitcoin/blob/master/src/consensus/merkle.cpp. The Merkle Tree implemented in this repo is similar...

Hi, thanks for using this library and providing feedbacks. Yes. This library supports OpenZeppelin Merkle proof. The support was added after https://github.com/txaty/go-merkletree/pull/21. Since in OpenZeppelin's implementation, the hashes are sorted...

This will generate the identical root result as https://github.com/FantasyJony/openzeppelin-merkle-tree-go/blob/main/main.go: ```go package main import ( "bytes" "fmt" "sort" smt "github.com/FantasyJony/openzeppelin-merkle-tree-go/standard_merkle_tree" "github.com/ethereum/go-ethereum/common/hexutil" mt "github.com/txaty/go-merkletree" ) type dataBlock struct { value []interface{} }...

When calculating the second layer, there will be 3 nodes in total again. Thus the different handles of odd leaf lead to different results. In fact, any leaf numbers that...

Hi~ Thanks for using this library and providing feedbacks. Seems like there are some issues in `LeafHashFunc()`. Test `TestOpenzeppelinSortMerkleTree` can pass when changing only the hash function to the default...