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

Link to this function

get_merkle_tree_size(depth, buffer)

View Source

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 tree
  • buffer - 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