Module group

Module group 

Source
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
PoseidonHash
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
MerkleProof
Merkle proof alias