Skip to content

Decrypt group data without initialising E3Kit #72

@thejeraldo

Description

@thejeraldo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions