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
16,990 downloads per month
Used in 28 crates
(3 directly)
1.5MB
32K
SLoC
halo2_gadgets
Requires Rust 1.60+.
Documentation
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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