mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-06 08:15:41 -04:00
prevent nullifier griefing
This commit is contained in:
parent
e6d103b875
commit
14e15ba6c0
2 changed files with 17 additions and 9 deletions
3
cli.js
3
cli.js
|
@ -64,11 +64,12 @@ async function withdraw(note, receiver) {
|
|||
const input = {
|
||||
// public
|
||||
root: root,
|
||||
nullifier: deposit.nullifier,
|
||||
nullifierHash: pedersenHash(deposit.nullifier.leInt2Buff(32)),
|
||||
receiver: bigInt(receiver),
|
||||
fee: bigInt(0),
|
||||
|
||||
// private
|
||||
nullifier: deposit.nullifier,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue