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

Decrypt group data without initialising E3Kit #72

Open
thejeraldo opened this issue Mar 22, 2022 · 0 comments
Open

Decrypt group data without initialising E3Kit #72

thejeraldo opened this issue Mar 22, 2022 · 0 comments

Comments

@thejeraldo
Copy link

We are using E3Kit for our chat module which has 1:1 chat and group chats.
For 1:1 group chats, we decrypt the notification body by accessing the shared key from Keychain:

let keychainStorage = try E2EE.keychainStorage()
let keyEntry = try keychainStorage.retrieveEntry(withName: userId)
let crypto = try VirgilCrypto()
let keypair = try crypto.importPrivateKey(from: keyEntry.data)
// Decrypt notification body using keypair.

For group chats however, we do not have the luxury of using the method above as it requires a different workflow. As a feature request, can we have a way to decrypt group chats without initialising the E3Kit so that we wouldn't need to initialise the SDK every time the device receives a notification?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant