Developers / Trust & billing / Verify proofs offline
Verify proofs offline
Rebuild a Vulture batch's Merkle root yourself and match it to the Base transaction, without trusting IDIA's servers.
Paths, headers and fields mirror The IDIA Hub's Protocol API implementation, checked November 7, 2026. Keys and credit rates are issued per organization inside the Hub; source review is not an independent production assessment.
The tree rules
The hash is SHA-256 (not Keccak-256). The verify response states the rules in tree_rules: leaf = sha256(0x00 || sanitized_hash); node = sha256(0x01 || left || right); an odd node at any level is paired with itself. The 0x00 and 0x01 prefixes stop a leaf from being passed off as an inner node.
Each sibling in sibling_hashes says whether it sits on the left or right. Fold them in order from the leaf up; the result must equal merkle_root.
Step by step
1. Call GET /v1/vulture/verify/{batch_id} and save the JSON. If status is staged_for_notarization, wait for the hourly anchor run.
2. Check that leaf_hash equals sha256(0x00 || sanitization_report.sanitized_hash).
3. Fold sibling_hashes into it with the node rule and compare to merkle_root.
4. Open l2_anchor.explorer_url on Basescan and confirm the transaction's input data contains the same merkle_root.
This proves the batch's cleaned hash was included in a root written to Base at that time and has not changed since. It does not prove the data is accurate, lawful or anonymous.
import { createHash } from "node:crypto";
const hex = (h: string) => Buffer.from(h.replace(/^0x/, ""), "hex");
const sha = (...parts: Buffer[]) => createHash("sha256").update(Buffer.concat(parts)).digest();
export function verifyProof(sanitizedHash: string, p: {
leaf_hash: string; merkle_root: string;
sibling_hashes: { position: "left" | "right"; hash: string }[];
}) {
let node = sha(Buffer.from([0x00]), hex(sanitizedHash));
if (node.toString("hex") !== p.leaf_hash.replace(/^0x/, "")) return false;
for (const s of p.sibling_hashes) {
node = s.position === "left"
? sha(Buffer.from([0x01]), hex(s.hash), node)
: sha(Buffer.from([0x01]), node, hex(s.hash));
}
return node.toString("hex") === p.merkle_root.replace(/^0x/, "");
}Mapping receipts to Basescan
Vulture batches: l2_anchor carries transaction_hash, block_number and explorer_url (https://basescan.org/tx/<hash>) once anchored.
Liability Receipts: GET /v1/utility/receipts/{id} returns blockchain_proof.aca_hash once status is anchored_l2. The receipt endpoint does not yet return a transaction hash, so record the aca_hash and keep the liability_receipt_id next to the rows in your own systems for audits.