go-merkletree icon indicating copy to clipboard operation
go-merkletree copied to clipboard

Go Merkle Tree. High performance, Supporting parallel run, OpenZeppelin sorting pairs.

Results 3 go-merkletree issues
Sort by recently updated
recently updated
newest added

I find this library sort the hashed leafs two pairs only: ``` func concatSortHash(b1 []byte, b2 []byte) []byte { if bytes.Compare(b1, b2) < 0 { return concatHash(b1, b2) } return...

solidity: ```sol // SPDX-License-Identifier: MIT pragma solidity 0.8.19; import {MerkleProof} from "openzeppelin-contracts/utils/cryptography/MerkleProof.sol"; contract MerkleTreeUtil { function verifyMerkle(bytes32[] memory merkleProof, bytes32 _merkleRoot, address minterAddress) internal pure returns (bool) { return MerkleProof.verify(merkleProof,...

Why merkle tree can't be from 1 node? https://github.com/txaty/go-merkletree/blob/ccfc3d24289d9c28111edc02f688b8bef9f45fb7/merkle_tree.go#L104 Even if there's just one mode, we still can compute 1 node merkle tree. What is the standard solution?