Verify signed receipt
verify_receiptVerify an offer-receipt artifact offline by recovering its EIP-712 signature and binding the payload digest. Returns validity, signer, digest; use expectedSigner to catch a mismatched signer.
Instructions
Verify an offer-receipt artifact: recover the EIP-712 signature and confirm the payload digest binds to it. Fully OFFLINE — no network, no API key, no account; verifying someone else's receipt is the intended use. Use this for a receipt (money); use verify_compliance_record for an action record (a non-payment action). Returns { valid, signer, digest } and, when expectedSigner is supplied and does not match, valid:false with the recovered signer so you can see who actually signed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes | the receipt artifact exactly as issued: { format, payload, signature }. Pass the object, not a JSON string | |
| expectedSigner | No | 0x address the receipt MUST be signed by — obtain it out-of-band, never from the artifact. Omit to recover the signer without enforcing it |