Guiding question
When machines pay each other at high speed and regulators require that payers be identified, how can a payment system check what it needs to know without collecting and exposing everything about the people behind it?
Short answer. By changing what gets shared. Instead of sending a copy of a passport or a full customer file, the payer presents a signed credential from a trusted issuer and reveals only the fields the receiver needs (selective disclosure), or proves a fact about those fields without revealing them at all (zero-knowledge proofs). The credential lives in a wallet the holder controls, which is the core idea of self-sovereign identity. Open standards now cover each piece: W3C Verifiable Credentials 2.0 (a W3C Recommendation since May 15, 2025), W3C Decentralized Identifiers 1.0 (July 19, 2022), and IETF RFC 9901 for selective disclosure in JSON Web Tokens (November 2025). 1 2 3 The EU says member states will offer digital identity wallets to every citizen, resident and business by the end of 2026, with users sharing "only what is necessary." 4 These tools reduce data exposure. They do not remove the legal duty to identify payers, and the BIS warns that bearer-style digital money already strains anti-money-laundering controls. 5 lesson
- 2022-07-19W3C Decentralized Identifiers 1.0 becomes a Recommendation
- 2025-05-15W3C Verifiable Credentials 2.0 becomes a Recommendation
- 2025-11IETF RFC 9901, selective disclosure for JSON Web Tokens
- End of 2026EU digital identity wallets for every citizen, resident and business (planned)
Each piece now has an open standard; the EU wallet rollout is a stated plan.
Source: W3C, Verifiable Credentials Data Model v2.0, W3C Recommendation
Section 1: the privacy problem in payments
Every payment leaks information: who paid whom, how much, when and often why. Card payments keep most of that inside banks and networks. Public blockchains publish it to everyone, behind pseudonymous addresses. The BIS notes that pseudonymity "can preserve privacy but also facilitates illegal use," and that public-chain transactions are traceable even though identities are hidden. 5
Machine payments make the problem bigger in two ways. lesson
- Volume. An agent making thousands of payments a day creates a detailed trail of what its owner is doing.
- Delegation. A receiver wants to know not just who the owner is, but whether this agent is allowed to spend, how much, and on what. That is more information, not less.
Current agent-payment protocols already rely on signed proofs. Google's AP2 uses "Mandates," cryptographically signed records of what a user instructed, "signed by verifiable credentials" (vendor claim). 6 Visa's Trusted Agent Protocol uses message signatures so merchants can recognize approved agents (vendor documentation). 7 The question is how much those proofs reveal.
Section 2: verifiable credentials
The W3C Verifiable Credentials Data Model 2.0 describes a "three-party ecosystem" of issuers, holders and verifiers. 1 An issuer, such as a bank, government or employer, signs a credential stating facts about a subject. The holder keeps it, usually in a digital wallet. A verifier checks the signature when the holder presents it. The specification calls this a way to express credentials "on the Web in a way that is cryptographically secure, privacy respecting, and machine verifiable." 1
- Step 1Issuer checks facts and signs a credential
- Step 2Holder stores the credential in a wallet it controls
- Step 3Verifier asks for a specific claim
- Step 4Holder presents only that claim or a proof about it
- Step 5Verifier checks the issuer's signature and accepts or rejects
Two things make this different from showing a scanned document. lesson
- The verifier checks a signature, not a picture. Forgery requires breaking cryptography, not editing an image.
- The verifier does not need to call the issuer. The holder presents the credential directly, so the issuer does not learn every place it is used.
The specification is also frank about risk. It warns that "the persistence of digital information, and the ease with which disparate sources of digital data can be collected and correlated" create a privacy concern that machine-readable credentials "threatens to make worse," and devotes a section to privacy considerations. 1 Good tools can be used badly.
Section 3: selective disclosure
The W3C specification defines selective disclosure as "the ability of a holder to make fine-grained decisions about what information to share," and unlinkable disclosure as selective disclosure "where presentations cannot be correlated between verifiers." 1
- Selective disclosure
- Holder chooses which fields to reveal
- Unlinkable disclosure
- Selective disclosure where presentations cannot be correlated between verifiers
- Zero-knowledge proof
- Proves a fact, such as over 18, without revealing the field itself
Hiding fields is not the same as preventing verifiers from linking presentations.
Source: W3C, Verifiable Credentials Data Model v2.0, W3C Recommendation
IETF RFC 9901, published in November 2025 as a Standards Track document, defines a concrete mechanism "for the selective disclosure of individual elements of a JSON data structure," with "the selective disclosure of JSON Web Token (JWT) claims" as its main use case. 3 In plain terms: the issuer signs a credential in which each field is hidden behind a fingerprint. The holder can later reveal some fields, with the information needed to match them to the fingerprints, while keeping the rest hidden. The verifier can check that revealed fields were signed by the issuer. lesson
Example. A credential from a bank lists name, date of birth, address, account number and "identity verified: yes." A data provider that only needs to know the payer is a verified customer of a regulated bank can ask for that one field. The payer reveals it and nothing else. lesson
The limit. Selective disclosure hides fields, but the same credential presented to two verifiers can still be linked if it carries the same signature or identifier each time. That is why the W3C definition separates plain selective disclosure from unlinkable disclosure. 1 lesson
Section 4: zero-knowledge proofs
A zero-knowledge proof lets someone prove a statement is true without revealing why it is true. The classic payment-relevant examples are proving "I am over 18" without revealing a birth date, or "my balance is above the price" without revealing the balance. lesson
The W3C specification provides for this directly. It notes that certain verifiable presentations "might contain data that is synthesized from, but does not contain, the original verifiable credentials (for example, zero-knowledge proofs)," and gives examples using privacy-enhancing technologies "such as zero-knowledge proofs" throughout. 1
Standardization of zero-knowledge proofs is still developing. NIST's Privacy-Enhancing Cryptography project collaborated with the ZKProof community initiative "between 2019 and 2024, as a way of supporting the development of open reference material on zero-knowledge proofs." 8 That is a signal that the field is maturing, not that a single government standard exists yet. lesson
What zero-knowledge proofs are good for in payments. lesson
| Need | What is proved | What stays hidden |
|---|---|---|
| Age-restricted purchase | Holder is over a threshold age | Exact birth date, name |
| Residence check | Holder lives in an allowed country | Street address |
| Spending authority | Agent's mandate allows this amount | Owner's other limits and history |
| Solvency | Balance covers the payment | Actual balance |
| Sanctions screening | Holder is not on a list, per an issuer's check | Holder's identity to the merchant |
The costs. Zero-knowledge proofs take computation to create and check, and they depend on the issuer and the proof system being sound. A proof is only as trustworthy as the credential it is built on. lesson
Section 5: self-sovereign identity and decentralized identifiers
"Self-sovereign identity" means the holder, not a platform, controls their credentials and decides when to share them. The technical building block is the Decentralized Identifier (DID), standardized as a W3C Recommendation on July 19, 2022. 2 A DID is an identifier the holder can create and control, linked to cryptographic keys, that does not depend on a central registry. Credentials can be issued to a DID, and the holder proves control of it by signing with the matching key. 2 lesson
On the XRP Ledger. XRPL Credentials are "signed statements that can be stored in the ledger and can attest to a user's identity, legal status, or other status." The design "draws from the W3C Verifiable Credentials standard," with differences such as identifying the subject "by an XRP Ledger address rather than a URL." It defines roles for issuers, users and "authorizers who want to limit specific actions or interactions to users who possess the correct credentials." 9 Lesson 2 of Module 2 showed MPT allow-listing; credentials are a way to decide who goes on such a list. lesson
One privacy trade-off is worth naming. Storing a credential on a public ledger makes it easy for anyone to check, but it also makes it visible. The XRPL documentation says the feature supports "the privacy needs of users," which in practice depends on what the credential contains. A credential that only says "verified by issuer X" leaks much less than one with personal details. 9 lesson
Section 6: wallets at government scale
The European Commission says its EU Digital Identity Wallet "will enable users to access online and offline public and private services, store and share digital documents, and create binding signatures," and that "Member States will make wallets available to every citizen, resident and business by the end of 2026." 4 Among its stated benefits: "personal data is protected as users share only what is necessary," and users get "full control" over what they share and a record of it. 4 Listed uses include opening a bank account and proving identity online. 4
If that rollout happens on schedule, a large population will hold government-grade digital credentials in wallets that support selective sharing. That would make privacy-preserving identity checks at payment time far more practical. Whether those wallets will be used for agent or machine payments is not yet documented. lesson
Section 7: the tension with financial integrity
Privacy tools sit next to a legal duty. Banks and payment firms must know their customers and report suspicious activity. The BIS argues that in the traditional system "the onus for maintaining integrity is on customer-facing intermediaries," and that stablecoins as bearer instruments make this harder because they can move to wallets "that have definitely not verified their identities." 5
Privacy tools can help both sides if designed well. lesson
- A regulated issuer does the full identity check once, and issues a credential.
- Each payment carries only a proof that the payer holds a valid credential from a regulated issuer, and perhaps that they are not on a sanctions list.
- The full record stays with the issuer, available to authorities under legal process.
That design reduces how many companies hold copies of personal data, which lowers breach risk, while keeping an accountable party in the chain. The BIS separately highlights AI tools and federated learning, where "only aggregated information is shared," as ways to improve anti-money-laundering work while preserving privacy. 5
- Step 1A regulated issuer does the full identity check once and issues a credential
- Step 2Each payment carries only a proof of a valid credential
- Step 3The full record stays with the issuer, available to authorities under legal process
Fewer copies of personal data, with an accountable issuer still in the chain.
Source: BIS, Annual Economic Report 2025, Chapter III: The next-generation monetary and financial system
The failure mode is also clear: a proof system that lets payers prove "I am allowed" without any accountable issuer behind the credential would be a gap, not a privacy tool. lesson
Section 8: a worked example, an agent buying data
An agent buys market data on behalf of a small business. The provider must check the buyer is a business in an allowed country and that the agent may spend up to USD 50 a day. All parties and amounts are hypothetical. model
| Step | Old way | Privacy-preserving way |
|---|---|---|
| Onboarding | Upload company registration and director ID to the provider | Business holds a credential from a regulated bank or registry |
| Authority | Shared account login with a card on file | Owner signs a mandate: "up to USD 50 a day for data" 6 |
| Each payment | Card charge with stored data | Agent presents a proof of business status and country, plus the mandate, and pays by x402 |
| Data held by provider | Full company file and card details | A record that a valid proof was shown |
| Breach impact | Company and director data exposed | Little personal data to steal |
The second column is not free. Someone has to issue credentials, wallets must be secure, and verifiers must trust issuers. But it shows how privacy and accountability can both improve. lesson
Deliverable: a minimum-disclosure plan
For one payment flow, list what the receiver truly needs to know and how it can be proved.
| What the receiver needs | Why (law, risk, contract) | Minimum proof | Tool | Who issues |
|---|---|---|---|---|
| selective disclosure 3, ZK proof 1, credential 9 | ||||
Rules: lesson
- Start from the law and the risk, not from what is easy to collect.
- For each need, prefer a proof over a field, and a field over a document.
- Name an accountable issuer for every credential.
- State what data is stored, by whom, for how long.
Why it matters
Machine payments could become the most detailed surveillance record ever built, or one of the most private payment systems, depending on design. The standards to do it well, verifiable credentials, decentralized identifiers, selective disclosure and zero-knowledge proofs, already exist, and Europe plans to put wallets in every citizen's hands by the end of 2026. 1 2 3 4 Knowing these tools lets you ask any payment or identity provider a sharp question: what do you actually need to know, and why are you collecting more? lesson
Sources
- W3C, Verifiable Credentials Data Model v2.0, W3C Recommendation (May 15, 2025)
- W3C, Decentralized Identifiers (DIDs) v1.0, W3C Recommendation (July 19, 2022)
- IETF, RFC 9901: Selective Disclosure for JSON Web Tokens (November 2025)
- European Commission, European Digital Identity
- BIS, Annual Economic Report 2025, Chapter III: The next-generation monetary and financial system (June 29, 2025)
- Google Cloud, Announcing Agent Payments Protocol (AP2) (September 16, 2025) (vendor claims)
- Visa Developer, Trusted Agent Protocol (vendor documentation)
- NIST CSRC, Privacy-Enhancing Cryptography: ZKProof collaboration
- XRPL.org, Credentials