mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-11-24 16:53:08 -05:00
init
This commit is contained in:
parent
5ef6e33c78
commit
11f7408def
11 changed files with 3814 additions and 27 deletions
|
|
@ -31,8 +31,7 @@ template Withdraw(levels, rounds) {
|
|||
signal input root;
|
||||
signal input nullifierHash;
|
||||
signal input receiver; // not taking part in any computations
|
||||
signal input relayer; // not taking part in any computations
|
||||
signal input fee; // not taking part in any computations
|
||||
|
||||
signal private input nullifier;
|
||||
signal private input secret;
|
||||
signal private input pathElements[levels];
|
||||
|
|
@ -56,11 +55,7 @@ template Withdraw(levels, rounds) {
|
|||
// Most likely it is not required, but it's better to stay on the safe side and it only takes 2 constraints
|
||||
// Squares are used to prevent optimizer from removing those constraints
|
||||
signal receiverSquare;
|
||||
signal feeSquare;
|
||||
signal relayerSquare;
|
||||
receiverSquare <== receiver * receiver;
|
||||
feeSquare <== fee * fee;
|
||||
relayerSquare <== relayer * relayer;
|
||||
}
|
||||
|
||||
component main = Withdraw(16, 220);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue