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

Pull out a public CryptoApi #3211

Merged
merged 3 commits into from
Mar 13, 2023
Merged

Pull out a public CryptoApi #3211

merged 3 commits into from
Mar 13, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 10, 2023

This is a first step towards fixing element-hq/element-web#17488. We create a new CryptoApi which is a subset of CryptoBackend, and defines the crypto interfaces which are meant to be used directly by applications.

Obviously, this is just a very initial step: in time we'll need to more all the crypto-related functions from MatrixClient in here. But some of those are likey to change signature slightly, or not be supported at all, as we move to the Rust SDK, and I only want to add things to CryptoApi once we're reasonably sure that it represents the final API shape.


This change is marked as an internal change (Task), so will not be included in the changelog.

richvdh added 3 commits March 10, 2023 16:18
... so that we don't have to implement annoying shims in `MatrixClient`
@richvdh
Copy link
Member Author

richvdh commented Mar 10, 2023

more tests are in #3203

@richvdh richvdh marked this pull request as ready for review March 10, 2023 16:42
@richvdh richvdh requested a review from a team as a code owner March 10, 2023 16:42
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

Looks sane 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants