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

5 lines
171 B
Plaintext
Executable File

// 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;
}