cedulon_verify_receipt
Verify a signed spend receipt's authenticity using a trusted issuer key or the receipt's embedded key, including the payee countersignature when present.
Instructions
Verify a spend receipt COSE_Sign1 (and payee countersignature when present). Supply expectIssuerKeyPem to check it against a key you already hold; without one the receipt is only checked against the key it carries, which any key satisfies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coseHex | No | ||
| receipt | No | Full SignedReceipt object from cedulon_spend | |
| publicKeyPem | No | ||
| counterCoseHex | No | ||
| expectPayeeKeyPem | No | Payee key you hold out of band, for the countersignature. | |
| payeePublicKeyPem | No | ||
| expectIssuerKeyPem | No | Issuer key you hold out of band. Omit and the check is self-referential. |