Repository navigation
Conversation
ex10ded
requested review from
ZhiyuCircle,
ancazamfir,
romac and
sergio-mena
as code owners
December 4, 2026 11:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds native support for Poseidon2, a modern cryptographic permutation designed for efficient hashing in zero-knowledge proof systems. Verifiers that use Poseidon2 can call it directly from EVM contracts, lowering the gas cost of checking proofs on Arc.
This is especially useful for applications pursuing post-quantum security. Hash-based proof systems such as STARKs can verify computation without relying on elliptic-curve pairings, but checking their Merkle commitments on-chain requires repeated hashing. In a local Arc benchmark, accelerating Poseidon2 alone reduced the gas required to verify the same proof by 46.4%.
The precompile delegates the permutation and field arithmetic to Plonky3, using its published parameters and round constants. The Arc-specific code handles input validation, gas accounting and encoding the result. We pin Plonky3 to version 0.4.3 and check the output against a known-answer test vector. Least Authority’s independent 2024 audit of an earlier Plonky3 revision included both Poseidon2 and BabyBear field arithmetic. [Audit report, p. 5](https://leastauthority.com/wp-content/uploads/2024/11/Updated_071124_Polygon_Plonky3_Final_Audit_Report.pdf#page=5)