Catalog / ccd-memo-codec
Concordium memo codec
Turns a text or JSON value into the bytes of a Concordium transfer memo, and memo bytes back into what they say.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Offline Concordium transfer-memo codec. encode: text (CBOR text string) or a JSON value (maps, arrays, integers, floats, booleans, null) to memo hex, byte for byte as @concordium/web-sdk 12.1.0 CborMemo.fromAny writes it (cbor2 default: safe integers as ints, other numbers as the shortest lossless half/single/double float, object keys in JavaScript order), plus the DataBlob JSON form with its 2-byte length prefix; refuses memos over 256 bytes. Deliberate differences: integer literals beyond 2^53-1 are written exactly (as a BigInt; JSON.parse would round them), duplicate JSON keys and unpaired surrogates are refused (the SDK keeps the last key and writes U+FFFD). decode: memo hex to a JSON view, RFC 8949 diagnostic notation, an RFC 8949 section 4.1 preferred-serialization flag (not an SDK-identity flag: the SDK writes 1.0 as the integer 1) and a raw hex/UTF-8 view; bytes that are not one well-formed CBOR item (truncated, trailing bytes, invalid UTF-8, reserved values) are reported with a reason and still shown raw, as wallets do. Tags other than bignums 2/3 are decoded generically, not checked.
- Example input
{"action":"encode","text":"Invoice 2026-118"}- Answer
{"ok":true,"result":{"valid":true,"reason":null,"hex":"70496e766f69636520323032362d313138","hex_length_prefixed":"001170496e766f69636520323032362d313138","byte_length":17,"max_bytes":256,"cbor_type":"text","diagnostic":"\"Invoice 2026-118\"","standard":"RFC 8949 CBOR; Concordium memo (DataBlob, at most 256 bytes); encoding as @concordium/web-sdk 12.1.0 CborMemo.fromAny (cbor2 1.12.0)"},"warnings":[]}- Try it free
- /try/ccd-memo-codec
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-memo-codec?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-memo-codec?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/ccd-memo-codec?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-memo-codec/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.