• Encrypt data with a BLS public key.

    Returns

    base64 encoded string of the ciphertext

    Parameters

    • publicKey: string

      hex-encoded string of the BLS public key to encrypt with

    • data: Uint8Array

      Uint8Array of the data to encrypt

    • identity: Uint8Array

      Uint8Array of the identity parameter used during encryption

    Returns string

Generated using TypeDoc