Module neptune::circuit

source ·
Expand description

Poseidon circuit

Structs§

Enums§

Functions§

  • Calculates a * (b + to_add) — and enforces that constraint.
  • Calculates (a * (pre_add + b)) + post_add — and enforces that constraint.
  • Create legacy circuit for Poseidon hash. If possible, prefer the equivalent ‘optimal’ alternatives.
  • Convenience function to potentially ease upgrade transition from legacy to optimal circuits.
  • Calculates square of sum and enforces that constraint.