Verify on-chain proof
Verify an agent's Merkle commitment. The agent's stored root is recomputed from its stored leaf hashes, the stored leaf_count is checked against the actual number of leaves, and — when leaf_index is supplied — a real inclusion proof for that leaf is generated and verified against the recomputed root and returned so the caller can re-derive it independently. The confirming anchor is then looked up by the recomputed root, so an anchor row can never vouch for a root nobody can rebuild.
Scope limit, stated rather than hidden: the anchored root is read from Mnemom's own anchor record, not from a Base RPC call. A verified: true therefore means "this tree is internally consistent and matches the root we recorded as anchored" — it does not by itself prove the chain agrees. verification.anchored_root_source reports this.
Request
- Base URL: https://api.mnemom.ai/v1
- URL: https://api.mnemom.ai/v1/on-chain/verify-proof/{agent_id}
- Auth: none required
Path parameters
Agent identifier (e.g. smolt-abc123)
Query parameters
Optional. Zero-based index of a single leaf to prove inclusion for. When supplied, the response carries an inclusion_proof (leaf hash + sibling path) that has been verified against the recomputed root; the caller can replay it without trusting this endpoint. When omitted, only the root recomputation and leaf-count checks are performed.
Response
Proof verification result. verified: true requires ALL of: the root recomputes from the stored leaf hashes, leaf_count agrees with the leaf array, any requested inclusion proof verifies, and a confirmed anchor exists for the recomputed root. Any failed step returns verified: false with a reason — never a bare true. (handleVerifyProof in src/on-chain/handlers.ts.)
Changes
No recorded changes to this operation across all 1 revision of this API.