Module darkfi_sdk::crypto::smt::util
source ยท Structsยง
Traitsยง
Functionsยง
- is_left_child ๐Returns true iff the given index represents a left child.
- leaf_pos_to_index ๐Converts a leaf position to the internal BigUint index for storage.
- left_child ๐Returns the index of the left child, given an index.
- log2 ๐Returns the log2 value of the given number. Used for converting the index to the level.
- parent ๐Returns the index of the parent, given an index.
- right_child ๐Returns the index of the right child, given an index.
- sibling ๐Returns the index of the sibling, given an index.