This repository contains an implementation of the Poseidon hash function for scalar fields of the BN254 elliptic curve group. BN254 (also known as alt-BN128) is currently the only curve with precompiled contracts on Ethereum for elliptic curve operations.
cargo run -r --bin permute
This implementation is created with reference to https://github.com/hrmk1o3/plonky2-bn254-poseidon.