Expand description
ConstantsΒ§
- L_
FERMAT_ πEXPONENT - An exponent to perform inverse of x^3 on prime field based on Fermatβs Little Theorem
- MODULUS π
- Modulus of prime field 2^256 - 2^32 * 351 + 1
FunctionsΒ§
- backward_
mimc π - Executes
num_steps
of MiMC-calculation in backward direction for the giveninput
. - calculate_
round_ πconstants - Calculates set of round constants to perform MiMC-calculation on.
- eval
- Performs an Eval() step of the MiMC-based VDF
- forward_
mimc π - Executes
num_steps
of MiMC-calculation in forward direction for the giveninput
- verify
- Performs a Verify() step for the MiMC-based VDF result