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 ErrInvalidKeyLength = errors.New("invalid key length") + func CalculatePathRoot(path [][]byte, leafHash []byte, key []byte, hashAlgorithm crypto.Hash) ([]byte, error) + func IsBitSet(bytes []byte, bitPosition int) bool + type Data interface + AddToHasher func(hasher hash.Hash) + Key func() []byte + type SMT struct + func New(hasher hash.Hash, keyLength int, data []Data) (*SMT, error) + func (s *SMT) GetAuthPath(key []byte) ([][]byte, Data, error) + func (s *SMT) GetRootHash() []byte + func (s *SMT) PrettyPrint() string