GitPedia

Latticefold

A lattice-based non-interactive folding scheme written in Rust

From NethermindEth·Updated June 18, 2026·View on GitHub·

A proof-of-concept implementation of the LatticeFold and LatticeFold+ folding schemes engineered by [Nethermind](https://nethermind.io) based on the works [LatticeFold: A Lattice-based Folding Scheme and its Applications to Succinct Proof Systems](https://eprint.iacr.org/2024/257) and [LatticeFold+: Faster, Simpler, Shorter Lattice-Based Folding for Succinct Proof Systems](https://eprint.iacr.org/2025/247) by Dan Boneh and Binyi Chen. The project is written primarily in Rust, distributed under the Apache License 2.0 license, first published in 2024. Key topics include: blockchain, ethereum, lattice-based-crypto, post-quantum-cryptography, rust.

LatticeFold

A proof-of-concept implementation of the LatticeFold and LatticeFold+ folding schemes engineered by Nethermind based on the works
LatticeFold: A Lattice-based Folding Scheme and its Applications to Succinct Proof Systems and LatticeFold+: Faster, Simpler, Shorter Lattice-Based Folding for Succinct Proof Systems by Dan Boneh and Binyi Chen.

DISCLAIMER: This is a proof-of-concept prototype, and in particular has not received careful code review. This implementation is provided "as is" and NOT ready for production use. Use at your own risk.

Benchmarks

To run the benchmarks on your local machine, simply execute cargo bench. This will take around 48 hours.
Use cargo bench --bench to measure relevant parts of the protocol as well as the Ajtai commitment scheme, and comment the prime fields you don't want to measure.

Building

The rust-toolchain file pins the version of the Rust toolchain, which the LatticeFold library builds with, to the specific version nightly-2025-03-06.

One can install the nightly-2025-03-06 toolchain by invoking:

bash
rustup install nightly-2025-03-06

After that, use cargo, the standard Rust build tool, to build the library:

bash
git clone https://github.com/NethermindEth/latticefold.git cd latticefold cargo build --release

Usage

Import the library:

toml
[dependencies] latticefold = { git = "https://github.com/NethermindEth/latticefold.git", package = "latticefold" }

Available packages:

  • latticefold: main crate, contains the non-interactive folding scheme implementation, together with the Ajtai commitment scheme, R1CS/CCS structures, Fiat-Shamir transcript machinery, etc.
  • latticefold-plus: an improved version of LatticeFold. Currently a work-in-progress implementation. See more.
  • cyclotomic-rings: contains the trait definition of a ring suitable to be used in the LatticeFold protocol, a few ready-to-use rings and short challenge set machinery.

Performance report

The performance report for this library can be found here.

Examples

Check latticefold/examples/README.md for examples.

Frontends

Currently, the only way to define a circuit to be folded is by specifying it as a rank-1 constraint system (R1CS) or a customizable constraint system (CCS).

License

The crates in this repository are licensed under either of the following licenses, at your discretion.

Unless you explicitly state otherwise, any contribution submitted for inclusion in this library by you shall be dual licensed as above (as defined in the Apache v2 License), without any additional terms or conditions.

Acknowledgments

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from NethermindEth/latticefold via the GitHub API.Last fetched: 6/25/2026