darkfi_sdk::crypto::smt

Module util

Source

Structs§

Traits§

Functions§

  • Returns true iff the given index represents a left child.
  • 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.
  • Returns the index of the right child, given an index.
  • sibling 🔒
    Returns the index of the sibling, given an index.