jcp-x402: demonstrate the settlement coupling in the runnable example #25
Loading…
Reference in a new issue
No description provided.
Delete branch "jcp/x402-example-settlement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The example showed ingest, dual-ceiling minting, the money-cap denial, and the currency refusal — but not
seal_settlement, the crate's most distinctive contribution. It was tested and undemonstrated.Adds the settlement step, and runs the check a third party would run: recompute the coupling id from the settlement record and compare it against the receipt's
payload_hash.Two details that make it a real demo rather than a happy path:
Example-only; no library change. 7 tests green, clippy clean.