BubblegumNifs.MerkleTree (bubblegum_nifs v0.1.2) View Source
Functions related to Merkle tree operations
Link to this section Summary
Functions
Gets the calculated size of a merkle tree based on depth and buffer.
Link to this section Functions
Specs
get_merkle_tree_size(non_neg_integer(), non_neg_integer()) :: non_neg_integer()
Gets the calculated size of a merkle tree based on depth and buffer.
Parameters
depth
- The depth of the merkle treebuffer
- The buffer size of the merkle tree
Returns
{:ok, size}
- The calculated size in bytes as a u64{:error, reason}
- Error if the request fails