solutions/zokrates_prover/.zokrates/stdlib/utils/multiplexer/lookup1bit.zok

5 lines
171 B
Plaintext
Raw Normal View History

2023-12-05 06:06:28 +00:00
// One-bit window lookup table using one constraint
def main(bool selector, field[2] target) -> field {
field out = selector ? target[1] : target[0];
return out;
}