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 tokens balance before TX signing #181

Merged
merged 9 commits into from
Jul 13, 2022
Merged

Check tokens balance before TX signing #181

merged 9 commits into from
Jul 13, 2022

Conversation

aslesarenko
Copy link
Member

Token balance is checked by AppkitProvingInterpreter.reduceTransaction. When inputs/outputs balance is changed, then the difference is checked against explicitly requested token burning and possible token minting.

This check is independent from how UnsignedErgoLikeTransaction is created and it serves as sanity/security check against possible bugs in transaction building.

aslesarenko and others added 8 commits January 18, 2022 21:49
Release v4.0.6 (with Sigma v4.0.5 and ergo-wallet v4.0.20)
Release v4.0.7 (with Sigma v4.0.5 and ergo-wallet v4.0.23)
Release v4.0.8 (with Sigma v4.0.5 and ergo-wallet v4.0.24)
Release v4.0.9 (with Sigma v4.0.5 and ergo-wallet v4.0.27)
Release v4.0.10 (with Sigma v4.0.5 and ergo-wallet v4.0.27)
@aslesarenko aslesarenko marked this pull request as ready for review July 12, 2022 17:34
@aslesarenko aslesarenko requested a review from MrStahlfelge July 12, 2022 17:34
Copy link
Member

@MrStahlfelge MrStahlfelge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good addition, only a few improvement suggestions

@aslesarenko aslesarenko changed the title Check tokens balance before Check tokens balance before TX signing Jul 13, 2022
@aslesarenko aslesarenko requested a review from MrStahlfelge July 13, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants