matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.13k stars 222 forks source link

Move `matrix-sdk::encryption::backups` to matrix-sdk-crypto so that it can be used by clients using that crate #3611

Open richvdh opened 5 days ago

richvdh commented 5 days ago

We have a useful module called matrix-sdk::encryption::backups (documentation, code) which is responsible for managing server-side key backup. It would be useful to move that module to matrix-sdk-crypto, so that it can be used by clients like Element Web which depend on that library (and currently have to duplicate the backup-management code).

richvdh commented 5 days ago

I looked briefly into what would be involved here. Some notes:

My basic conclusion: there's quite a lot to do here, and much of it is made harder by the fact that OlmMachine is somewhat ephemeral. We should probably fix https://github.com/matrix-org/matrix-rust-sdk/issues/2624 first.