package
1.0.0
Repository: https://github.com/iotaledger/iota.go.git
Documentation: pkg.go.dev

# Functions

CreateMerkleTree creates a MerkleTree structure of the specified depth, using a SHAKE256 key of the the length specified by the supplied securitylevel, deriving subseeds from the provided seed.
LoadMerkleTreeFile loads a binary file persisted with StoreMerkleTreeFile into a MerkleTree structure.
MerkleRoot computes the Merkle tree root from a leaf hash and the given audit path.
SignatureFragments returns the signed fragments of hashToSign for the given seed and leafIndex.
StoreMerkleTreeFile stores the MerkleTree structure in a binary output file.
ValidateSignatureFragments validates the given signature fragments by checking whether the address computed from hashToSign and fragments validates the Merkle proof.

# Variables

ErrDepthTooLarge is returned when the depth for creating the Merkle tree is too high.
ErrDepthTooSmall is returned when the depth for creating the Merkle tree is too low.
ErrInvalidAuditPathLength is returned when the length of the Merkle audit path does not match the leaf index.
ErrInvalidLeafIndex is returned for invalid leaf indices.

# Structs

MerkleCreateOptions is used to pass optional creation options to CreateMerkleTree.
MerkleTree contains the Merkle tree used for the coordinator signatures.
MerkleTreeLayer contains the nodes of a layer of a Merkle tree.