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

Keyset ID: fix deserialization edge-case, add unit tests #417

Merged

Conversation

ok300
Copy link
Contributor

@ok300 ok300 commented Oct 23, 2024

This PR fixes an edge-case where the keyset ID could be deserialized from a string starting with a non 00 byte into a valid keyset ID with the version byte 00.

The PR also

  • replaces the custom serializer and deserializer with serde annotations
  • adds more serialization and deserialization unit tests

@ok300 ok300 force-pushed the ok300-fix-keyset-id-deserialization branch 3 times, most recently from ed76e34 to 2cab443 Compare October 24, 2024 15:43
@ok300 ok300 force-pushed the ok300-fix-keyset-id-deserialization branch from 2cab443 to 2a09266 Compare October 25, 2024 17:35
@thesimplekid thesimplekid merged commit 09b5a55 into cashubtc:main Oct 25, 2024
44 checks passed
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