Skip to content
forked from powdr-labs/powdr

A modular stack for zkVMs, with a focus on productivity, security and performance.

License

Notifications You must be signed in to change notification settings

0xEigenLabs/powdr

This branch is 135 commits behind powdr-labs/powdr:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7c38c89 · Jan 22, 2025
Jan 10, 2025
Dec 9, 2024
Dec 9, 2024
Dec 18, 2024
Dec 10, 2024
Jan 17, 2025
Dec 9, 2024
Jan 17, 2025
Dec 3, 2024
Dec 30, 2024
Jan 16, 2025
Dec 9, 2024
Dec 29, 2024
Jan 18, 2025
Jan 22, 2025
Dec 23, 2024
Dec 9, 2024
Jan 10, 2025
Jan 20, 2025
Jan 16, 2025
Jan 22, 2025
Dec 9, 2024
Jan 15, 2025
Jan 16, 2025
Jan 16, 2025
Jan 8, 2025
Dec 30, 2024
Jan 16, 2025
Jan 16, 2025
Jan 10, 2025
Dec 9, 2024
Jan 22, 2025
Dec 9, 2024
Jan 20, 2025
Jan 20, 2025
May 10, 2024
Sep 13, 2024
Dec 30, 2024
May 14, 2024
May 14, 2024
Nov 18, 2024
Dec 23, 2024

Repository files navigation

powdr

Matrix Chat Twitter Follow

WARNING: This codebase is experimental and has not been audited. DO NOT USE FOR PRODUCTION!

For detailed documentation please visit the powdr book.

If you have any questions or want to contribute, feel free to write us in our Matrix Chat.

powdr is a toolkit that helps build zkVMs and similar proof frameworks.

It has two main components:

  • powdr-asm: an extensible assembly IR language to perform dynamic executions.
  • powdr-PIL: a low level constraint language that allows you to define arithmetic constraints, lookups, etc. It includes a functional meta-constraint language to describe how constraints are generated.

Both frontend and backend are highly flexible.

The powdrVM is a zkVM implementation that builds on powdr. Users can write code in std Rust which is compiled to RISCV, then to powdr-asm and finally to powdr-PIL.

powdr-PIL can be used to generate proofs using multiple backends, such as:

All stages are fully automatic, which means you do not need to write any additional code for witness generation besides your Rust code. All witnesses are automatically inferred from the constraints. Since the witnesses are inferred, powdr can ensure that the system is not underconstrained, i.e., there are no additional unwanted witnesses.

All artifacts from the compilation pipeline are human-readable. You can inspect the powdr-asm IR, the compiled powdr-PIL file, and its final optimized version.

The assembly language is designed to be extensible and does not have a single native instruction. Instead, all instructions are user-defined and because of that, it is easy to adapt powdr assembly to any VM.

Notes on Efficiency

The current focus of the project is VM support and developer experience. The compiler generates many unnecessary columns. We will soon start writing optimizer steps that should bring performance closer to existing production systems.

Project structure

For an overview of the project structure, run:

cargo doc --workspace --no-deps --open

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

License

This project is licensed under either of

at your option.

About

A modular stack for zkVMs, with a focus on productivity, security and performance.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 89.2%
  • Assembly 10.3%
  • Other 0.5%