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

feat(crypto-ffi-bindings): Save/Load dehydrated pickle key #4399

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

BillCarsonFr
Copy link
Member

Draft because depends on #4383

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@BillCarsonFr BillCarsonFr changed the base branch from main to valere/cache_dehydration_pickle_key December 10, 2024 09:27
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 85.31%. Comparing base (866b5fe) to head (95582a6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk-crypto/src/store/mod.rs 60.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4399      +/-   ##
==========================================
- Coverage   85.32%   85.31%   -0.01%     
==========================================
  Files         283      283              
  Lines       31442    31452      +10     
==========================================
+ Hits        26827    26834       +7     
- Misses       4615     4618       +3     

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

@BillCarsonFr BillCarsonFr force-pushed the valere/ffi_save_store_dehydration_pickle_key branch from 8550edb to 57e3421 Compare December 12, 2024 13:42
@BillCarsonFr BillCarsonFr force-pushed the valere/cache_dehydration_pickle_key branch from 604e379 to 2b39476 Compare December 13, 2024 12:05
Base automatically changed from valere/cache_dehydration_pickle_key to main December 13, 2024 13:42
@BillCarsonFr BillCarsonFr force-pushed the valere/ffi_save_store_dehydration_pickle_key branch from 57e3421 to 39b9531 Compare December 13, 2024 15:22
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, a couple of suggestions.

use crate::DehydratedDeviceKey;

#[test]
fn test_dehydrated_key() {
Copy link
Member

Choose a reason for hiding this comment

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

How about test_creating_dehydrated_key_from_slice ?

Copy link
Member

Choose a reason for hiding this comment

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

Or test_roundtrip_dehydrated_device_key maybe

bindings/matrix-sdk-crypto-ffi/src/lib.rs Show resolved Hide resolved
crates/matrix-sdk-crypto/src/store/mod.rs Show resolved Hide resolved
@BillCarsonFr BillCarsonFr force-pushed the valere/ffi_save_store_dehydration_pickle_key branch from 39b9531 to 95582a6 Compare December 17, 2024 08:51
@BillCarsonFr BillCarsonFr merged commit 512a2d2 into main Dec 17, 2024
40 checks passed
@BillCarsonFr BillCarsonFr deleted the valere/ffi_save_store_dehydration_pickle_key branch December 17, 2024 09:07
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.

3 participants