mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-03 06:44:56 -04:00
remove redundant constraints
This commit is contained in:
parent
ca9724bcf9
commit
aa2615e936
1 changed files with 2 additions and 5 deletions
|
@ -26,6 +26,7 @@ template CommitmentHasher() {
|
||||||
template Withdraw(levels, rounds) {
|
template Withdraw(levels, rounds) {
|
||||||
signal input root;
|
signal input root;
|
||||||
signal input nullifier;
|
signal input nullifier;
|
||||||
|
// TODO: Check if we need some kind of explicit constraints or something for those 2 inputs
|
||||||
signal input receiver; // not taking part in any computations
|
signal input receiver; // not taking part in any computations
|
||||||
signal input fee; // not taking part in any computations
|
signal input fee; // not taking part in any computations
|
||||||
signal private input secret;
|
signal private input secret;
|
||||||
|
@ -43,10 +44,6 @@ template Withdraw(levels, rounds) {
|
||||||
tree.pathElements[i] <== pathElements[i];
|
tree.pathElements[i] <== pathElements[i];
|
||||||
tree.pathIndex[i] <== pathIndex[i];
|
tree.pathIndex[i] <== pathIndex[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Check if we need some kind of explicit constraints or something
|
|
||||||
fee === fee;
|
|
||||||
receiver === receiver;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
component main = Withdraw(16, 220);
|
component main = Withdraw(16, 220);
|
Loading…
Add table
Add a link
Reference in a new issue