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>
Expand description
Create legacy circuit for Poseidon hash. If possible, prefer the equivalent ‘optimal’ alternatives.