7 unstable releases (3 breaking)

0.3.0 Mar 22, 2023
0.2.0 Jun 23, 2022
0.1.0 May 10, 2022
0.1.0-beta.3 Apr 6, 2022
0.0.0 Oct 21, 2021

#4 in #halo

Download history 3830/week @ 2024-07-20 3223/week @ 2024-07-27 3928/week @ 2024-08-03 3415/week @ 2024-08-10 4600/week @ 2024-08-17 4339/week @ 2024-08-24 2869/week @ 2024-08-31 2774/week @ 2024-09-07 2085/week @ 2024-09-14 3640/week @ 2024-09-21 3964/week @ 2024-09-28 3718/week @ 2024-10-05 3809/week @ 2024-10-12 4090/week @ 2024-10-19 3008/week @ 2024-10-26 2981/week @ 2024-11-02

14,507 downloads per month
Used in 28 crates (3 directly)

MIT/Apache

2MB
46K SLoC

halo2_gadgets Crates.io

Requires Rust 1.60+.

Documentation

License

Licensed under either of

at your option.

Contribution

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 above, without any additional terms or conditions.


lib.rs:

This crate provides various common gadgets and chips for use with halo2_proofs.

Gadgets

Gadgets are an abstraction for writing reusable and interoperable circuit logic. They do not create any circuit constraints or assignments themselves, instead interacting with the circuit through a defined "instruction set". A circuit developer uses gadgets by instantiating them with a particular choice of chip.

Chips

Chips implement the low-level circuit constraints. The same instructions may be implemented by multiple chips, enabling different performance trade-offs to be made. Chips can be highly optimised by their developers, as long as they conform to the defined instructions.

Dependencies

~2.1–5.5MB
~103K SLoC