Module snarkvm_marlin::fiat_shamir
source · [−]Expand description
RNGs for the Marlin SNARK.
Re-exports
pub use traits::*;
Modules
Traits for the Fiat-Shamir RNG.
Structs
An RNG from any algebraic sponge
Building the Fiat-Shamir sponge’s gadget from any algebraic sponge’s gadget.
Implements a Fiat-Shamir based Rng that allows one to incrementally update the seed based on new messages in the proof transcript. Use a ChaCha stream cipher to generate the actual pseudorandom bits. Use a digest function to do absorbing.
Parameters and RNG used
A duplex sponge based using the Poseidon permutation.
the gadget for Poseidon sponge
Enums
A enum
specifying the possible failure modes of FiatShamir
.
Traits
A field with Poseidon parameters associated
Functions
Internal function that computes the ark and mds from the Poseidon Grain LFSR.
Internal function that uses the PoseidonDefaultParameters
to compute the Poseidon parameters.