Catalog / ccd-agent-card-hash
Concordium agent card hash check
Checks whether an agent card is the exact file whose SHA-256 a Concordium Agent Registry entry anchored, and why not when it is not.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Offline SHA-256 (FIPS 180-4) of an agent card's exact bytes, compared with the metadata_hash_hex a Concordium CIS-8004 Agent Registry entry anchors (the registry hashes the HTTP body served at agent_uri after any Content-Encoding such as gzip or br is removed). Give the card as text in card (hashed as UTF-8), or its exact bytes as card_hex or card_base64 (exactly one; at most 65,536 bytes); any other parameter name is refused. metadata_hash_hex is 64 hex; a 0x prefix, upper case and outer white space are accepted with a warning; without it match is null and only the hash is returned. On a mismatch it hashes single-step variants of the same bytes in a fixed priority order (BOM removed or added, final newline removed or added, JSON re-serialised by JSON.stringify compact, CRLF to LF, JSON re-serialised 2-space, each JSON form with and without a final LF, LF to CRLF, outer white space trimmed, text as Latin-1) and names the one whose hash equals the anchor: a hint about how the copy differs, never a match. Work is bounded: JSON re-serialisation only for cards up to 32,768 bytes, and at most 163,840 variant bytes hashed per call; every variant not tried is listed in variants_not_checked with the reason. Bytes starting with the gzip magic 1F 8B are flagged compressed_body. Also reports byte length, UTF-8 validity, BOM, line endings and whether the card parses as JSON. Text input cannot prove the served bytes; neither can bytes given here: no network, no chain access.
- Example input
{"card":"{\n \"name\": \"Example agent\",\n \"url\": \"https://agent.example/\"\n}\n","metadata_hash_hex":"a31d0f8fb78432f5be77292ec5be416b0e1cd4cb19f165c4a37c04c69a95a66f"}- Answer
{"ok":true,"result":{"match":true,"reason":null,"computed_sha256_hex":"a31d0f8fb78432f5be77292ec5be416b0e1cd4cb19f165c4a37c04c69a95a66f","expected_sha256_hex":"a31d0f8fb78432f5be77292ec5be416b0e1cd4cb19f165c4a37c04c69a95a66f","input_form":"text_utf8","byte_length":65,"bytes_facts":{"utf8_valid":true,"bom_utf8":false,"utf16_bom":false,"line_endings":"lf","trailing_newline":true,"json_parses":true,"replacement_characters":false,"gzip_magic":false},"diagnosis":{"matching_variant":null,"hint":null,"flags":[],"variants_checked":[],"variants_not_checked":[]},"standard":"Concordium Agent Registry (CIS-8004): metadata_hash is the SHA-256 (FIPS 180-4) of the exact bytes served at agent_uri, as 64 hex","scope":"Compares SHA-256 of the bytes given with the hash given. No network and no chain access: it cannot show that these bytes are what agent_uri serves, nor that the hash is the one on chain."},"warnings":["Text input is hashed as its UTF-8 encoding. A decoded copy can differ from the served bytes (a BOM dropped by the decoder, line endings, escapes), so only the exact HTTP response body shows what agent_uri serves."]}- Try it free
- /try/ccd-agent-card-hash
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/ccd-agent-card-hash?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/ccd-agent-card-hash?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/ccd-agent-card-hash?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/ccd-agent-card-hash/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.