• Generates a proof that the given message was encrypted with AES-128 using the given key. The key must be in hex form.

    Parameters

    • message: string

      The message to generate a proof for

    • keyHex: string

      The key to use for encryption in hex form

    Returns Promise<[Proof<IterativeAES128PublicInput, void>, string]>

    A proof that the message was encrypted with AES-128 using the given key and encrypted message

    If the message is not 16 characters long or the key is not 32 characters long

    If the proof generation fails