Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>attested.network — Proof of Payment for ATProtocol</title> <meta name="description" content="An open specification for decentralized, cryptographically verifiable proof of payments."> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"> <link rel="icon" type="image/svg+xml" href="logo.svg"> <link rel="stylesheet" href="styles.css"> <script type="module"> import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs'; mermaid.initialize({ startOnLoad: true, theme: 'base', themeVariables: { primaryColor: '#f5f3ff', primaryTextColor: '#111827', primaryBorderColor: '#ddd6fe', secondaryColor: '#f8f9fb', tertiaryColor: '#ffffff', lineColor: '#8b5cf6', textColor: '#111827', mainBkg: '#f5f3ff', nodeBorder: '#ddd6fe', clusterBkg: '#faf9fc', clusterBorder: '#e5e7eb', fontFamily: 'Inter, -apple-system, system-ui, sans-serif', fontSize: '13px' } }); </script></head><body>
<div class="draft-banner"> <p><strong>Draft — Not yet published.</strong> This specification is in active development and is not ready for review or critique. Stay tuned for formal announcements.</p></div>
<!-- Top navigation --><div class="topnav"> <div class="topnav-inner"> <a class="topnav-logo" href="/"><img src="logo.svg" alt="" class="topnav-logo-img"><span><span>attested</span>.network</span></a> <nav> <ul class="topnav-links"> <li><a href="index.html" class="active">Spec</a></li> <li><a href="brokers.html">Brokers</a></li> <li><a href="app-developers.html">App Developers</a></li> <li><a href="recipients.html">Recipients</a></li> <li><a href="payers.html">Payers</a></li> <li><a href="scenarios.html">Scenarios</a></li> </ul> </nav> </div></div>
<!-- Hero --><div class="hero"> <h1>Proof of Payment<br>for <span>ATProtocol</span></h1> <p class="subtitle">An open specification for decentralized, cryptographically verifiable proof of payments.</p> <div class="hero-badges"> <a class="hero-badge" href="https://badge.blue"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg> Built on badge.blue </a> <a class="hero-badge" href="https://atproto.com"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg> ATProtocol </a> </div></div>
<main class="container">
<!-- Guides --> <section id="guides" style="padding-bottom: 0;"> <h2>Documentation</h2> <p class="section-desc">Guides for every role in the attested payments ecosystem.</p> <div class="guide-grid"> <a class="guide-card" href="brokers.html"> <h4>Payment Brokers</h4> <p>Implement a payment servicer that processes transactions and writes attestation proofs.</p> <span class="guide-arrow">Read guide →</span> </a> <a class="guide-card" href="app-developers.html"> <h4>App Developers</h4> <p>Integrate payment verification into your ATProtocol application.</p> <span class="guide-arrow">Read guide →</span> </a> <a class="guide-card" href="recipients.html"> <h4>Recipients</h4> <p>Set up your identity to accept attested payments from supporters.</p> <span class="guide-arrow">Read guide →</span> </a> <a class="guide-card" href="payers.html"> <h4>Payers</h4> <p>Understand how your payments are recorded, verified, and portable.</p> <span class="guide-arrow">Read guide →</span> </a> <a class="guide-card" href="scenarios.html"> <h4>Scenarios</h4> <p>Real-world examples showing attested payments in action.</p> <span class="guide-arrow">Browse scenarios →</span> </a> </div> </section>
<!-- Overview --> <section id="overview"> <h2>Overview</h2> <p class="section-desc">Payment proofs replace centralized payment databases with cryptographic attestation records distributed across ATProtocol repositories. Any application can independently verify a payment—no single platform controls the relationship.</p>
<h3>Three-party attestation</h3> <p>Every payment creates records across three independent repositories. The supporter declares intent, the creator confirms receipt, and a broker—which facilitates and witnesses the exchange—writes its own proof. Each record is content-addressed and bound to its repository, preventing replay attacks.</p>
<div class="mermaid-wrapper"> <pre class="mermaid">graph LR subgraph SR["Supporter's Repo"] PAY["Payment Record<br/><i>oneTime | recurring | scheduled</i>"] SIG["signatures: [strongRef, ...]"] end
subgraph CR["Creator's Repo"] CP["payment.proof<br/><i>Attests via CID</i>"] end
subgraph BR["Broker's Repo"] BP["payment.proof<br/><i>Attests via CID</i>"] end
SIG -- "strongRef" --> CP SIG -- "strongRef" --> BP </pre> </div>
<div class="card-grid"> <div class="card"> <h4>Data Ownership</h4> <p>Each party controls their own records in their own repository. No single entity holds the full picture.</p> </div> <div class="card"> <h4>Cryptographic Integrity</h4> <p>CID-based content addressing ensures records cannot be modified after attestation. Change the data, break the hash.</p> </div> <div class="card"> <h4>Portable Relationships</h4> <p>Support relationships survive platform changes. Records live on ATProtocol’s network, not in proprietary databases.</p> </div> <div class="card"> <h4>Open Broker Model</h4> <p>Any entity can serve as a broker because brokers facilitate payment. A broker might process Stripe transactions, handle peer-to-peer cash, or simply witness a virtual high-five. The role is to facilitate and witness the exchange between payer and recipient.</p> </div> </div>
<div class="callout" style="margin-top: 32px;"> <p>This spec builds on <a href="https://badge.blue">badge.blue</a>’s CID-first attestation framework. Every attestation CID is computed from the record content, metadata, and the repository DID—meaning a record copied to a different repository automatically invalidates all its attestations.</p> </div>
<div class="callout" style="margin-top: 16px;"> <p><strong>Public & private proofs.</strong> Payment records and proofs can live in a user’s public repository for open verification, or within a <a href="https://dholms.leaflet.pub/3mhj6bcqats2o">Permissioned Data Space</a> for private access. The implementation is effectively identical in both cases—the same attestation mechanics, CID binding, and strongRef signatures apply. The only difference is that the payment servicer additionally manages creation of the permissioned space in the payer’s repository and ensures all parties (creator, broker) have appropriate read access and permissions.</p> </div>
<h3 style="margin-top: 32px;">Payment Intent</h3> <p>When a recipient wants to accept a payment, a structured discovery and initiation flow connects payer, recipient, and payment servicer:</p>
<ol class="steps"> <li>The <strong>recipient</strong> signals which payment servicers they use by publishing an ordered list of DIDs that have a <code>#AttestedNetwork</code> service endpoint in their DID document</li> <li>The <strong>payer’s client</strong> resolves these DIDs and presents the available servicers. The payer selects which one to use</li> <li>The payer’s client makes an <strong>authenticated request</strong> (using inter-service authentication) to <code>network.attested.payment.initiate</code> on the selected servicer, passing the product identifier. The response includes a <strong>token</strong> and a <strong>URL</strong></li> <li>The payer is <strong>directed through a browser</strong> to the URL to complete the payment process (entering payment details, confirming terms, etc.)</li> <li>The payer’s client polls <code>network.attested.payment.status</code> with the token. The response is either a <strong>strongRef</strong> pointing to the completed payment record, or a <strong>failed</strong> status</li> </ol>
<div class="mermaid-wrapper"> <pre class="mermaid">sequenceDiagram participant P as Payer's Client participant R as Recipient participant S as Payment Servicer participant B as Browser
P->>R: Resolve DID document R-->>P: Service endpoints with #AttestedNetwork DIDs P->>P: Select servicer from list
P->>S: network.attested.payment.initiate (authenticated) Note right of P: Sends product identifier S-->>P: { token, url }
P->>B: Redirect payer to URL B->>S: Complete payment flow S-->>B: Payment confirmed
P->>S: network.attested.payment.status (token) S-->>P: { strongRef } or { failed } </pre> </div>
<h3 style="margin-top: 32px;">Verification</h3> <p>Any application can verify a payment by checking the cryptographic chain:</p> <ol class="steps"> <li>Strip the <code>signatures</code> array from the payment record</li> <li>Prepare attestation metadata—add the repository DID, strip <code>cid</code> and <code>signature</code> fields</li> <li>Insert metadata as the <code>$sig</code> field, serialize to DAG-CBOR</li> <li>Hash with SHA-256 and wrap as CIDv1 (codec <code>0x71</code>)</li> <li>Fetch proof records via <code>strongRef</code> URIs and confirm CIDs match</li> </ol>
<h3 style="margin-top: 32px;">Trust Models</h3> <p>Applications can implement different validation strategies:</p> <ul class="trust-list"> <li><strong>Strict</strong> <span>Require proofs from both the creator and a specific trusted broker. Highest assurance.</span></li> <li><strong>Creator-Trusted</strong> <span>Accept any payment the creator has attested. Simpler, trusts creators to vouch for supporters.</span></li> <li><strong>Federated</strong> <span>Accept attestations from a set of trusted brokers. Enables regional verification networks.</span></li> </ul> </section>
<!-- Lexicon --> <section id="lexicon"> <h2>Lexicon</h2> <p class="section-desc">Four record types and three XRPC methods define the payment specification. Payment records live in the supporter’s repository and carry a <code>signatures</code> array referencing proof records from creators and brokers.</p>
<!-- oneTime --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Record</div> <div class="lexicon-name">network.attested.payment.oneTime</div> <p class="lexicon-desc">A one-time payment from a supporter to a creator. Represents a single, non-recurring financial transaction attested by one or more parties.</p> </div> <div class="lexicon-body"> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">subject</td><td class="field-type">string <span class="constraint">(did)</span></td><td class="field-desc">DID of the creator receiving payment</td></tr> <tr><td class="field-name">amount</td><td class="field-type">integer</td><td class="field-desc">Payment amount in smallest currency unit (e.g. cents). Min: 1</td></tr> <tr><td class="field-name">currency</td><td class="field-type">string</td><td class="field-desc">ISO 4217 currency code (e.g. <code>USD</code>, <code>EUR</code>)</td></tr> <tr><td class="field-name">txnid</td><td class="field-type">string</td><td class="field-desc">Unique transaction identifier for deduplication</td></tr> <tr><td class="field-name">memo</td><td class="field-type">string</td><td class="field-desc">Optional note from the supporter. Max 256 chars</td></tr> <tr><td class="field-name">createdAt</td><td class="field-type">string <span class="constraint">(datetime)</span></td><td class="field-desc">Timestamp of record creation</td></tr> <tr><td class="field-name">entitlements</td><td class="field-type">array(<code>com.atproto.repo.strongRef</code>)</td><td class="field-desc">Optional list of strong references to records representing any goods or services the payer is entitled to as a result of this payment</td></tr> <tr><td class="field-name">signatures</td><td class="field-type">array</td><td class="field-desc">Attestation entries (inline or <code>com.atproto.repo.strongRef</code>)</td></tr> </tbody> </table> </div> </div>
<div class="callout"> <p><strong>Entitlements.</strong> The <code>entitlements</code> field is an optional array of <code>com.atproto.repo.strongRef</code> objects. Each reference points to a record representing a good or service the payer is entitled to as a result of this payment. The referenced records can use any lexicon—they are not defined by this spec. This allows brokers, recipients, or third parties to define their own product or access records and link them directly to the payment that granted them.</p> </div>
<!-- recurring --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Record</div> <div class="lexicon-name">network.attested.payment.recurring</div> <p class="lexicon-desc">A recurring payment commitment. Immutable once created—supporters cancel and create new subscriptions to change terms. Bills on anniversary dates with automatic retry on failure.</p> </div> <div class="lexicon-body"> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">subject</td><td class="field-type">string <span class="constraint">(did)</span></td><td class="field-desc">DID of the creator receiving payment</td></tr> <tr><td class="field-name">amount</td><td class="field-type">integer</td><td class="field-desc">Amount per billing period in smallest currency unit. Min: 500, Max: 25000 (monthly equivalent)</td></tr> <tr><td class="field-name">currency</td><td class="field-type">string</td><td class="field-desc">ISO 4217 currency code</td></tr> <tr><td class="field-name">unit</td><td class="field-type">string</td><td class="field-desc">Billing period: <code>monthly</code> | <code>quarterly</code> | <code>semiannual</code> | <code>yearly</code></td></tr> <tr><td class="field-name">frequency</td><td class="field-type">integer</td><td class="field-desc">Billing frequency multiplier. Default: 1, Min: 1</td></tr> <tr><td class="field-name">txnid</td><td class="field-type">string</td><td class="field-desc">Unique transaction identifier for deduplication</td></tr> <tr><td class="field-name">createdAt</td><td class="field-type">string <span class="constraint">(datetime)</span></td><td class="field-desc">Timestamp of initial subscription creation</td></tr> <tr><td class="field-name">entitlements</td><td class="field-type">array(<code>com.atproto.repo.strongRef</code>)</td><td class="field-desc">Optional list of strong references to records representing any goods or services the payer is entitled to as a result of this payment</td></tr> <tr><td class="field-name">signatures</td><td class="field-type">array</td><td class="field-desc">Attestation entries (inline or <code>com.atproto.repo.strongRef</code>)</td></tr> </tbody> </table> </div> </div>
<!-- scheduled --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Record</div> <div class="lexicon-name">network.attested.payment.scheduled</div> <p class="lexicon-desc">A fixed series of payments. Unlike recurring payments that continue indefinitely, scheduled payments specify a total count and terminate automatically upon completion.</p> </div> <div class="lexicon-body"> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">subject</td><td class="field-type">string <span class="constraint">(did)</span></td><td class="field-desc">DID of the creator receiving payment</td></tr> <tr><td class="field-name">amount</td><td class="field-type">integer</td><td class="field-desc">Amount per payment in smallest currency unit</td></tr> <tr><td class="field-name">currency</td><td class="field-type">string</td><td class="field-desc">ISO 4217 currency code</td></tr> <tr><td class="field-name">unit</td><td class="field-type">string</td><td class="field-desc">Interval: <code>monthly</code> | <code>quarterly</code> | <code>semiannual</code> | <code>yearly</code></td></tr> <tr><td class="field-name">count</td><td class="field-type">integer</td><td class="field-desc">Total number of scheduled payments. Min: 2, Max: 60</td></tr> <tr><td class="field-name">txnid</td><td class="field-type">string</td><td class="field-desc">Unique transaction identifier for deduplication</td></tr> <tr><td class="field-name">createdAt</td><td class="field-type">string <span class="constraint">(datetime)</span></td><td class="field-desc">Timestamp of schedule creation; first payment date</td></tr> <tr><td class="field-name">entitlements</td><td class="field-type">array(<code>com.atproto.repo.strongRef</code>)</td><td class="field-desc">Optional list of strong references to records representing any goods or services the payer is entitled to as a result of this payment</td></tr> <tr><td class="field-name">signatures</td><td class="field-type">array</td><td class="field-desc">Attestation entries (inline or <code>com.atproto.repo.strongRef</code>)</td></tr> </tbody> </table> </div> </div>
<!-- proof --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Record</div> <div class="lexicon-name">network.attested.payment.proof</div> <p class="lexicon-desc">A remote attestation record stored in the attestor’s repository (creator or broker). Referenced via <code>com.atproto.repo.strongRef</code> in the payment record’s <code>signatures</code> array.</p> </div> <div class="lexicon-body"> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">cid</td><td class="field-type">string <span class="constraint">(cid)</span></td><td class="field-desc">Attestation CID computed per the <a href="https://badge.blue">badge.blue</a> spec from the payment record, metadata, and repository DID</td></tr> <tr><td class="field-name">status</td><td class="field-type">string</td><td class="field-desc">Optional status indicator for the attestation</td></tr> </tbody> </table> </div> </div>
<!-- lookup --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Query (HTTP GET)</div> <div class="lexicon-name">network.attested.payment.lookup</div> <p class="lexicon-desc">Look up verified payment records between a payer and recipient. Returns only records whose attestations have been cryptographically verified. Results may include any combination of <code>oneTime</code>, <code>recurring</code>, and <code>scheduled</code> payment records.</p> </div> <div class="lexicon-body"> <h4 style="font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin: 20px 0 4px;">Parameters</h4> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">payer</td><td class="field-type">string <span class="constraint">(did, required)</span></td><td class="field-desc">DID of the payer (supporter)</td></tr> <tr><td class="field-name">recipient</td><td class="field-type">string <span class="constraint">(did, required)</span></td><td class="field-desc">DID of the recipient (creator)</td></tr> <tr><td class="field-name">paymentType</td><td class="field-type">string</td><td class="field-desc">Optional filter by payment collection. Must be a full NSID: <code>network.attested.payment.oneTime</code>, <code>network.attested.payment.recurring</code>, or <code>network.attested.payment.scheduled</code></td></tr> <tr><td class="field-name">brokers</td><td class="field-type">array(string) <span class="constraint">(did, optional, repeating)</span></td><td class="field-desc">Optional list of broker DIDs. When provided, only returns payments that have at least one validating signature from an identity in this list</td></tr> <tr><td class="field-name">entitlements</td><td class="field-type">array(string) <span class="constraint">(at-uri, optional, repeating)</span></td><td class="field-desc">Optional list of entitlement AT-URIs. When provided, only returns payments whose <code>entitlements</code> array contains one or more of the given references</td></tr> </tbody> </table>
<h4 style="font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin: 20px 0 4px;">Response</h4> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">payments</td><td class="field-type">array(union)</td><td class="field-desc">List of verified payment records. Each element is a union of <code>network.attested.payment.oneTime</code>, <code>network.attested.payment.recurring</code>, or <code>network.attested.payment.scheduled</code></td></tr> </tbody> </table> </div> </div>
<!-- initiate --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Procedure (HTTP POST)</div> <div class="lexicon-name">network.attested.payment.initiate</div> <p class="lexicon-desc">Begin a payment flow. Called by the payer’s client against the selected payment servicer using inter-service authentication. Returns a token for status polling and a URL to direct the payer through the payment process.</p> </div> <div class="lexicon-body"> <h4 style="font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin: 20px 0 4px;">Input</h4> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">product</td><td class="field-type">string <span class="constraint">(required)</span></td><td class="field-desc">Product identifier for the payment being initiated</td></tr> </tbody> </table>
<h4 style="font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin: 20px 0 4px;">Response</h4> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">token</td><td class="field-type">string</td><td class="field-desc">Opaque token used to poll payment status via <code>payment.status</code></td></tr> <tr><td class="field-name">url</td><td class="field-type">string <span class="constraint">(uri)</span></td><td class="field-desc">URL to direct the payer to in a browser to complete the payment</td></tr> </tbody> </table> </div> </div>
<!-- status --> <div class="lexicon-block"> <div class="lexicon-header"> <div class="lexicon-tag">Query (HTTP GET)</div> <div class="lexicon-name">network.attested.payment.status</div> <p class="lexicon-desc">Check the status of a payment initiated via <code>payment.initiate</code>. Returns either a <code>com.atproto.repo.strongRef</code> pointing to the completed payment record, or a failed status.</p> </div> <div class="lexicon-body"> <h4 style="font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin: 20px 0 4px;">Parameters</h4> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">token</td><td class="field-type">string <span class="constraint">(required)</span></td><td class="field-desc">Token returned from <code>payment.initiate</code></td></tr> </tbody> </table>
<h4 style="font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin: 20px 0 4px;">Response</h4> <table class="schema-table"> <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr><td class="field-name">status</td><td class="field-type">string</td><td class="field-desc"><code>pending</code> | <code>completed</code> | <code>failed</code></td></tr> <tr><td class="field-name">ref</td><td class="field-type">com.atproto.repo.strongRef</td><td class="field-desc">Present when status is <code>completed</code>. Points to the attested payment record in the payer’s repository</td></tr> </tbody> </table> </div> </div> </section>
<!-- Examples --> <section id="examples"> <h2>Examples</h2> <p class="section-desc">Complete record examples showing how attested payments work in practice, using <a href="https://badge.blue">badge.blue</a> remote attestations with <code>com.atproto.repo.strongRef</code> entries.</p>
<!-- Example 1: One-time tip --> <h3>One-time tip with dual attestation</h3> <p>A supporter sends a $25 tip to a creator. Both the creator and broker independently attest the payment by writing proof records to their own repositories.</p>
<div class="code-block"> <div class="code-label">Supporter's repo — payment record</div><pre><span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"network.attested.payment.oneTime"</span><span class="hl-punc">,</span> <span class="hl-key">"subject"</span><span class="hl-punc">:</span> <span class="hl-str">"did:plc:v5jkrb2oncmnhc7rtqhrdzwi"</span><span class="hl-punc">,</span> <span class="hl-key">"amount"</span><span class="hl-punc">:</span> <span class="hl-num">2500</span><span class="hl-punc">,</span> <span class="hl-key">"currency"</span><span class="hl-punc">:</span> <span class="hl-str">"USD"</span><span class="hl-punc">,</span> <span class="hl-key">"txnid"</span><span class="hl-punc">:</span> <span class="hl-str">"01J5K9P3XQHV7WNBCM2G8RFAT"</span><span class="hl-punc">,</span> <span class="hl-key">"memo"</span><span class="hl-punc">:</span> <span class="hl-str">"Great stream, keep it up!"</span><span class="hl-punc">,</span> <span class="hl-key">"createdAt"</span><span class="hl-punc">:</span> <span class="hl-str">"2025-07-14T19:22:00.000Z"</span><span class="hl-punc">,</span> <span class="hl-key">"signatures"</span><span class="hl-punc">:</span> <span class="hl-punc">[</span> <span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"com.atproto.repo.strongRef"</span><span class="hl-punc">,</span> <span class="hl-key">"uri"</span><span class="hl-punc">:</span> <span class="hl-str">"at://did:plc:v5jkrb2oncmnhc7rtqhrdzwi/network.attested.payment.proof/3la7qxz2vbc2s"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreigyh7s6lqf5n3xke4jt6r2x3mqkzf4wpgicbqhqg5k3vdjn7aomfe"</span> <span class="hl-punc">}</span><span class="hl-punc">,</span> <span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"com.atproto.repo.strongRef"</span><span class="hl-punc">,</span> <span class="hl-key">"uri"</span><span class="hl-punc">:</span> <span class="hl-str">"at://did:plc:broker-payments-xyz/network.attested.payment.proof/3la7qy2kbrc2t"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreih7wwfa3tcoqd2ne5gqkvrulzpfnwjmcc5fsgqjdx4huswnhzaehqu"</span> <span class="hl-punc">}</span> <span class="hl-punc">]</span><span class="hl-punc">}</span></pre> </div>
<div class="code-block"> <div class="code-label">Creator's repo — proof record</div><pre><span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"network.attested.payment.proof"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreifdw3gy6ef4mcep5forx72cilu6wbsvuajkgsxnluqemkpa5xvzrwu"</span><span class="hl-punc">}</span></pre> </div>
<div class="callout"> <p><strong>How the CID binds to the repo:</strong> The proof’s <code>cid</code> field is computed from the payment record with the supporter’s DID baked into the <code>$sig</code> metadata. If someone copies the payment record to a different repository, recomputing the CID produces a different value—verification fails automatically.</p> </div>
<!-- Example 2: Monthly recurring --> <h3 style="margin-top: 40px;">Monthly recurring subscription</h3> <p>A $10/month recurring support commitment. The record is immutable—to change the amount, the supporter cancels and creates a new subscription.</p>
<div class="code-block"> <div class="code-label">Supporter's repo — recurring payment</div><pre><span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"network.attested.payment.recurring"</span><span class="hl-punc">,</span> <span class="hl-key">"subject"</span><span class="hl-punc">:</span> <span class="hl-str">"did:plc:v5jkrb2oncmnhc7rtqhrdzwi"</span><span class="hl-punc">,</span> <span class="hl-key">"amount"</span><span class="hl-punc">:</span> <span class="hl-num">1000</span><span class="hl-punc">,</span> <span class="hl-key">"currency"</span><span class="hl-punc">:</span> <span class="hl-str">"USD"</span><span class="hl-punc">,</span> <span class="hl-key">"unit"</span><span class="hl-punc">:</span> <span class="hl-str">"monthly"</span><span class="hl-punc">,</span> <span class="hl-key">"frequency"</span><span class="hl-punc">:</span> <span class="hl-num">1</span><span class="hl-punc">,</span> <span class="hl-key">"txnid"</span><span class="hl-punc">:</span> <span class="hl-str">"01J5KBR4WMHV8XNBDM3G9SFBT"</span><span class="hl-punc">,</span> <span class="hl-key">"createdAt"</span><span class="hl-punc">:</span> <span class="hl-str">"2025-08-01T00:00:00.000Z"</span><span class="hl-punc">,</span> <span class="hl-key">"entitlements"</span><span class="hl-punc">:</span> <span class="hl-punc">[</span> <span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"com.atproto.repo.strongRef"</span><span class="hl-punc">,</span> <span class="hl-key">"uri"</span><span class="hl-punc">:</span> <span class="hl-str">"at://did:plc:v5jkrb2oncmnhc7rtqhrdzwi/com.example.product/3miemuswqbyiw"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreik3xxgb5tcoqd3ne6gqkvrulzpfnwjmcc5fsgqjdx4huswnhzbekaa"</span> <span class="hl-punc">}</span> <span class="hl-punc">]</span><span class="hl-punc">,</span> <span class="hl-key">"signatures"</span><span class="hl-punc">:</span> <span class="hl-punc">[</span> <span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"com.atproto.repo.strongRef"</span><span class="hl-punc">,</span> <span class="hl-key">"uri"</span><span class="hl-punc">:</span> <span class="hl-str">"at://did:plc:v5jkrb2oncmnhc7rtqhrdzwi/network.attested.payment.proof/3lb2rxz3vdc3t"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreigyh7s6lqf5n3xke4jt6r2x3mqkzf4wpgicbqhqg5k3vdjn7aomfe"</span> <span class="hl-punc">}</span><span class="hl-punc">,</span> <span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"com.atproto.repo.strongRef"</span><span class="hl-punc">,</span> <span class="hl-key">"uri"</span><span class="hl-punc">:</span> <span class="hl-str">"at://did:plc:broker-payments-xyz/network.attested.payment.proof/3lb2ry4ldsc3u"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreih7wwfa3tcoqd2ne5gqkvrulzpfnwjmcc5fsgqjdx4huswnhzaehqu"</span> <span class="hl-punc">}</span> <span class="hl-punc">]</span><span class="hl-punc">}</span></pre> </div>
<!-- Example 3: Scheduled payments --> <h3 style="margin-top: 40px;">Scheduled payment series</h3> <p>Six monthly payments of $50 each, terminating automatically after the final installment. Useful for project-based sponsorships or fixed commitments.</p>
<div class="code-block"> <div class="code-label">Supporter's repo — scheduled payment</div><pre><span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"network.attested.payment.scheduled"</span><span class="hl-punc">,</span> <span class="hl-key">"subject"</span><span class="hl-punc">:</span> <span class="hl-str">"did:plc:v5jkrb2oncmnhc7rtqhrdzwi"</span><span class="hl-punc">,</span> <span class="hl-key">"amount"</span><span class="hl-punc">:</span> <span class="hl-num">5000</span><span class="hl-punc">,</span> <span class="hl-key">"currency"</span><span class="hl-punc">:</span> <span class="hl-str">"USD"</span><span class="hl-punc">,</span> <span class="hl-key">"unit"</span><span class="hl-punc">:</span> <span class="hl-str">"monthly"</span><span class="hl-punc">,</span> <span class="hl-key">"count"</span><span class="hl-punc">:</span> <span class="hl-num">6</span><span class="hl-punc">,</span> <span class="hl-key">"txnid"</span><span class="hl-punc">:</span> <span class="hl-str">"01J5KCS5XRHW9YOCEN4H0TGCU"</span><span class="hl-punc">,</span> <span class="hl-key">"createdAt"</span><span class="hl-punc">:</span> <span class="hl-str">"2025-09-01T00:00:00.000Z"</span><span class="hl-punc">,</span> <span class="hl-key">"signatures"</span><span class="hl-punc">:</span> <span class="hl-punc">[</span> <span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"com.atproto.repo.strongRef"</span><span class="hl-punc">,</span> <span class="hl-key">"uri"</span><span class="hl-punc">:</span> <span class="hl-str">"at://did:plc:broker-payments-xyz/network.attested.payment.proof/3lc3syz4wec4u"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreif4xxgb5tcoqd3ne6gqkvrulzpfnwjmcc5fsgqjdx4huswnhzbekru"</span> <span class="hl-punc">}</span> <span class="hl-punc">]</span><span class="hl-punc">}</span></pre> </div>
<!-- Example 4: Broker proof --> <h3 style="margin-top: 40px;">Broker proof record</h3> <p>The broker’s independent attestation, stored in their own repository. This is the record referenced by the second <code>strongRef</code> in the examples above.</p>
<div class="code-block"> <div class="code-label">Broker's repo — proof record</div><pre><span class="hl-punc">{</span> <span class="hl-key">"$type"</span><span class="hl-punc">:</span> <span class="hl-str">"network.attested.payment.proof"</span><span class="hl-punc">,</span> <span class="hl-key">"cid"</span><span class="hl-punc">:</span> <span class="hl-str">"bafyreih7wwfa3tcoqd2ne5gqkvrulzpfnwjmcc5fsgqjdx4huswnhzaehqu"</span><span class="hl-punc">}</span></pre> </div>
<!-- Verification flow diagram --> <h3 style="margin-top: 40px;">Verification flow</h3> <p>How an application verifies a one-time payment with dual attestation:</p>
<div class="mermaid-wrapper"> <pre class="mermaid">sequenceDiagram participant App as Verifying App participant S as Supporter's Repo participant C as Creator's Repo participant B as Broker's Repo
App->>S: Fetch payment record S-->>App: payment.oneTime + signatures[]
par Verify creator attestation App->>C: Fetch proof via strongRef URI C-->>App: payment.proof (cid) App->>App: Recompute CID from payment + supporter DID App->>App: Confirm CID matches proof.cid and Verify broker attestation App->>B: Fetch proof via strongRef URI B-->>App: payment.proof (cid) App->>App: Recompute CID from payment + supporter DID App->>App: Confirm CID matches proof.cid end
App->>App: Payment verified ✓ </pre> </div> </section>
</main>
<footer> <div class="container"> <p>attested.network · Built on <a href="https://badge.blue">badge.blue</a> attestations · <a href="https://atproto.com">ATProtocol</a></p> </div></footer>
</body></html>