Crate poseidon377
source ·Expand description
An instantiation of Poseidon for the BLS12-377 scalar field.
Modules
Macros
- Individually absorbs each element in a comma-separated list of absorbables into a sponge. Format is
absorb!(s, a_0, a_1, ..., a_n)
, wheres
is a mutable reference to a sponge and eacha_i
implementsAbsorb
. - Individually absorbs each element in a comma-separated list of [
Absorbable
]s into a sponge. Format isabsorb!(s, a_0, a_1, ..., a_n)
, wheres
is a mutable reference to a sponge and eacha_i
implementsAbsorbableVar
. - Quickly convert a list of different
Absorb
s into sponge bytes. - Quickly convert a list of different
Absorb
s into sponge field elements. - Quickly convert a list of different [
Absorbable
]s into sponge field elements.
Structs
- Represents a generic instance of
Poseidon
. - A set of Poseidon parameters for a given set of input parameters.
Statics
- Parameters for the rate-1 instance of Poseidon.
- Parameters for the rate-2 instance of Poseidon.
- Parameters for the rate-3 instance of Poseidon.
- Parameters for the rate-4 instance of Poseidon.
- Parameters for the rate-5 instance of Poseidon.
- Parameters for the rate-6 instance of Poseidon.
- Parameters for the rate-7 instance of Poseidon.
Functions
- Hash a single
Fq
element with the provideddomain_separator
. - Hash two
Fq
elements with the provideddomain_separator
. - Hash three
Fq
elements with the provideddomain_separator
. - Hash four
Fq
elements with the provideddomain_separator
. - Hash five
Fq
elements with the provideddomain_separator
. - Hash six
Fq
elements with the provideddomain_separator
. - Hash seven
Fq
elements with the provideddomain_separator
.