[][src]Module neptune::poseidon

Poseidon hash

Structs

Poseidon

The Poseidon structure will accept a number of inputs equal to the arity.

PoseidonConstants

Enums

HashMode

Constants

DEFAULT_HASH_MODE

Functions

arity_tag

The arity tag is the first element of a Poseidon permutation. This extra element is necessary for 128-bit security.

poseidon

Poseidon convenience hash function. NOTE: this is expensive, since it computes all constants when initializing hasher struct.