Versions in this module Expand all Collapse all v0 v0.4.0 Mar 25, 2024 v0.3.0 Feb 28, 2024 Changes in this version + var ErrIndexOutOfBounds = errors.New("merkle tree data index out of bounds") + func EvalMerklePath(merklePath []*PathItem, leaf Data, hashAlgorithm crypto.Hash) []byte + func PlainTreeOutput(merklePath []*PathItem, input []byte, hashAlgorithm crypto.Hash) []byte + type Data interface + Hash func(hashAlgorithm crypto.Hash) []byte + type MerkleTree struct + func New[T Data](hashAlgorithm crypto.Hash, data []T) *MerkleTree + func (s *MerkleTree) GetMerklePath(leafIdx int) ([]*PathItem, error) + func (s *MerkleTree) GetRootHash() []byte + func (s *MerkleTree) PrettyPrint() string + type PathItem struct + DirectionLeft bool + Hash []byte