Module util
Source - Poseidon
- FieldElement
- FieldHasher
- 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.