8 releases

new 0.3.1 Dec 16, 2024
0.3.0 Mar 22, 2023
0.2.0 Jun 23, 2022
0.1.0 May 10, 2022
0.0.0 Oct 21, 2021

#4 in #halo

Download history 4132/week @ 2024-08-25 2960/week @ 2024-09-01 2719/week @ 2024-09-08 2081/week @ 2024-09-15 3816/week @ 2024-09-22 3929/week @ 2024-09-29 3741/week @ 2024-10-06 3894/week @ 2024-10-13 4064/week @ 2024-10-20 3176/week @ 2024-10-27 2745/week @ 2024-11-03 4162/week @ 2024-11-10 3440/week @ 2024-11-17 2964/week @ 2024-11-24 4993/week @ 2024-12-01 5408/week @ 2024-12-08

16,990 downloads per month
Used in 28 crates (3 directly)

MIT/Apache

1.5MB
32K 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

~3–18MB
~202K SLoC