import { SignalService } from '../../../../protobuf'; import { CipherTextObject } from '../../../../window/types/libsignal-protocol'; export class SecretSessionCipherStub { public async encrypt( _destinationPubkey: string, _senderCertificate: SignalService.SenderCertificate, innerEncryptedMessage: CipherTextObject ): Promise { const { body } = innerEncryptedMessage; return Buffer.from(body, 'binary').buffer; } public async decrypt( _cipherText: ArrayBuffer, _me: { number: string; deviceId: number } ): Promise<{ isMe?: boolean; sender: string; content: ArrayBuffer; type: SignalService.Envelope.Type; }> { throw new Error('Not implemented'); } }