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
    • Parameters

      • opts: DecryptGroupSignalOpts

      Returns Promise<Uint8Array>

  • decryptMessage:function
    • Parameters

      • opts: DecryptSignalProtoOpts

      Returns Promise<Uint8Array>

  • encryptGroupMessage:function
    • Parameters

      • opts: EncryptGroupMessageOpts

      Returns Promise<{
          ciphertext: Uint8Array;
          senderKeyDistributionMessage: Uint8Array;
      }>

  • encryptMessage:function
    • Parameters

      • opts: EncryptMessageOpts

      Returns Promise<{
          ciphertext: Uint8Array;
          type: "pkmsg" | "msg";
      }>

  • injectE2ESession:function
    • Parameters

      • opts: E2ESessionOpts

      Returns Promise<void>

  • jidToSignalProtocolAddress:function
    • Parameters

      • jid: string

      Returns string

  • processSenderKeyDistributionMessage:function
    • Parameters

      • opts: ProcessSenderKeyDistributionMessageOpts

      Returns Promise<void>

Generated using TypeDoc