Function neptune::circuit::poseidon_hash

source ·
pub fn poseidon_hash<CS, Scalar, A>(
    cs: CS,
    preimage: Vec<AllocatedNum<Scalar>>,
    constants: &PoseidonConstants<Scalar, A>,
) -> Result<AllocatedNum<Scalar>, SynthesisError>
where CS: ConstraintSystem<Scalar>, Scalar: PrimeField, A: Arity<Scalar>,
Expand description

Create legacy circuit for Poseidon hash. If possible, prefer the equivalent ‘optimal’ alternatives.