Expand description
Group module
This module is a wrapper around the HashedLeanIMT
struct with some utility methods.
Leaves and nodes are the same size, 32 bytes.
Structs§
- Group
- Poseidon
Hash - Poseidon LeanIMT hasher
Constants§
- ELEMENT_
SIZE - Size of nodes and leaves in bytes
- EMPTY_
ELEMENT - Empty element
Functions§
- bytes_
to_ element - Converts a byte array to an element
- element_
to_ fq - Converts an element to a scalar
- fq_
to_ element - Converts a scalar to an element
Type Aliases§
- Element
- Element type alias
- Merkle
Proof - Merkle proof alias