prevent nullifier griefing

This commit is contained in:
poma 2019-07-19 19:37:38 +03:00
parent e6d103b875
commit 14e15ba6c0
No known key found for this signature in database
GPG key ID: 530BBEE4AE8C3604
2 changed files with 17 additions and 9 deletions

3
cli.js
View file

@ -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,