Encrypt data with a BLS public key. We are using G1 for encryption and G2 for signatures

  • Parameters

    • publicKeyHex: string

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

    • message: Uint8Array

      Uint8Array of the data to encrypt

    • identity: Uint8Array

      Uint8Array of the identity parameter used during encryption

    Returns Promise<string>

    base64 encoded string of the ciphertext