LF-Decentralized-Trust-labs / paladin

Programmable privacy for EVM
https://lf-decentralized-trust-labs.github.io/paladin
Apache License 2.0
15 stars 6 forks source link

upgrade to zeto v0.0.8; check transfer amount against range #418

Open jimthematrix opened 1 week ago

jimthematrix commented 1 week ago

fixes #368

The zkp circuits in Zeto enforces a range of the transfer amount used in the private input of proof generation. This PR makes it impossible to violate that limitation by enforcing that the total amount of mints or transfers must be less than the maximum value. This way the client application request will be rejected right away rather than finding out from the transaction revert instead.