Function decryptMessage

  • Decrypts an encrypted Message

    Parameters

    • encryptedMessage: EncryptedMessage

      The encrypted message

    • senderPublicKeyHex: string

      The senders public key in hex format

    • recipientPrivateKeyHex: string

      The recipients private (agreement) key in hex format

    Returns Promise<string>

    The original message