Skip to content

Begin factoring out a CryptoBackend interface #2955

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

Merged
merged 6 commits into from
Dec 12, 2022

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Dec 8, 2022

Part of element-hq/element-web#21972. Eventually I want to replace the whole of the current Crypto implementation with an alternative implementation, but in order to get from here to there, I'm factoring out a common interface which will be implemented by both implementations.

I'm also determined to fix the problem where the innards of the crypto implementation are exposed to applications via the MatrixClient.crypto property.

It's not (yet) entirely clear what shape this interface should be, so I'm going with a minimal approach and adding things as we know we need them. This means that we need to keep the old client.crypto property around as well as a new client.cryptoBackend property. Eventually client.crypto will go away, but that will be a breaking change in the js-sdk.

Currently based on #2958


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

@richvdh
Copy link
Member Author

richvdh commented Dec 12, 2022

I've rebased this on develop now that #2958 has merged.

@richvdh richvdh merged commit 9c17eb6 into develop Dec 12, 2022
@richvdh richvdh deleted the rav/element-r/crypto_backend branch December 12, 2022 17:49
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