Repository navigation
·
7 commits
to main
since this release
Minor Changes
-
25c8468: Simplified payment-stage identity. Breaking changes to
mppx/identity:- Every payment offer in one 402 now carries the same HMAC-bound identity nonce, passed to verifiers as
context.nonce. Bind payment-stage proofs to it instead of the challenge id. Routes may combine several offers with payment-stage identity (for exampletempo()'s default currencies, or Tempo and Stripe), as long as they require the same verifiers; previously a route allowed only one such offer. - Verifiers issue their 402 challenge headers through a new optional
challenge(request, { nonce })hook, which runs once per 402, instead of returning them fromverifyasmissing.verifyonly checks proofs. Prover.retryis split:prepare(response, { challenge })runs on a 402 before the payment retry, andretry(response)runs on other rejections and returns whether to resend.
- Every payment offer in one 402 now carries the same HMAC-bound identity nonce, passed to verifiers as
Patch Changes
- b149237: Raised the @hono/node-server override to 2.1.5 to resolve a dependency audit advisory.
- faa4735: Fixed the client throwing
No Payment schemes found.on a402whoseWWW-Authenticatehas no Payment challenge, so other protocols such as x402 now handle it. - 73b464f: Fixed the Tempo charge client signing a sponsored transaction whose
validBeforehad fewer than 15 seconds left after slow preparation: the pre-sign check now measuresvalidBeforeas well as the challenge expiry. - a0d54fd: Enforced the fee payer's 15-second remaining-validity minimum for Tempo charges: clients refused to sign a sponsored pull transaction for a challenge expiring in under 15 seconds, checking again right before signing, and servers refused to issue a sponsored challenge with a paid amount and pull mode that expires that soon. Push and zero-amount challenges were exempt. Request hooks received the expiry echoed by the credential when verifying it.
- 7a68c55: Fixed focused tests failing in a clean checkout by generating the HTML modules on demand, and the package check's cleanup reinstalling dependencies with the publish manifest.
- 443ad6d: Improved
mppx validateSSE receipt scanning to search only newly received text for event boundaries, so long events no longer cost quadratic time.