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

Add size and type checks to coin deserialization #1379

Merged
merged 4 commits into from
Dec 19, 2023
Merged

Conversation

levonpetrosyan93
Copy link
Contributor

PR intention
Adds size and type checks during coin deserialization that fail on known bad data.

Closes #1373.

Code changes brief
Certain aspects of coin data must be checked during deserialization. These include the validity of the coin type (mint or spend) and the size of encrypted recipient data. This PR adds these checks directly into deserializers, and will throw errors on bad data.

@reubenyap reubenyap merged commit d1d72d1 into master Dec 19, 2023
6 checks passed
@reubenyap reubenyap deleted the coin-deser-checks branch December 19, 2023 06: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.

Spark coin deserialization should enforce fixed sizes
3 participants