Introduce kyber pre key triple table

This commit is contained in:
Fedor Indutny 2025-09-29 16:23:41 -07:00 committed by GitHub
commit 658a63cfe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 178 additions and 15 deletions

View file

@ -590,6 +590,12 @@ export type MediaItemDBType = Readonly<{
message: MediaItemMessageType;
}>;
export type KyberPreKeyTripleType = Readonly<{
id: PreKeyIdType;
signedPreKeyId: number;
baseKey: Uint8Array;
}>;
export const MESSAGE_ATTACHMENT_COLUMNS = [
'messageId',
'conversationId',
@ -956,6 +962,9 @@ type WritableInterface = {
removeKyberPreKeyById: (id: PreKeyIdType | Array<PreKeyIdType>) => number;
removeKyberPreKeysByServiceId: (serviceId: ServiceIdString) => void;
removeAllKyberPreKeys: () => number;
markKyberTripleSeenOrFail: (
options: KyberPreKeyTripleType
) => 'seen' | 'fail';
removePreKeyById: (id: PreKeyIdType | Array<PreKeyIdType>) => number;
removePreKeysByServiceId: (serviceId: ServiceIdString) => void;