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

#162 in Magic Beans

Download history 2794/week @ 2024-01-03 3379/week @ 2024-01-10 2858/week @ 2024-01-17 4712/week @ 2024-01-24 3003/week @ 2024-01-31 4088/week @ 2024-02-07 3120/week @ 2024-02-14 3480/week @ 2024-02-21 4632/week @ 2024-02-28 4451/week @ 2024-03-06 2575/week @ 2024-03-13 2251/week @ 2024-03-20 1460/week @ 2024-03-27 1716/week @ 2024-04-03 4112/week @ 2024-04-10 3396/week @ 2024-04-17

10,916 downloads per month
Used in 23 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.2–6.5MB
~102K SLoC