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), where s is a mutable reference to a sponge and each a_i implements Absorb.
  • Individually absorbs each element in a comma-separated list of [Absorbable]s into a sponge. Format is absorb!(s, a_0, a_1, ..., a_n), where s is a mutable reference to a sponge and each a_i implements AbsorbableVar.
  • Quickly convert a list of different Absorbs into sponge bytes.
  • Quickly convert a list of different Absorbs 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

Functions

  • Hash a single Fq element with the provided domain_separator.
  • Hash two Fq elements with the provided domain_separator.
  • Hash three Fq elements with the provided domain_separator.
  • Hash four Fq elements with the provided domain_separator.
  • Hash five Fq elements with the provided domain_separator.
  • Hash six Fq elements with the provided domain_separator.
  • Hash seven Fq elements with the provided domain_separator.

Type Definitions