mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 19:34:04 +01:00
Introduce kyber pre key triple table
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user