Verify a receipt
verify_receiptVerify validation receipts offline by checking Ed25519 signature against the canlicapital.com public key and confirming output and content hashes match to ensure authenticity and integrity.
Instructions
Check a validation receipt's Ed25519 signature offline against the canlicapital.com public key bundled in this package, that its output hashes to its output_sha256, and that its content hashes to its id. Send an id to fetch the receipt first, or a receipt already fetched. 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 as get_receipt returns it (its data), to verify without fetching it. |