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

    Function encryptSubjectToRecipients

    • Encrypts the envelope's subject with one fresh content key and adds a hasRecipient assertion for each of recipients (the reference's encrypt_subject_to_recipients); an empty list is accepted.

      Parameters

      • envelope: Envelope
      • recipients: Encrypter[]

        The recipients' public keys (each implements Encrypter)

      • options: RngOptions = {}

      Returns Envelope

      A new envelope with encrypted subject and recipient assertions

      EnvelopeError InvalidParameter when a recipient is not an Encrypter; Components when components cannot seal to a key