@blockchaincommons/envelope - v1.0.0-beta.4
    Preparing search index...

    Function decryptToRecipient

    • Decrypts an envelope that was encrypted to a recipient and unwraps it.

      This is a convenience method that:

      1. Decrypts the subject using the recipient's private key
      2. Unwraps the resulting envelope

      Parameters

      • envelope: Envelope
      • recipient: Decrypter

        The recipient's private key (implements Decrypter)

      Returns Envelope

      The unwrapped, decrypted envelope