mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
decrypt/encrypt with libsignal-client, remove libsignal-protocol-javascript
This commit is contained in:
40
ts/textsecure/Types.d.ts
vendored
Normal file
40
ts/textsecure/Types.d.ts
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export {
|
||||
IdentityKeyType,
|
||||
SignedPreKeyType,
|
||||
PreKeyType,
|
||||
UnprocessedType,
|
||||
UnprocessedUpdateType,
|
||||
SessionType,
|
||||
} from '../sql/Interface';
|
||||
|
||||
// How the legacy APIs generate these types
|
||||
|
||||
export type CompatSignedPreKeyType = {
|
||||
keyId: number;
|
||||
keyPair: KeyPairType;
|
||||
signature: ArrayBuffer;
|
||||
};
|
||||
|
||||
export type CompatPreKeyType = {
|
||||
keyId: number;
|
||||
keyPair: KeyPairType;
|
||||
};
|
||||
|
||||
// How we work with these types thereafter
|
||||
|
||||
export type KeyPairType = {
|
||||
privKey: ArrayBuffer;
|
||||
pubKey: ArrayBuffer;
|
||||
};
|
||||
|
||||
export type OuterSignedPrekeyType = {
|
||||
confirmed: boolean;
|
||||
// eslint-disable-next-line camelcase
|
||||
created_at: number;
|
||||
keyId: number;
|
||||
privKey: ArrayBuffer;
|
||||
pubKey: ArrayBuffer;
|
||||
};
|
||||
Reference in New Issue
Block a user