P

Poseidon2 implementations

Implement Poseidon2 in circom and Miden assembly (with a custom macroassembler)

Created on 2nd April 2023

P

Poseidon2 implementations

Implement Poseidon2 in circom and Miden assembly (with a custom macroassembler)

The problem Poseidon2 implementations solves

Poseidon is a popular hash function in ZK based solutions. A recent paper proposed an optimized version of the original Poseidon aptly named Poseidon2 that promises significant improvements over the existing Poseidon.

This submission might be of interest to Aleph Zero and Sismo for the Poseidon2 implementation, as well as Miden as a potential addition to their standard library.

The Circom version is specific to the bn128 field and currently only supports t=3

The Miden version provides two contributions to the standard library: a brand new meta-compiler to simplify the development of Miden assembly, and the actual implementation of Poseidon2 for Goldilocks field, t=8.

Discussion

Builders also viewed

See more projects on Devfolio