mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-11-25 19:30:11 +01: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