Verify a receipt
verify_receiptValidate a canli validation receipt offline by checking its Ed25519 signature, output hash, and id. Provide the receipt or its id to fetch and confirm authenticity.
Instructions
Verify a receipt offline: its Ed25519 signature against the bundled canlicapital.com key, its output hash and its id. Send an id to fetch it first, or the receipt itself. The receipt is content-hashed, reproducible from the open-source core it names, and signed with Ed25519 by a key published at https://canlicapital.com/.well-known/canli-receipt-keys.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Receipt id from a validation result. | |
| receipt | No | A receipt object, to verify without fetching. | |
| include_receipt | No | With id: also return the stored receipt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| valid | No | ||
| checks | No | ||
| key_id | No | ||
| meaning | No | ||
| receipt_id | No |