#3086·x402

[Feature]: Authorization-provenance extension: human-anchored, ZK-attested capability binding carried in PaymentPayload.extensions

Author: rudizee007Created Aug 8, 2026Updated Sep 24, 2026
Labelsenhancement

Problem / gap

x402 is intentionally lightweight (HTTP 402 + signed payment payload). It does not natively express scoped delegation, bounded authority, or compromised-agent blast-radius limits.

For regulated or institutional agent payments, counterparties must be able to verify independently, without calling back to a facilitator or issuer, that the agent held authority for exactly this action, and that a human ultimately anchored it. Today that provenance either is not captured, or is captured by exposing PII in payment metadata.

Regulatory context: FATF Recommendation 16 (Travel Rule) originator/beneficiary attestation without broadcasting PII; EU AI Act Art. 12 record-keeping; MiCA Art. 76 auditability.

Proposed extension (opt-in)

Corrected from the original post after review in this thread, see the note at the end.

The proof must arrive BEFORE the resource is served, so it belongs in the client's PaymentPayload, not in PAYMENT-RESPONSE.

  1. PAYMENT-REQUIRED, the resource server MAY advertise that it accepts (or requires) an authorization attestation:

    authz_provenance: { formats: ["spt-txn/1"], required: false }

  2. PAYMENT-SIGNATURE, the client attaches the attestation to the payload it is already sending:

    PaymentPayload.extensions["spt-txn/1"].info.authz_attestation = { format: "spt-txn/1", human_anchor: "", scope_binding: "", delegation_depth: , zk_proof: "<Groth16: valid delegation chain + scope subset>", travel_rule: "" }

  3. PAYMENT-RESPONSE, MAY carry a decision receipt or proof digest. Useful for audit, but it is not where the authorization proof belongs.

scope_binding preimage: RFC 8785 JCS over the request identity plus the SELECTED PaymentRequirements tuple that PaymentPayload.accepted names, scheme, network, amount, asset, payTo. It deliberately does not cover the other accepts alternatives, so reordering an unrelated challenge entry does not break it.

Scheme-specific freshness is a second, adapter-level binding: the portable extension stays chain-agnostic, and a scheme adapter binds the concrete authorization fields. For EIP-3009 on Base that is the authorization nonce and the validAfter/validBefore window.

Facilitators and servers that do not understand the field ignore it, graceful fallback to standard x402.

Verification

Eight steps, offline, fail-closed at the first failure, against a cached signed registry snapshot. No issuer call-back and no live chain read in the hot path.

1  signature            5  sender constraint
2  temporal validity    6  chain
3  audience             7  scope
4  revocation           8  transaction-context binding

Issuer registration, delegation depth and humanAnchor consistency are all checked inside step 6.

Technical artifacts

Questions for the TSC / maintainers

  • Scope: is authorization provenance in scope for a core spec extension, or better positioned as a registered optional scheme under specs/schemes/?
  • Encoding: any constraint on payload size, or a preference between CBOR and JSON, for an attached proof of this size? Encoded header-size measurements for the proof plus the echoed extension schema to follow.

Links

Code (Apache-2.0): https://github.com/rudizee007/spt-txn-poc

IETF Internet-Draft: https://datatracker.ietf.org/doc/draft-coetzee-oauth-spt-txn-tokens/

Formal security paper (transaction-binding, unlinkability): https://doi.org/10.5281/zenodo.19299787

Framework paper (v2): https://doi.org/10.5281/zenodo.20870193

Reference site: https://foss.violetskysecurity.com/

Authored by Rudolf J. Coetzee (Violet Sky Security SEZC), author of the IETF OAuth SPT-Txn draft.

Proposed extension (opt-in)

PAYMENT-REQUIRED - a resource server MAY advertise it accepts an authorization attestation:

authz_provenance: { formats: ["spt-txn/1"], // negotiable; unknown -> client omits, standard flow proceeds required: false // servers MAY require it for regulated resources }

PAYMENT-RESPONSE / payment payload - client MAY attach an attestation object:

authz_attestation: { format: "spt-txn/1", human_anchor: "<rotating one-way ZK commitment to the authorizing person>", scope_binding: "<hash binding the attestation to this exact transaction context>", delegation_depth: <int>, // bounded; agent authority can only narrow, never widen zk_proof: "<Groth16 proof: valid delegation chain + scope subset, no intermediate scopes revealed>", travel_rule?: "<IVMS101-in-SD-JWT selective-disclosure attestation, FATF R.16>" }

Verification is offline and fail-closed: signature → issuer trust (signed registry snapshot) → temporal → revocation → strict-subset scope → delegation depth → human-anchor consistency → scope-hash binding. No issuer call-back, no live chain read in the hot path. Facilitators/servers that don't understand the field ignore it - graceful fallback to standard x402.

Technical artifacts (working implementation behind this)

  • ZK proof verify: ~1.5 ms (~6,700/s); cleartext verify ~62,000/s; token mint ~394,000/s (10-core laptop baseline).

  • Attestation/token size: ~759 bytes; post-quantum cost isolated to an off-path escrow envelope (hot path unchanged).

  • Crypto: Ed25519, Groth16/BN254, Poseidon2; hybrid X25519+ML-KEM-768 for stored escrow.

  • Live on XRPL mainnet: authorize (token) → settle (x402) → verify (offline 8-step) → deliver; over-scope payment denied before signing. Same gate demonstrated across 20+ ledgers; Groth16 verifier live on Ethereum mainnet.

  • Standards lineage: IETF OAuth Transaction Tokens draft; SD-JWT VC; RFC 8693; IVMS101.

Questions for the TSC / maintainers

  • Scope - is authorization provenance in scope for a core spec extension, or better positioned as a registered optional scheme under specs/schemes/?

  • Placement - does advertising the capability belong in PAYMENT-REQUIRED with the attestation echoed in PAYMENT-RESPONSE, or would you prefer a separate negotiation step?

  • Message size / format - any constraints on payload size or preferred encoding (CBOR vs JSON) for an attached proof of this size, given facilitator constraints?

LINKS: Code (Apache-2.0): https://github.com/rudizee007/spt-txn-poc IETF Internet-Draft: https://datatracker.ietf.org/doc/draft-coetzee-oauth-spt-txn-tokens/ Formal security paper (transaction-binding ⇒ EUF-CCA, unlinkability): https://doi.org/10.5281/zenodo.19299787 Framework paper (v2): https://doi.org/10.5281/zenodo.20870193 Reference site: https://foss.violetskysecurity.com/

Authored by Rudolf J. Coetzee (Violet Sky Security SEZC), author of the IETF OAuth SPT-Txn draft.