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(hashType string, hash []byte, merkleTree [][]byte, paths *[][]byte, ...) (brother []byte, parent []byte)
- func GetMerkleRoot(hashType string, hashes [][]byte) ([]byte, error)
- type Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMerkleTree ¶
take leaf node hash array and build merkle tree
func GetMerklePath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.