Skip to main content

Module util

Module util 

Source
Expand description

Various utilities for circuit building.

Functionsยง

all_true
Check that all boolean wires in an iterable are simultaneously true.
bool_to_mask
Convert MSB-bool into an all-1/all-0 mask.
byteswap
Swap the byte order of the word.
num_biguint_from_u64_limbs
Returns a BigUint from u64 limbs with little-endian ordering
pack_bytes_into_const_wires_le
Pack bytes into constant wires using little-endian packed 64-bit words.
pack_bytes_into_wires_le
Populate the given wires from bytes using little-endian packed 64-bit words.