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

fix: Implement visit_bytes for the Ed25519PublicKey deserialization #4499

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

poljar
Copy link
Contributor

@poljar poljar commented Jan 10, 2025

This fixes the deserialization of the SenderData since it switched to the base64 encoding for serialization of the master key in one of its variants.

The issue was introduced in 5ff556f (#4450).

@poljar poljar requested review from a team as code owners January 10, 2025 08:17
@poljar poljar requested review from Hywan and andybalaam and removed request for a team January 10, 2025 08:17
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.36%. Comparing base (cb72d43) to head (ba35b61).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...x-sdk-crypto/src/olm/group_sessions/sender_data.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4499      +/-   ##
==========================================
- Coverage   85.37%   85.36%   -0.01%     
==========================================
  Files         284      284              
  Lines       31885    31892       +7     
==========================================
+ Hits        27222    27225       +3     
- Misses       4663     4667       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Hywan Hywan left a comment

Choose a reason for hiding this comment

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

Approving but I would enjoy having a test 🙂

@poljar
Copy link
Contributor Author

poljar commented Jan 10, 2025

Approving but I would enjoy having a test 🙂

It's in #4500, though my commit has been squashed in there as well.

Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

Looks good, but definitely needs a test.

poljar and others added 2 commits January 10, 2025 13:57
This fixes the deserialization of the SenderData since it switched to
the base64 encoding for serialization of the master key in one of its
variants.

The issue was introduced in 5ff556f.
@poljar poljar force-pushed the poljar/fix-sender-data-deserialization branch from ddd18d1 to ba35b61 Compare January 10, 2025 12:58
@poljar
Copy link
Contributor Author

poljar commented Jan 10, 2025

Thanks for the test @BillCarsonFr.

@poljar poljar enabled auto-merge (rebase) January 10, 2025 12:58
@poljar poljar merged commit 1dd2b2c into main Jan 10, 2025
40 checks passed
@poljar poljar deleted the poljar/fix-sender-data-deserialization branch January 10, 2025 13:12
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.

4 participants