Module darkfi_sdk::crypto::mimc_vdf

source ·
Expand description

Constants§

  • 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§

  • Executes num_steps of MiMC-calculation in backward direction for the given input.
  • Calculates set of round constants to perform MiMC-calculation on.
  • Performs an Eval() step of the MiMC-based VDF
  • Executes num_steps of MiMC-calculation in forward direction for the given input
  • Performs a Verify() step for the MiMC-based VDF result