Merkle Batch Attestation
risk_attestBatch the content-hashes from many Quiver proof envelopes into ONE Merkle root plus per-item inclusion proofs, so a single on-chain anchor (your wallet's tx) attests all of them at once. Self-checked for completeness (every item verifies) and soundness (a non-member does not). Use to make a batch of risk computations cheaply and permanently attestable for audit/liability, without a chain write per computation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | proof envelopes (uses proof.contentHash) or raw content-hashes (hex) | |
| contentHashes | No | alternatively, raw content-hashes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | false when the engine rejected the input | |
| proof | No | Verifiability envelope: echoed inputs, engine codeHash, contentHash of this exact result, self-checks, EIP-712 signature (EAS-ready). Re-run the open engine on `inputs` to reproduce the result byte-for-byte. | |
| anchor | No | EIP-712 (EAS-ready) attestation payload for the single on-chain anchor | |
| checks | No | Ground-truth self-checks; the result is untrustworthy if any fails. | |
| verify | No | how to verify inclusion against the root | |
| algorithm | No | hash/tree construction used | |
| leafCount | No | number of items batched | |
| merkleRoot | No | the single root that attests every item | |
| attestations | No | per-item inclusion proofs | |
| duplicateLeaves | No | duplicate content-hashes detected in the batch |