mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-10-01 01:06:17 -04:00
check selector in mixer
This commit is contained in:
parent
d0e312eb80
commit
c5d1ef7734
@ -20,6 +20,7 @@ template DualMux() {
|
|||||||
signal input s;
|
signal input s;
|
||||||
signal output out[2];
|
signal output out[2];
|
||||||
|
|
||||||
|
s * (1 - s) === 0
|
||||||
out[0] <== (in[1] - in[0])*s + in[0];
|
out[0] <== (in[1] - in[0])*s + in[0];
|
||||||
out[1] <== (in[0] - in[1])*s + in[1];
|
out[1] <== (in[0] - in[1])*s + in[1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user