Closed LuoZijun closed 4 years ago
This method implements XOR, not OR (and the |
here is a pattern-matching construct, not a logical OR)
@Pratyush descp is updated.
true | true
--> true BitXor true
.
@Pratyush
You are correct, I made a mistake.
https://github.com/zkcrypto/bellman/blob/0f2244fdb445f054331e33b2ac7d779812cfd615/src/gadgets/boolean.rs#L474
if
x
isBoolean::Constant(true)
, will returnOk(Boolean::Constant(false))
. Buttrue BitXor true
should betrue
notfalse
?