Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/powdr-labs/powdr
A modular stack for zkVMs, with a focus on productivity, security and performance.
https://github.com/powdr-labs/powdr
Last synced: 5 days ago
JSON representation
A modular stack for zkVMs, with a focus on productivity, security and performance.
- Host: GitHub
- URL: https://github.com/powdr-labs/powdr
- Owner: powdr-labs
- License: apache-2.0
- Created: 2023-01-06T08:56:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:23:12.000Z (16 days ago)
- Last Synced: 2024-10-29T09:43:24.839Z (16 days ago)
- Language: Rust
- Homepage:
- Size: 18.7 MB
- Stars: 403
- Watchers: 16
- Forks: 80
- Open Issues: 237
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-zkvm - powdr
- awesome-zkvm - powdr
README
# powdr
[![Matrix Chat](https://img.shields.io/badge/Matrix%20-chat-brightgreen?style=plastic&logo=matrix)](https://matrix.to/#/#powdr:matrix.org)
[![Twitter Follow](https://img.shields.io/twitter/follow/powdr_labs?style=plastic&logo=twitter)](https://twitter.com/powdr_labs)> WARNING: This codebase is experimental and has not been audited. DO NOT USE FOR PRODUCTION!
For detailed documentation please visit [the powdr book](https://docs.powdr.org/).
If you have any questions or want to contribute, feel free to write us in our [Matrix Chat](https://matrix.to/#/#powdr:matrix.org).
*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.As an example, *powdr* contains a frontend that enables you to write code in (no-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:
- Halo2, using PSE's
- [Halo2](https://github.com/privacy-scaling-explorations/halo2)
- [snark-verifier](https://github.com/privacy-scaling-explorations/snark-verifier/)
- [halo2-solidity-verifier](https://github.com/privacy-scaling-explorations/halo2-solidity-verifier)
- eSTARK, using
- [Eigen's starky](https://github.com/0xEigenLabs/eigen-zkvm/)
- [our fork of Polygon's zkevm-prover](https://github.com/powdr-labs/zkevm-prover)
- Plonky3 (ongoing work): https://github.com/powdr-labs/powdr/pull/1158All 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 RISCV assembly files, the powdr-asm IR, and the compiled PIL file.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
- [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([`LICENSE-APACHE`](LICENSE-APACHE))
- [MIT license](https://opensource.org/licenses/MIT) ([`LICENSE-MIT`](LICENSE-MIT))at your option.