cedulon_verify_receipt
Validate a signed spend receipt and payee countersignature against known issuer/payee keys, proving the payment was issued by the expected party.
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. |