Function neptune::circuit2::poseidon_hash_allocated

source ยท
pub fn poseidon_hash_allocated<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 circuit for Poseidon hash, returning an allocated Num at the cost of one constraint.