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