1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/sha256/binary/andxorandxorand.code
2018-08-20 16:43:53 +02:00

7 lines
No EOL
172 B
Text

// ANDXORANDXORAND
import "./xor.code" as XOR
import "./and.code" as AND
def main(field a, field b, field c) -> (field):
return XOR(XOR(AND(a, b), AND(a, c)), AND(b, c))