darkfi_sdk::crypto::smt

Module 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.