l402_payment_verify
Confirm L402 payment validity by verifying SHA-256 preimage proof, HMAC authenticity, and caveat constraints such as expiry and resource.
Instructions
Verify an L402 payment token submitted by a client. Checks three layers: 1) preimage proves payment (SHA-256), 2) HMAC signature proves authenticity, 3) caveats (expiry, resource) are satisfied. Returns valid: true/false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | ||
| macaroon | No | ||
| preimage | No | ||
| resource | No |