Module dusk_poseidon::sponge [−][src]
Expand description
Reference implementation for the Poseidon Sponge hash function
Functions
Mirror the implementation of [super::sponge_hash
] inside of a PLONK circuit.
The hash
function takes an arbitrary number of Scalars and returns the
hash, using the Hades
ScalarStragegy.
Mirror the implementation of [truncate_hash
] inside of a PLONK circuit.
Applies [sponge_hash
] to the messages
recieved truncating the result to make it fit
inside a JubJubScalar.