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

Spark coin deserialization should enforce fixed sizes #1373

Closed
AaronFeickert opened this issue Dec 4, 2023 · 0 comments · Fixed by #1379
Closed

Spark coin deserialization should enforce fixed sizes #1373

AaronFeickert opened this issue Dec 4, 2023 · 0 comments · Fixed by #1379

Comments

@AaronFeickert
Copy link
Contributor

Spark coins contain encrypted data whose size is fixed by the coin type:

  • mint coin encrypted data should occupy 84 bytes: 16-byte encrypted diversifier, 32-byte encoded scalar, 32-byte padded memo
  • spend coin encrypted data should occupy 90 bytes: 8-byte encoded value, 16-byte encrypted diversifier, 32-byte encoded scalar, 32-byte padded memo

These sizes should be enforced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant