This project implements the Poseidon hash function using gnark, a zero-knowledge proof (ZKP) circuit generator library in Go.
Poseidon is a cryptographic hash function that is widely used in various applications and widely used in zero-knowledge proofs. This implementation provides a straightforward way to generate Poseidon hash circuits using the gnark library.
My circuit and tests are based on this other Go implementation.
- Generate Poseidon hash circuits with customizable parameters.
- Efficient and secure implementation using gnark's circuit generation capabilities.
- Install Go by following the official Go installation guide.
- Install the gnark library by running the following command:
go get github.com/consensys/gnark go get github.com/consensys/gnark-crypto