#black-box #solver #function #proving #noir #acir #brillig

acvm_blackbox_solver

A solver for the blackbox functions found in ACIR and Brillig

22 releases (breaking)

new 0.44.0 Apr 24, 2024
0.42.0 Mar 25, 2024
0.38.0 Dec 18, 2023
0.27.0 Sep 20, 2023
0.21.0 Jul 26, 2023

#705 in Algorithms

Download history 7/week @ 2024-01-22 23/week @ 2024-02-19 40/week @ 2024-02-26 8/week @ 2024-03-04 208/week @ 2024-03-11 13/week @ 2024-03-18 156/week @ 2024-03-25 61/week @ 2024-04-01 169/week @ 2024-04-08 16/week @ 2024-04-15

404 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

420KB
8K SLoC

C++ 5.5K SLoC Rust 2.5K SLoC // 0.0% comments

The Noir Programming Language

Noir is a Domain Specific Language for SNARK proving systems. It has been designed to use any ACIR compatible proving system.

This implementation is in early development. It has not been reviewed or audited. It is not suitable to be used in production. Expect bugs!

Quick Start

Read the installation section from the Noir docs.

Once you have read through the documentation, you can visit Awesome Noir to run some of the examples that others have created.

Getting Help

Join the Noir forum or Discord

Contributing

See CONTRIBUTING.md.

Future Work

The current focus is to gather as much feedback as possible while in the alpha phase. The main focuses of Noir are safety and developer experience. If you find a feature that does not seem to be in line with these goals, please open an issue!

Minimum Rust version

This workspace's minimum supported rustc version is 1.74.1.

License

Noir is free and open source. It is distributed under a dual license. (MIT/APACHE)

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


lib.rs:

This crate provides the implementation of BlackBox functions of ACIR and Brillig. For functions that are backend-dependent, it provides a Trait [BlackBoxFunctionSolver] that must be implemented by the backend. For functions that have a reference implementation, such as [keccak256], this crate exports the reference implementation directly.

Dependencies

~8MB
~157K SLoC