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 "AsJson" forms of the key import/export methods #4057

Merged
merged 2 commits into from Feb 8, 2024

Conversation

andybalaam
Copy link
Contributor

@andybalaam andybalaam commented Feb 6, 2024

Part of element-hq/element-web#26681

When we export keys with Rust encryption, we serialise them into JSON to cross the Rust/JS boundary, then we deserialise them in RustCrypto to match the CryptoApi interface, then serialise them again in matrix-react-sdk's ExportE2eKeysDialog so that we can encrypt the information and save it to disk.

By providing an exportRoomKeysAsJson method, we can provide the keys as a string immediately, avoiding the need to deserialise and re-serialise them, and similarly in the import case.


Here's what your changelog entry will look like:

✨ Features

  • Add "AsJson" forms of the key import/export methods (#4057). Contributed by @andybalaam.

@andybalaam andybalaam added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Feb 6, 2024
Copy link
Member

@BillCarsonFr BillCarsonFr left a comment

Choose a reason for hiding this comment

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

LGTM, thx for the description

@andybalaam andybalaam added this pull request to the merge queue Feb 8, 2024
Merged via the queue into develop with commit 1b7695c Feb 8, 2024
23 checks passed
@andybalaam andybalaam deleted the andybalaam/add-json-forms-of-key-import-export branch February 8, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants