interface BackupAlgorithm {
    authData: ISigned & (Curve25519AuthData | Aes256AuthData);
    untrusted: boolean;
    decryptSessions(
        ciphertexts: Record<string, KeyBackupSession>,
    ): Promise<IMegolmSessionData[]>;
    encryptSession(
        data: Record<string, any>,
    ): Promise<AESEncryptedSecretStoragePayload | Curve25519SessionData>;
    free(): void;
    keyMatches(key: ArrayLike<number>): Promise<boolean>;
}

Properties

untrusted: boolean

Methods