async createEncryptStream({recipients, keyResolver, chunkSize}) {
    const transformer = await this.createEncryptTransformer(
      {recipients, keyResolver, chunkSize});
    return new TransformStream(transformer);
  }
/**
   * Creates a TransformStream that will encrypt some data for one or more
   * recipients and output a stream of chunks, each containing an object
   * with the property `jwe` with a JWE value.
   *
   * A list of recipients must be given in the `recipients` array, identified
   * by key agreement keys. An ephemeral ECDH key will be generated and used to
   * derive shared KEKs that will wrap a randomly generated CEK. Each recipient
   * in the `recipients` array will be updated to include the generated
   * ephemeral ECDH key.
   *
   * @param {object} options - The options for the stream.
   * @param {Array} options.recipients - An array of recipients for the
   *   encrypted content.
   * @param {Function} options.keyResolver - A function that returns a Promise
   *   that resolves a key ID to a DH public key.
   * @param {number} [options.chunkSize=1048576] - The size, in bytes,
   *   of the chunks to break the incoming data into.
   *
   * @returns {Promise<TransformStream>} Resolves to a TransformStream.
   */
Creates a TransformStream that will encrypt some data for one or more
recipients and output a stream of chunks, each containing an object
with the property `jwe` with a JWE value.

A list of recipients must be given in the `recipients` array, identified
by key agreement keys. An ephemeral ECDH key will be generated and used to
derive shared KEKs that will wrap a randomly generated CEK. Each recipient
in the `recipients` array will be updated to include the generated
ephemeral ECDH key.

@param {object} options - The options for the stream.
@param {Array} options.recipients - An array of recipients for the
encrypted content.
@param {Function} options.keyResolver - A function that returns a Promise
that resolves a key ID to a DH public key.
@param {number} [options.chunkSize=1048576] - The size, in bytes,
of the chunks to break the incoming data into.

@returns {Promise} Resolves to a TransformStream.
Creates a TransformStream that will encrypt some data for one or more recipients and output a stream of chunks each containing an object with the property ` jwe ` with a JWE value . A list of recipients must be given in the ` recipients ` array identified by key agreement keys . An ephemeral ECDH key will be generated and used to derive shared KEKs that will wrap a randomly generated CEK . Each recipient in the ` recipients ` array will be updated to include the generated ephemeral ECDH key . @param { object } options - The options for the stream . @param { Array } options . recipients - An array of recipients for the encrypted content . @param { Function } options . keyResolver - A function that returns a Promise that resolves a key ID to a DH public key . @param { number } [ options . chunkSize = 1048576 ] - The size in bytes of the chunks to break the incoming data into . @returns { Promise } Resolves to a TransformStream .
async createEncryptStream({recipients, keyResolver, chunkSize}) {
    const transformer = await this.createEncryptTransformer(
      {recipients, keyResolver, chunkSize});
    return new TransformStream(transformer);
  }
async createEncryptStream ( { recipients , keyResolver , chunkSize } ) { const transformer = await this . createEncryptTransformer ( { recipients , keyResolver , chunkSize } ) ; return new TransformStream ( transformer ) ; }
Creates a TransformStream that will encrypt some data for one or more
 recipients and output a stream of chunks, each containing an object
 with the property `jwe` with a JWE value.
Creates a TransformStream that will encrypt some data for one or more recipients and output a stream of chunks each containing an object with the property ` jwe ` with a JWE value .