Module bellpepper::gadgets
source · Expand description
Self-contained sub-circuit implementations for various primitives.
Modules§
- The BLAKE2s hash function with personalization support.
- Gadgets for allocating bits in the circuit and performing boolean logic.
- Window table lookup gadgets.
- Helpers for packing vectors of bits into scalar field elements.
- Gadgets representing numbers in the scalar field of the underlying curve.
- Circuits for the SHA-256 hash function and its internal compression function.
- Circuit representation of a
u32
, with helpers for the [sha256
] gadgets.
Traits§
- This basically is just an extension to
Option
which allows for a convenient mapping to an error onNone
.