Vana SDK - v4.1.0
    Preparing search index...

    Function openJobRequest

    • Decrypts and validates a job request envelope inside the enclave.

      Parameters

      • ciphertext: string

        Base64 iv || ephemPub || ct || mac ciphertext.

      • privateKey: Uint8Array

        Enclave key bytes, supplied as Uint8Array so the agent can zero them after use.

      • ecies: ECIESProvider

        Injected ECIES implementation.

      Returns Promise<JobRequestEnvelope>

      The validated request envelope exactly as parsed from plaintext.

      If plaintext is malformed or fails schema validation.

      If ciphertext decoding or ECIES decryption fails.