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

8 lines
186 B
Text

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