• Encrypts the provided asset using the LIT protocol.

    Parameters

    • params: {
          content: Blob;
          contentHash: string;
      }

      parameters for the function.

      • content: Blob

        asset to encrypt as a Blob.

      • contentHash: string

        hash of the content.

    Returns Promise<EncryptAssetResponse>

    A promise that resolves with an object of type EncryptAssetResponse.

    Throws

    Throws an error if the LIT client is not initialized.

Generated using TypeDoc