Documentation ¶
Index ¶
- func BuildMerkleTree(hashType string, hashes [][]byte) ([][]byte, error)
- func Get(hashType crypto.HashType, data []byte) ([]byte, error)
- func GetByStrType(hashType string, data []byte) ([]byte, error)
- func GetHashAlgorithm(hashType crypto.HashType) (hash.Hash, error)
- func GetMerklePath(index int32, merkleTree [][]byte) [][]byte
- func GetMerkleRoot(hashType string, hashes [][]byte) ([]byte, error)
- func Prove(paths [][]byte, merkleRoot, txHash []byte, index uint32, hashType string) bool
- type Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMerkleTree ¶
take leaf node hash array and build merkle tree
Types ¶
Click to show internal directories.
Click to hide internal directories.