Type alias IEncryptedMessage

IEncryptedMessage: Pick<IMessage, "receivedAt"> & {
    ciphertext: string;
    nonce: string;
    receiverKeyUri: DidResourceUri;
    senderKeyUri: DidResourceUri;
}

Removes the plaintext IEncryptedMessageContents from an IMessage and instead includes them in encrypted form. This adds the following fields:

  • ciphertext - The encrypted message content.
  • nonce - The encryption nonce.
  • receiverKeyUri - The URI of the receiver's encryption key.
  • senderKeyUri - The URI of the sender's encryption key.