Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check transfer amount against range #418

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

jimthematrix
Copy link
Contributor

@jimthematrix jimthematrix commented Nov 8, 2024

fixes #368
depends on #469

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.

Copy link

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 10, 2024
@github-actions github-actions bot removed the stale label Dec 19, 2024
@jimthematrix jimthematrix changed the title upgrade to zeto v0.0.8; check transfer amount against range Check transfer amount against range Dec 19, 2024
Copy link

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 20, 2024
Copy link

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reject Zeto transfers outside the Snark-safe value range
2 participants