We need to add a User Keys backup to restore RPC. To achieve that, we need to get an Olm account from SQLite and Crypto Module to be able to pickle the account. This couldn't be easily achieved from CommRustModule.
Alternative solutions:
- Create User Keys backup in CommCoreModule, return it to JS and pass to restore RPC - bad because we can avoid passing bytes to JS.
- Access SQLite and CryptoModule from CommRustModule - this is a lot more complex to implement and it is better to keep only one Turbo Module accessing DB.
Depends on D14256