{"uid":"cap_9Chy-F5Fsjfo27F65elOv","slug":"maha-signed-receipt-verification-d56ae3c6","name":"Maha Signed Receipt Verification","description":"Verify one Ed25519 signature over up to 8,000 characters of exact UTF-8 receipt text using a supplied 32-byte public key. Returns cryptographic validity and message hash. Does not establish issuer identity, trusted time, licensing or the truth of the receipt. No private keys accepted.","url":"https://www.mahastrategies.com/api/v1/micro/signed-receipt-verification?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","encoding","message","publicKeyBase64","signatureBase64"],"properties":{"message":{"type":"string","maxLength":8000,"minLength":1},"encoding":{"enum":["exact-utf8"],"type":"string"},"dataClass":{"enum":["public","synthetic"],"type":"string"},"publicKeyBase64":{"type":"string","maxLength":44},"signatureBase64":{"type":"string","maxLength":88}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["signed-receipt-verification"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["12500"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0125","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0125/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0125","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0125","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5XqZ7uI2MpJt-YMDFMppl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0125","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies a single Ed25519 digital signature over up to 8,000 characters of UTF-8 receipt text using a supplied 32-byte public key, returning cryptographic validity and message hash.","exampleAgentPrompt":"Can you verify this Ed25519 signature on a receipt for me? The receipt text is 'Order #4821: 2x Widget @ $12.50, total $25.00, paid 2024-06-01', the base64 public key is 'abc123...XYZ=', the base64 signature is 'def456...QRS==', and the encoding is exact-utf8.","exampleUseCases":[{"title":"Validate agent-issued payment receipt","prompt":"I just received a receipt from an automated agent claiming to confirm a payment — the message says 'Payment confirmed: $50 USDC to vendor-A on 2024-06-10', the Ed25519 public key in base64 is 'mK3...pQ==', and the signature in base64 is 'nR7...wZ=='. Can you check whether the signature is cryptographically valid for that exact text?"},{"title":"Audit document integrity before settlement","prompt":"Before I release the settlement funds, I need to confirm that this signed contract summary hasn't been altered. The UTF-8 text is 'Contract #99: Party A owes Party B 500 USDC by 2024-07-01', the public key in base64 is 'tV2...eA==', and the Ed25519 signature in base64 is 'uX5...rD=='. Please verify the signature."},{"title":"Check vendor invoice authenticity","prompt":"A vendor sent me a signed invoice that reads 'Invoice INV-2024-088: 10 units at $8 each, due 2024-08-15' along with their Ed25519 public key 'yB4...oL==' and signature 'zC6...mF=='. Can you confirm whether the signature on this invoice text is valid?"}],"resultDescription":"Returns a structured JSON object including a 'result' object indicating cryptographic validity of the Ed25519 signature, an 'inputDigest' (hash of the input), a 'receiptDigest' (hash of the receipt), the 'offerId' ('signed-receipt-verification'), 'version' ('maha-microproducts/0.1'), 'amountBaseUnits' ('12500'), and a 'boundaries' array. Does not assert issuer identity, trusted timestamps, or semantic truth of the receipt contents.","failureModes":["Invalid or malformed base64 public key (wrong length or encoding) — returns validation error","Signature does not match the provided message and public key — returns invalid result","Message exceeds 8,000 character limit — returns schema validation error","Unsupported encoding type other than 'exact-utf8' — returns schema error","Missing required fields (message, publicKeyBase64, signatureBase64) — returns 400-level error","Public key is not a valid 32-byte Ed25519 key — returns cryptographic error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call Ed25519 signature verification over a short UTF-8 text receipt without setting up your own cryptographic infrastructure. It is ideal for agents that receive signed receipts or documents from other agents or services and need to confirm cryptographic integrity before acting on them. It does NOT establish issuer identity or trusted time, so use it only when you already trust the public key provenance through another channel.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:52:33.306Z","isFirstParty":false,"canonicalSlug":"maha-signed-receipt-verification-d56ae3c6"}