/plonky2-bn254-poseidon

Primary LanguageRustApache License 2.0Apache-2.0

Plonky2 Circuit for BN254 Poseidon

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.

How to Use

cargo run -r --bin permute

This implementation is created with reference to https://github.com/hrmk1o3/plonky2-bn254-poseidon.