attest_agent_output
Anchor an agent's output provenance on the Midnight blockchain, creating a tamper-evident envelope that anyone can verify independently by re-hashing.
Instructions
Anchor agent-output provenance on the Midnight chain: "agent X produced output O from input I at time T". Builds the canonical v1 envelope server-side, hashes it and anchors it; the response returns the envelopeJson any third party can re-hash and check via verify_attestation, without trusting this server. Async: returns { jobId, status } immediately; poll get_job_status until succeeded or failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Agent identity, ideally a registered grantee id | |
| modelId | No | Optional model identifier | |
| inputHash | Yes | Commitment to the agent input (64 hex) | |
| sessionId | Yes | Wallet session id that signs and submits | |
| outputHash | Yes | Commitment to the produced output (64 hex) | |
| policyHash | No | Optional commitment to the governing policy (64 hex) | |
| producedAt | No | Optional ISO-8601 production time, defaults to now | |
| storageRef | No | Where output/envelope live, defaults to agent-output://<agentId> | |
| idempotencyKey | No | Dedupes retries | |
| contractAddress | Yes | AttestationVault deployment | |
| sponsorSessionId | No | Optional second session that pays the dust fee | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault' |