Buckets:
| interface E2ESession { | |
| registrationId: number; | |
| identityKey: Uint8Array; | |
| signedPreKey: { | |
| keyId: number; | |
| publicKey: Uint8Array; | |
| signature: Uint8Array; | |
| }; | |
| preKey: { | |
| keyId: number; | |
| publicKey: Uint8Array; | |
| }; | |
| } | |
| export interface SignalStorage { | |
| loadSession(id: string): Promise<SessionRecord | null | undefined>; | |
| storeSession(id: string, session: SessionRecord): Promise<void>; | |
| isTrustedIdentity( | |
| identifier: string, | |
| identityKey: Uint8Array, | |
| direction: number | |
| ): boolean; | |
| loadPreKey( | |
| id: number | string | |
| ): Promise<{ privKey: Buffer; pubKey: Buffer } | undefined>; | |
| removePreKey(id: number): void; | |
| loadSignedPreKey(): { privKey: Buffer; pubKey: Buffer }; | |
| getOurRegistrationId(): Promise<number> | number; | |
| getOurIdentity(): { privKey: Buffer; pubKey: Buffer }; | |
| } | |
| export class ProtocolAddress { | |
| constructor(name: string, deviceId: number); | |
| public id: string; | |
| public deviceId: number; | |
| public toString(): string; | |
| } | |
| export class SessionRecord { | |
| static deserialize(serialized: Uint8Array): SessionRecord; | |
| public serialize(): Uint8Array; | |
| public haveOpenSession(): boolean; | |
| } | |
| export class SessionCipher { | |
| constructor(storage: SignalStorage, remoteAddress: ProtocolAddress); | |
| public decryptPreKeyWhisperMessage(ciphertext: Uint8Array): Promise<Buffer>; | |
| public decryptWhisperMessage(ciphertext: Uint8Array): Promise<Buffer>; | |
| public encrypt(data: Uint8Array): Promise<{ type: number; body: string }>; | |
| } | |
| export class SessionBuilder { | |
| constructor(storage: SignalStorage, remoteAddress: ProtocolAddress); | |
| public initOutgoing(session: E2ESession): Promise<void>; | |
| } | |
Xet Storage Details
- Size:
- 1.64 kB
- Xet hash:
- 39c6841f0ba1f2caaa9fc852389a5197ccbdeb4dfada801f40e9879bfa2e632d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.