mdzor / vortex

0 stars 0 forks source link

Question about privacy concerns and likability #1

Open debych opened 1 week ago

debych commented 1 week ago

Maybe a silly question, I’ve just started learning about zk-SNARKs and noticed something in your hook implementation.

Isn't it problematic to require a commitment in the withdrawal function? This could potentially link a deposit with a withdrawal, compromising user privacy. Wouldn't using the nullifier hash alone be sufficient to prevent double spending? The amount could then be derived directly from the proof.

mdzor commented 1 week ago

Hi @debych You're absolutely right :) it is my mistake, i'll update the repo in a bit