Type alias SignalRepository
SignalRepository: {
decryptGroupMessage(opts) => Promise<Uint8Array>;
decryptMessage(opts) => Promise<Uint8Array>;
encryptGroupMessage(opts) => Promise<{
ciphertext: Uint8Array;
senderKeyDistributionMessage: Uint8Array;
}>;
encryptMessage(opts) => Promise<{
ciphertext: Uint8Array;
type: "pkmsg" | "msg";
}>;
injectE2ESession(opts) => Promise<void>;
jidToSignalProtocolAddress(jid) => string;
processSenderKeyDistributionMessage(opts) => Promise<void>;
}
Type declaration
decryptGroupMessage:function
- decryptGroupMessage(opts): Promise<Uint8Array>
Parameters
opts: DecryptGroupSignalOpts
Returns Promise<Uint8Array>
decryptMessage:function
- decryptMessage(opts): Promise<Uint8Array>
Parameters
opts: DecryptSignalProtoOpts
Returns Promise<Uint8Array>
encryptGroupMessage:function
- encryptGroupMessage(opts): Promise<{
ciphertext: Uint8Array;
senderKeyDistributionMessage: Uint8Array;
}> Parameters
opts: EncryptGroupMessageOpts
Returns Promise<{
ciphertext: Uint8Array;
senderKeyDistributionMessage: Uint8Array;
}>
encryptMessage:function
- encryptMessage(opts): Promise<{
ciphertext: Uint8Array;
type: "pkmsg" | "msg";
}> Returns Promise<{
ciphertext: Uint8Array;
type: "pkmsg" | "msg";
}>
injectE2ESession:function
- injectE2ESession(opts): Promise<void>
Returns Promise<void>
jidToSignalProtocolAddress:function
- jidToSignalProtocolAddress(jid): string
Returns string
processSenderKeyDistributionMessage:function
- processSenderKeyDistributionMessage(opts): Promise<void>
Parameters
opts: ProcessSenderKeyDistributionMessageOpts
Returns Promise<void>