Introduction
Badge is a permanent website for proving identity and access. It works by deriving a dedicated badge key from a user’s passkey in the browser and publishes a signed badge that any app can verify on its own. From one passkey and a 12-word BIP-39 recovery phrase, it derives that badge key with HKDF, and a private, unlinkable identifier for each username on each app. The badge is a small signed Arweave record: the badge key’s public key, an optional public name, and stamps, which are signed pointers to checks already passed elsewhere. In the proposed design, each record is dual-signed with a standard key and ML-DSA. Together they form a human identity layer: one human, one badge. A badge alone is not proof of a human; a stamp such as Stripe Identity is a check mark that can carry proof a real human holds it. The page lives at the permabought Arweave Name System (ArNS) name badge.ar.io, a permanent, serverless site with no Badge server. The name cannot expire or be reclaimed; sign-in still depends on the ar.io domain and gateway, and the phrase restores the same badge on any gateway. The passkey is a convenient way in while the site is up; the permanent part is the identity itself. No identity data goes on-chain.
Overview
Badge lets a human create and use one or more badges, kept permanently at badge.ar.io. It exists because preserving encrypted data is only useful if the way to unlock it is preserved too.
Badge is made of these core systems:
FIDO2 passkeys with the relying party domain badge.ar.io
Just-in-time key generation: keys are created only when needed, then discarded
12-word recovery phrases that can rebuild every key
Post-quantum badge signatures: each badge record is signed with both a standard key and ML-DSA, the NIST post-quantum standard
Built-in wallets on standard paths (Ethereum/Base, Bitcoin, Solana, Arweave): the recovery phrase also opens them in MetaMask, Phantom, Sparrow and Wander; per-app Solana wallets by default
Optional third-party identity verification: X and World ID at launch; Stripe Identity, Apple Digital ID, ENS, ArNS and others later
Opt-in linked accounts: by default, per-app keys and wallets stay unlinkable and never point to the badge, and the public badge shows only name, check, picture, and stamps. A user may link an app account or wallet by publishing a record signed by both the badge key and that app or wallet key; unlinking hides it, but the old record stays on Arweave, so a permanence warning is shown before each link is published.
Together, they make an identity and key management system with these benefits:
Users stay in control: people manage their own credentials and accounts through passkeys whose relying party is independent of any company’s servers or access policies.
Nothing to breach: no passwords, keys or account secrets are stored on any server. They’re recreated from the user’s passkey or recovery phrase when needed.
Simple key management: one passkey replaces the many keys for different apps and files. Badge works in any browser that supports WebAuthn, so users never need a separate wallet app or extension.
Reusable everywhere: one badge works across every app that supports it, for both web2 sign-in and web3 signatures, so users never start over with a new account and developers reuse the same sign-in, keys and verification instead of building their own.
Permanent recovery: a lost passkey doesn’t mean lost access. The recovery phrase recreates every key and can link new passkeys.
Verification without trust: any app can check a badge against its signed record on Arweave, with no Badge server to ask.
Quantum-ready: badge records are dual-signed with a post-quantum signature, and the recovery phrase’s 128-bit secret is beyond any practical quantum search. Passkey sign-in and wallets will adopt post-quantum standards as they ship.
Any app can build with Badge to give its users these benefits, with no passwords to store and no account database to protect.
Contents
1Problem Being Solved
Apps want to know two things about the human signing in: that it is the same human as last time, and that it is a human at all. Badge answers the first with passkeys and per-app keys. Today’s proof-of-human and wallet-identity tools each prove something useful, but each is tied to a wallet or to one ecosystem, so none carries across ordinary web apps and crypto apps. Passwords and emailed codes can be phished or scripted. A wallet signature proves control of a key, not that a real human holds it. Federated sign-in with Apple or Google proves control of a company account, not that a real human is behind it.
Badge does not replace those tools. It aggregates their results as stamps in one place any app can check, and adds Badge’s passkey sign-in and a different identifier for every app. An app can then require a person stamp when it needs a check that a real human passed the source.
These constraints shape the design:
Passkeys are bound to one relying-party domain. Badge passkeys are bound to badge.ar.io. Other gateway addresses need a new passkey, plus the 12-word phrase, which restores the same keys and badge.
Sign-in depends on the ar.io DNS domain and gateway. badge.ar.io is a permabought ArNS name, with no expiry and no reclaim, but the.io domain still has to be renewed and the gateway still has to serve the name. If the domain were lost or transferred, there is no automatic redirect. Apps must verify signatures and on-chain records, never the domain alone.
No secrets or verified identity on-chain. The badge never puts a legal name, date of birth, address, document number, photo, or recovery phrase on Arweave. A public badge name is a chosen handle, not a legal name.
Per-app identifiers are unlinkable by default. Each app gets a private pairwise id and wallet. The badge itself is a public identity, shown at sign-in unless the user hides it from that app (per-app only; no global hide). The unlinkable handoff stops sending the global credential id and passkey public key to every app, so any remaining linking happens only through the badge.
A badge alone is not proof of a human. The check mark means at least one valid person stamp the app’s policy accepts. Copy reads “verified human,” never “verified identity” or “verified name.”
Recovery depends on the 12-word phrase. The phrase encodes the badge’s 128-bit secret, made at random at sign-up. The passkey is replaceable. The master secret, and with it the same keys and badge, can be reconstructed only from that phrase. Retrieval on the site works only while badge.ar.io is up, so the user must save the phrase at sign-up.
Post-quantum: each badge record is dual-signed with a standard key and ML-DSA. Passkey sign-in and wallets stay on today’s curves until post-quantum standards ship. Arweave transaction and bundle signatures remain outside this design; the inner ML-DSA signature protects record contents.
2Comparisons to Existing Solutions
Table 1 compares Badge with the sign-in and identity tools people already use. “Proof of a human” means a check that a real human passed the source, not merely that someone controls an account, a key, or a name.
Table 1: Sign-in and identity systems compared with Badge.
| System | Ordinary web apps | Crypto apps | Public identity | Proof of a human | Permanent page | Company server |
|---|---|---|---|---|---|---|
| Badge | Yes; passkey sign-in | Yes; badge wallets for Ethereum/Base, Bitcoin, Solana and Arweave on standard paths (open in other wallet apps); per-app Solana wallet (default), per-app Ethereum/Base optional | Yes; one badge, optional name and stamps | Only with a person stamp |
Yes, on Arweave; sign-in still needs the ar.io gateway | No for sign-in and verify; stamp server only when a stamp is made |
| Sign in with Apple or Google | Yes | No | No; a company account, often pairwise | No | No | Yes |
| Passwords | Yes | No | No | No; phishable and reusable by bots | No | Yes; each app’s database |
| Wallets (MetaMask, Phantom) | No; a wallet is required | Yes | The address is public | No; proves control of a key | No | No |
| ENS | No; a wallet is required | Yes; a name on a wallet | A name, which expires if not renewed | No; proves control of a name | No | No |
| World ID | Yes | Uniqueness proofs, not a wallet | No; per-app nullifiers | Yes; a unique human | No | Yes; the World verify service |
| Human Passport | No; bound to an address | A score on a wallet | The address, plus a score | No; a score is not a human check | No | Often an API, or an on-chain reader |
None of the other rows combines a permanent, serverless sign-in page with passkeys and one public human identity that works for both ordinary web apps and crypto apps. That is the gap Badge fills. It does not replace these tools: World ID or a document check can become a person stamp, and a Human Passport score can become an account stamp. A badge with no person stamp is not proof of a human.
3System Architecture
Components
A passkey and a 12-word BIP-39 phrase (the badge’s 128-bit secret, made at random at sign-up and wrapped by each of its passkeys) produce a 64-byte master secret in the browser. Keys are derived just-in-time from that secret when needed, and are not stored on a server. HKDF derives a dedicated badge key (one per human; HKDF info badge-v1), an ML-DSA badge key (info such as badge-pq-v1), and, for each app username, a private pairwise id, signing key, and Solana wallet (Ed25519, the default; HKDF info badge-solana-v1). The badge’s own wallets, also just-in-time from the master, use the standard paths every wallet app uses, so the recovery phrase opens them elsewhere too: Ethereum/Base at BIP-44 m/44'/60'/0'/0/0 (MetaMask), Bitcoin at BIP-84 m/84'/0'/0'/0/0 (Sparrow, BlueWallet), Solana at SLIP-0010 m/44'/501'/0'/0' (Phantom), and an Arweave RSA-4096 key generated from the seed exactly as Wander does it. All wallet keys remain non-post-quantum. The user publishes a small badge record on Arweave: the badge key’s public key, an optional handle, and stamps. Each record is dual-signed with the standard badge key and ML-DSA-65 over the same bytes, and verifiers require both signatures (built for profile records; see Hybrid signing). Sign-in happens in the Badge popup; passkeys are bound to badge.ar.io. Passkeys on the badge site itself are bound to badge.ar.io, a permabought ArNS name. A separate profile record, also signed by the badge key and uploaded through Turbo, may add a display name, bio, links, and a picture.
Stamps are signed pointers to checks already passed elsewhere. Launch stamps are X and World ID. X v1 needs no stamp server: a badge-key signature over handle, badge ID, and a nonce is posted on X and confirmed with public oEmbed; the record gets a signed stamp, controls @handle, with the post URL as proof. World ID, and later Stripe, Apple, and X OAuth, use one small stamp server (for example a Cloudflare Worker), only when the stamp is made. A World ID stamp stores the nullifier there (never on-chain) so one badge per human can be enforced; the record gets only a signed unique-human attestation. That server is not on the verify path, and is not used for X v1 or for later wallet-bound stamps such as Coinbase, ENS, or ArNS (ENS and ArNS are no-server on-chain checks, but are not in the launch set). The verification SDK fetches the record and stamps from Arweave, plus a vendor receipt when needed, and checks signatures against pinned public keys, including the ML-DSA-65 signature, with no Badge server on that path.
Code map
Where each part of this design lives in the codebase. Built means it runs on the live pages with real keys; Mock means a local preview with test keys or fixtures; Not built means design only.
| Component | Code | Status |
|---|---|---|
| Passkey and PRF secret | js/passkey.js: WebAuthn create/get with the PRF extension; saves only public keysjs/passkeyuser.js: the name a passkey shows in the password manager | Built |
| Master secret, 12-word phrase, badge key | js/badgekeys.js: random 16-byte secret to 12 words to the 64-byte BIP-39 seed; badge key (HKDF badge-v1); typed words back to the secretjs/vendor/bip39.js, js/vendor/hkdf.js: BIP-39 and HKDF-SHA256 | Built |
| Just-in-time unlock and wipe | js/badgesigner.js: access, create, recover, add a passkey, reveal the phrase; private keys are wiped after use | Built |
| Passkey wrapping | js/wrap.js: AES-256-GCM wrap of the secret per passkey, lookup tag, local copyjs/wraplookup.js: finds a passkey’s wrap on Arweavejs/turbo.js: uploads the wrap signed by the badge key | Built |
| Post-quantum badge key, hybrid signatures and key pinning | js/pq.js: ML-DSA-65 sign and verifyjs/profilerecord.js: the AND rule and the key pin (applyPqPin)landing/public/live.js: finds the earliest hybrid record and applies the pinjs/badgekeys.js: ML-DSA-65 key from HKDF badge-pq-v1, carried and wiped by the signerjs/vendor/ml-dsa.js: @noble/post-quantum 0.7.1, checked against OpenSSL | Built, for profile records |
| Badge wallets on standard paths | js/hdpath.js: BIP-32 (Ethereum/Base, Bitcoin) and SLIP-0010 (Solana)js/keyaddr.js: Ed25519 public keys, base58, bech32 bc1q addressesjs/eip191.js: secp256k1, EIP-191 signatures, Ethereum addresses | Built |
| Arweave wallet, Wander-compatible | js/arweave-rsa.js, js/arweave-rsa-worker.js: RSA-4096 from the seed in a Web Workerjs/vendor/wander-rsa.js: Wander's human-crypto-keys and node-forge, unmodified | Built |
| Profile record | js/profilerecord.js: the badge.profile body, hybrid signing, the AND rule, and records with no PQ fieldsjs/canonical.js: canonical JSON for the signed messagejs/pii.js: rejects identity fields in records | Built |
| Upload to Arweave through Turbo | js/turbo.js: signed uploads to ArDrive Turbo, no backendjs/ans104.js: ANS-104 data items signed by the badge key | Built |
| Lookup and verification from Arweave | js/gql.js: GraphQL over several gatewayslanding/public/live.js: resolves /{name}, queries GraphQL on several gateways, verifies the profile record and the picture hash | Built |
| Badge site pages | landing/shell.js: the gate: access your badge, create one, recover with the 12 wordslanding/profile/profile.js: profile, wallets, Badge ID and recovery phraselanding/profile/publish.js, landing/profile/crop.js: confirm-and-upload, picture croppinglanding/public/public.js: public profile and Send popupslanding/profile/qr.js: QR codes | Built |
| Badge record chain (create, name, rotate) and names | js/record.js, js/verifier.js: badge records and chain checksjs/claims.js, js/names.js: name rules and claim resolutionjs/store.js: local fixtures standing in for Arweave | Mock: local fixtures and unit tests; secp256k1 only in the mock |
| Badge popup, badge-sign, per-app keys | js/badgesign.js: opener side of badge-signlocal mock popup ( popup.js, decide.js, badgekey.js): consent rules, per-app keys (app_sign, per-app wallets)js/link.js: link statements with the pairwise id | Mock |
| Stamps | js/stamp.js: stamp and revocation formats, issuer keys. Used by the verifier and the unit tests | Formats only. X and World ID not built |
| Developer app registration | js/appregistry.js, js/developers.js: badge-signed registration requests | Mock |
| Deploying the site | scripts/deploy.mjs: builds only what the pages load, uploads with a path manifest (fallback to the public page) through Turbo, and points test_badge.ar.io or badge.ar.io (Solana ANT) | Built; not yet run against Arweave |
| Verification SDK for apps | None yet | Not built |
Flows
Create: the user opens badge.ar.io, signs in with the Badge passkey, and publishes a badge with no name. A name and stamps are optional later. Sign in: an app opens the Badge popup; by default the result includes the badge. The first time an app will receive it, a one-time notice appears in the same Face ID, Touch ID, or security-key approval, with no extra confirm. Hide is per-app, in settings. A human with no badge yet signs in as a plain Badge user, with no badge yet. Verify: the app runs the SDK itself; the popup confirmation is not a vendor receipt and is not proof of a human. Recover: the user makes a new passkey, enters the 12-word phrase once, and gets the same keys and badge. While the site is up, the phrase can be shown again behind a fresh passkey prompt, client-side only, never sent or logged.
Permanence
The passkey is a convenient, replaceable way to unlock the identity while badge.ar.io is up; the identity is what is permanent. A passkey is bound to one domain and lives on a device or in a credential manager. The permanent parts are the master secret, reconstructible from the 12-word phrase, and the dual-signed records on Arweave, which stay verifiable through any gateway.
This is a design, not a build. Nothing described here has been signed up for, uploaded, or deployed, except the ArNS permabuy of badge.ar.io on 21 November 2026. The design uses a 12-word recovery phrase and dual-signed badge records (standard key plus ML-DSA). The default built-in wallet is Solana (Ed25519); per-app Solana keys use HKDF info badge-solana-v1. The badge’s own wallets (Ethereum/Base, Bitcoin, Solana, Arweave) use standard paths and Wander’s Arweave method, so the recovery phrase opens them in other wallet apps. All wallet keys remain non-post-quantum. Launch stamps are X and World ID; Stripe Identity, Apple Digital ID, ENS, and ArNS are later (ENS and ArNS are no-server on-chain checks). A World developer / RP sign-up is required to operate the World ID stamp. The unlinkable handoff and badge-sign are part of the design. Coinbase uses a WalletConnect or EIP-1193 connect path that does not export the badge key. Names are free, with a reserved list, when that phase ships. Vendor checks are billed to the triggering app as in section 12. badgeapp.org is the planned Apple and stamp-server domain and has not been bought.
Design specification
Design only. Nothing has been built, deployed, uploaded, signed up for or paid for. badgeapp.org is planned and is not bought. This is the complete design.
Permanent identity and access on Arweave at badge.ar.io, a permabought ArNS name. One human, one badge: a badge alone is not proof of a human; a person stamp can carry that proof. Design only: nothing has been built, signed up for, uploaded, or deployed. badgeapp.org is planned and is not bought.
0. What this is based on
The sources this design is based on. Nothing has been signed up for, uploaded, deployed, or spent, except the badge.ar.io permabuy noted later.
| What | File or page | Used for |
|---|---|---|
| Sign-in spec | the existing sign-in design notes | Apps and usernames, wallets, what the app gets back |
| Canonical KDF and vectors | keys, wallets, apps-list, and VECTORS.md | Master seed path, HKDF labels, Vector 1 used for the badge-key example |
| Whitepaper §3.2–3.4 | this whitepaper, §3.2–3.4 | Same KDF, described for readers |
| Non-canonical 32-byte PRF master path | commit 4c9e176 | Do not design against this path; the canonical KDF is the 64-byte BIP-39 seed |
| Existing app registry | the app registry JSON and registry module | App registry JSON and registry module |
| Records integration | /workspace/ra-signin/app/features/client_keys.py | Sharing against a per-app user id |
| Donate brief | /workspace/donate.ar.io/brief.md | First creator-facing app |
| Vendor docs | Apple Business, WebKit, Coinbase Help and onchain-verify, Stripe, and the others listed at the top | Stamps, costs, claimability |
1. Summary, goals and non-goals
Badge is a permanent, serverless identity and access page on Arweave at badge.ar.io; no Badge server is involved. From a passkey and a twelve-word BIP-39 phrase it derives, with HKDF, a dedicated badge key and a private, unlinkable identifier for each username on each app, and publishes a signed badge any app can verify on its own: the badge key's public key, an optional public name, and stamps (signed pointers to checks already passed elsewhere). Together they form a human identity layer: one human, one badge. A badge alone is not proof of a human; a stamp such as World ID is a check mark that can carry proof a real human holds it. The relying party ID is badge.ar.io, a permabought ArNS name with no expiry and no reclaim; sign-in still depends on the ar.io domain and gateway, and the phrase restores the same badge on any gateway. The passkey is a convenient way in while badge.ar.io is up; the permanent part is the identity: the master secret and the signed records on Arweave. Apps sign users in with Badge for web2, get a per-app Solana wallet by default (an Ethereum/Base secp256k1 key is optional, on demand) and signatures for web3, and verify a badge from Arweave data and pinned public keys, with no server on that path. Users approve each use with Face ID, Touch ID, or a security key. No identity data goes on-chain. Launch stamps are X and World ID. World ID goes through a small stamp server (for example a Cloudflare Worker; planned at api.badgeapp.org) only when the stamp is made; the X v1 path needs none. Stripe and Apple Digital ID are later. Apps store no passwords, and can require a stamp that a real human stands behind the account.
| badge.ar.io | Permanent badge site (dashboard, Developers, stamp start, product sign-in) and relying party ID. Permabought ArNS name. Badge sign-in happens in the Badge popup; those passkeys are bound to badge.ar.io. |
|---|---|
| badge.ar.io | Passkey popup. Actions: signin, signup, export, add-username, remove-username, and badge-sign. |
| badgeapp.org | Planned domain for Apple's TXT record and the Apple capture page. Not bought. Until it is, the Apple path and the api hostname are a plan only. Do not register, pay for, or point DNS at anything on the back of this spec. |
| api.badgeapp.org | Planned stamp-server hostname, on that same root domain, once the domain exists. Launch World ID can use a small stamp server (for example a Cloudflare Worker) without waiting for it. |
Goals
- One human identity that works for web2 sign-in and for wallet-based apps.
- Aggregation: users do each outside check once, and any app checks the result in one place.
- Verifiable from Arweave data and pinned public keys. The stamp server is not on the sign-in path.
- One human, one badge, shown in every app by default. Per-app ids stay private. Apps can match accounts through the badge; that is accepted.
- Survives losing a passkey: the 12 words rebuild the same badge key.
- Apps keep their own user model and choose their own stamp policy. A human who has not created a badge yet signs in as a plain Badge user, with no badge yet.
Non-goals
- No building, deploying, uploading, ArNS changes, sign-ups or spending. This is a spec.
- No Privy or any custodial wallet. Native passkeys only.
- No identity data on-chain: no legal name, date of birth, address, document number or photo. A public badge name is a chosen handle, not a legal name.
- Does not replace Coinbase Verifications, World ID, X, Human Passport, Self, zkPassport, Farcaster or Lens. It points at them.
- No app data and no app user model in the badge.
- A badge with no person stamp is not proof of a human.
2. Positioning and landscape
Existing options each prove something useful, but each is tied to a wallet or one ecosystem, so none carries across apps or into web2. The badge does not replace them. It aggregates their stamps into one place any app can check, and adds Badge passkey sign-in and a different id for every app.
| System | What it proves | Tied to | How it becomes a stamp |
|---|---|---|---|
| Coinbase Verifications | A wallet is linked to a trade-eligible Coinbase account (EAS on Base) | A wallet address, Base, Coinbase customers | Free stamp. Prefer the attestation on the badge key's address. Fallback: outside wallet plus a binding signature. No stamp server |
| X | Control of an X handle | An X account | Launch. v1 is no-server: Badge signs handle, badge ID, and a fresh nonce, the user posts it via intent, the browser confirms author and signature with public oEmbed, and the record gets a signed stamp, controls @handle, with the post URL as proof. Upgrade: OAuth 2.0 PKCE via the stamp server |
| World ID | A unique human, with a per-app+action nullifier | World App (IDKit) and World's verify service | Launch. Stamp server signs the RP request, forwards the proof unchanged, asserts production success, keeps the nullifier as the dedupe hash, signs a unique-human attestation; never World data |
| Human Passport | A score built from many stamps, per address | An address; API key or on-chain reader | Wallet-bound. A score is not a human check |
| Self | Passport or ID chip proof with age checks | The Self app and Self's service | Stamp server uses the session webhook, then signs |
| zkPassport | Passport proof with a scoped unique id | The zkPassport app | Stamp server verifies the proof, keeps the scoped unique id, signs |
| Farcaster / Lens | A fid or a Lens account | Those networks | Social stamps. Easy to make many |
| Stripe Identity | ID document plus selfie | Nothing, but needs our server | Stamp server. Later, not in the launch set |
| Apple Digital ID | Verify with Wallet: US passport mdoc, name match only | Apple devices, iOS 26.1 or later | Later. Stamp server holds the reader key; capture on badgeapp.org after Apple approves. Photo/face match is not used; name match only, given biometric rules such as BIPA and GDPR (BIPA, GDPR) |
| Class | Sources | What an app can rely on |
|---|---|---|
| person | World ID (launch); later Stripe Identity, Apple Digital ID, Self, zkPassport | A real human passed an ID or biometric check at the source |
| account | Coinbase Verifications, Human Passport | A wallet belongs to a vetted account or has a good score. Not proof of one human |
| social | X (launch), Farcaster, Lens | An existing social account |
| name | ENS, ArNS permabuy (later; no-server on-chain checks) | Someone controls a name |
3. Model: badge and app
The badge holds identity: one global ID and an optional name, plus stamps. The app keeps its own user model. At sign-in it gets a stable per-app user id, the username the user chose in that app (selected by index n), the per-(app, n) signing key, and, by default, the badge profile.
| Thing | In the badge | In the app |
|---|---|---|
| Keys | Badge signing key, optional box key | pairwise_id for (app, n), the per-(app, n) signing public key, and the per-app person key |
| Name | Optional public handle | The username the user chose in that app |
| Stamps | All of them, public once published | A cached result of the published stamps, refreshed at sign-in |
| Wallet | Nothing. The badge key's address is public on the record, and may hold a Coinbase attestation | This username's Solana address by default, from sign-in; Ethereum/Base, Arweave, or Bitcoin addresses if derived on demand |
| Content and shares | Nothing | Everything: records, shares, followers, profile |
| The link | Nothing about any app | badge_id, name and last verified level on the app's user row, by default, once the user has a badge |
Records sharing example
Alice types bo in the share box. Records searches its users table by app username, and by linked badge name for any user whose badge is shown. bob-photos and the badge name bob are the same Records user 57, so the result is one row, with a check if his person stamp verifies now. Records wraps the record key to Bob's Records person key and writes (record 12, user 57) to km_wraps. Bob later signs in by pairwise id to user 57; the share itself does not depend on the badge.
Records' own database (its model, not the badge's). users id username pairwise_id app_sign badge_id badge_name badge_check 41 alice-trips pu_a41... 0x18f7... 0x4585... alice-b yes 57 bob-photos pu_b57... 0x82xx... 0xB7... bob yes 63 bobby pu_c63... 0x99xx... (none) (none) (none) km_wraps (record_id, user_id, wrapped) // existing table, ra-signin/app/features/client_keys.py 12 41 <record key wrapped to Alice's Records person key> 12 57 <record key wrapped to Bob's Records person key> <- written when Alice shares Search "bo": bob-photos @bob [check] (user 57, one row) and bobby (no badge, username only). Alice picks 57; Records writes (12, 57). The share holds no badge id or name. badge_check is recomputed at sign-in and search, never stored as a fact. If Bob hid his badge from Records, @bob would not appear.
- Shares survive any badge change; only the check disappears. The check is recomputed at sign-in and search; Records never stores it as a fact.
- A human with no badge, or who has hidden it from this app, is found by app username only. Alice cannot share to a badge name for someone who has never used Records: no per-app key exists yet.
- If Bob has two Records usernames and both show the same badge, Records can see they are the same human. That is by design; the first-sign-in notice should say so.
4. Privacy model and canonical KDF
// Canonical path. Do not use kdf.py at 4c9e176 (non-canonical 32-byte PRF master).
PRF eval salt = SHA-256("badge-master-wrap-v1") // 32 bytes from the passkey
entropy = 16 random bytes, made once at sign-up // the badge secret; never stored in the clear
// Each passkey wraps it (js/wrap.js); badges made before Nov 29 used the first 16 PRF bytes
wrap_key = HKDF-SHA256(PRF output, salt = 32 zero bytes, info = "badge-wrap-key-v1", 32)
lookup = HKDF-SHA256(PRF output, salt = 32 zero bytes, info = "badge-wrap-lookup-v1", 16)
wrap = AES-256-GCM(wrap_key, iv = 12 random bytes, aad = "badge-wrap-v1\n" || badge_id, entropy)
// published on Arweave, signed by the badge key, tagged Wrap-Lookup = lookup
12 words = BIP-39(entropy)
master = BIP-39 seed of those words // PBKDF2-HMAC-SHA512, 2048 rounds,
// salt "mnemonic" + empty passphrase, 64 bytes
app_key(app, n) = HKDF-SHA256(master, salt = UTF-8(app_id) // n = 0
or UTF-8(app_id || n), // n > 0, decimal
info = "badge-app-key-v1", L = 32)
// Default per-app wallet is Solana (Ed25519), for speed and low fees.
// HKDF info "badge-solana-v1"; the label is as written.
solana(app, n) = Ed25519 from HKDF-SHA256(master, salt = UTF-8(app_id) or UTF-8(app_id || n),
info = "badge-solana-v1", L = 32)
// Optional per-app Ethereum/Base secp256k1 key, derived on demand. HKDF info "wallet".
wallet(app, n) = secp256k1 from HKDF-SHA256(master, salt = 32 zero bytes,
info = "wallet" || app_id // n = 0
or "wallet" || app_id || n, L = 32)
// The badge's own wallets (the Wallets list on the profile) use the
// standard paths, so the recovery phrase opens the same wallets in other apps.
// Just-in-time from the master, never persisted; only public addresses are saved.
ethereum = BIP-32 m/44'/60'/0'/0/0 // MetaMask, Coinbase Wallet, Rainbow; also Base
bitcoin = BIP-32 m/84'/0'/0'/0/0 // BIP-84 P2WPKH bc1q…; Sparrow, BlueWallet
solana = SLIP-0010 ed25519 m/44'/501'/0'/0' // Phantom, Solflare
arweave_jwk = RSA-4096 as Wander's jwkFromMnemonic: // Wander, arweave.app
HMAC-DRBG-SHA256(entropy = hex text of master) drives
node-forge 1.3.1 PRIMEINC, e = 65537 // human-crypto-keys 0.1.4, unmodified
// Pure-JS RSA-4096 is slow (seconds to a minute): once per browser, in a Web Worker;
// only the public modulus and address are kept.
main_wallet = ethereum // the same key as the profile's Ethereum/Base wallet
apps_list key = HKDF-SHA256(master, salt = 32 zero bytes, info = "apps-list", 32)
apps_list tag = HKDF-SHA256(master, salt = 32 zero bytes, info = "apps-list-tag", 32)
// One global badge key and ID per user.
// HKDF info "badge-v1".
// app_sign uses info badge-app-sign-v1.
app_sign(app, n) = secp256k1 from HKDF-SHA256(master, salt = UTF-8(app_id) or UTF-8(app_id || n),
info = "badge-app-sign-v1", L = 32)
badge_key = secp256k1 from HKDF-SHA256(master, salt = 32 zero bytes,
info = "badge-v1", L = 32)
// If the 32 bytes are not a valid scalar, retry with a ":extra" suffix, same as wallet.js.
// Vector 1 in VECTORS.md (all-zero PRF → abandon × 11 + about):
// master = 5eb00bbd…ce9e38e4
// main wallet = 0x9858EfFD232B4033E47d90003D41EC34EcaEda94 // ethereum, as MetaMask shows
// bitcoin = bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu // as BIP-84 wallets show
// solana = HAgk14JpMQLgt6rVgv7cBQFJWFto5Dqxi472uT3DKpqk // as Phantom shows
// arweave = l55sI4sCbT9d9AV6WKz2DQpnW4Ld0EcBAZv-CMv_HAQ // as Wander's own code gives
// Records n = 0 app key = 3568e2d9…0f46f4
// Records n = 0 address = 0x7B5081d453F034EAf82BC1DdD1Cd6e1EbA1e6378
// Proposed, computed from that same master with the HKDF above (not in VECTORS.md yet):
// badge key address = 0x45850724E2c2c24cFB453f4A96345471A99D432D
// compressed pub = 03aee74439387fb22743bdd9bf90aa1e8522336fad4893bc90264ad6df6113f8c7
// Records app_sign n = 0 = 0x18f75b0F4F13AEf850227cd0147f236c273bC3D0
| What | Linkable across apps? | Why |
|---|---|---|
| pairwise_id, per-app Solana wallet (default), optional per-app EVM wallet, app_sign key, app key | No by default, with the unlinkable handoff. Yes only if the user opts in, per item, with a dual-signed link record | A different HKDF branch per (app, n). Never published on the badge, and they never point to the badge, unless the user publishes an opt-in link. |
| Badge id, badge name, stamps | Yes, by default | One global badge, shown at every sign-in. Public on Arweave once published. That is accepted. |
| Badge wallets: Ethereum/Base (same key as the main wallet), Bitcoin, Solana, Arweave | Yes, already | Their public addresses are in the badge’s signed profile record, and the main wallet signs apps-list uploads. Not used as the badge key. Any wallet app that imports the phrase sees the same addresses. |
| credential_id, passkey public_key, recovery public_key | No, after the unlinkable handoff | The popup does not send those values to the app. |
Diagrams
The 16 bytes made at sign-up are the badge secret. The master is the 64-byte BIP-39 seed of those bytes. The passkey’s PRF unwraps the secret. It is not the seed, except on badges made before wrapping, which used the first 16 PRF bytes as the secret.
From the passkey to the master
The passkey unwraps the badge secret, and the secret becomes the master.
From the master to the badge and the wallets
One master feeds the badge key, the post-quantum key, and the four wallets. Only the ML-DSA key is post-quantum. The wallet keys stay on today’s curves.
From the master to per-app keys
Per-app keys exist in the design and the local mock popup. The live profile page does not derive them.
Permanent identity, replaceable passkeys
The passkey is a convenient, replaceable way to unlock the identity while badge.ar.io is up; the identity is what's permanent. A passkey is bound to one domain (the relying party ID) and lives in a platform credential manager or on a device, so it cannot be the permanent store. The permanent parts are the master secret, always reconstructible from the twelve-word BIP-39 phrase, and the signed badge records on Arweave. After losing a domain or a device, the user makes a new passkey, enters the phrase once, and gets the same keys and badge.
Viewing the recovery phrase
While badge.ar.io works, the page can show the phrase again: it is the BIP-39 encoding of the master seed, unwrapped in the browser by the passkey's PRF. Design: a fresh passkey prompt (user verification required) right before reveal; client-side only; never send or log it. Retrieval only works while the domain is up, so sign-up must push users to save the phrase and confirm they did, with a settings reminder until then.
the Recovery phrase row is masked until its eye is tapped. The tap asks for the passkey, unwraps the badge secret with that passkey, and checks they lead to this badge’s ID before showing them (a passkey for a different badge gets an error instead). The words are held in memory only while shown, and hiding them drops them. The Badge ID row is masked behind the same eye, and the old Reset control (forget this browser’s keys) is removed. Because the badge wallets use standard paths, the phrase shown is a backup that also works in MetaMask, Phantom, Sparrow and Wander. The phrase is 12 words.
Master secret and passkeys
A badge’s secret is 16 random bytes made at sign-up, shown as the 12 words. It is not taken from a passkey, because each passkey has its own PRF output: taking the secret from it would make every new passkey a different badge. Instead each passkey wraps the secret: its PRF output gives an AES-256-GCM key (HKDF info badge-wrap-key-v1) and a public lookup tag (badge-wrap-lookup-v1), and the encrypted secret is published on Arweave as a badge.wrap record signed by the badge key and tagged with the lookup. Only the passkey can compute the tag or the key, so the record names no passkey and reveals nothing without it; the badge ID is bound in as AES-GCM associated data. Ways in: (1) Access uses a passkey the badge already has, including a synced passkey on a new device, which finds its wrap on Arweave by the tag; (2) Create makes a passkey and a fresh secret; (3) Recover takes the 12 words and wraps them for a new passkey; (4) Add a passkey unlocks with one passkey and wraps the same secret for a second. A passkey with no wrap is refused rather than starting a new badge. The PRF eval salt keeps its name, badge-master-wrap-v1.
5. Badge record on Arweave
One record is one ANS-104 data item, signed in the body and as the data-item owner by the badge key (signature type 3). A secp256k1-only body is under 2 KB. A hybrid record also carries an ML-DSA-65 public key and signature and is larger (about 8–10 KB encoded; see Hybrid signing) but still inside Turbo’s 105 KiB free per-item limit. A badge is created without a name; a name is a later record. Tags: Protocol badge-v1, Badge-Op, Badge-Id, Badge-Name and Badge-Skeleton on name records. Body signatures are EIP-191 and, once enabled, ML-DSA-65, both over the same prefixed canonical JSON, with sig and sig_pq excluded. The passkey unlocks the master and approves each use; it does not sign the public record.
{
"v": 1,
"typ": "badge.badge",
"op": "create", // create | name | update | rotate | revoke | release-name
"badge_id": "0x4585...432D", // address of the first badge key; never changes
"seq": 0,
"prev": null,
"name": null, // optional public handle, set by a later "name" record. Never a legal name
"name_rules": 1,
"kdf": 1,
"keys": {
"sign": { "alg": "ES256K", "address": "0x4585...432D", "pub": "<33-byte compressed key, base64url>" },
"box": { "alg": "X25519", "pub": "<32 bytes, base64url>" }, // optional
"pq": { "alg": "ML-DSA-65", "pub": "<1952-byte public key, base64url>" } // present on hybrid records
},
"addresses": [],
"stamps": [ { "type": "stripe-identity", "ref": "<data item id>" } ],
"created_at": 1795000000, // claimed by the signer; never used for ordering
"sig": "0x<65 bytes>", // EIP-191 over keccak256("Badge v1\n" || canonical_json without sig and sig_pq)
"sig_pq": "<3309-byte ML-DSA-65 signature, base64url>" // over the same bytes; present on hybrid records
}
// No field may hold a legal name, birth date, address, document number or photo. Verifiers reject a record that tries.
// Hybrid signing, including the AND rule and records without PQ fields, is specified below.
// Always include Protocol so apps-list items never match.
// Name lookup. A claim with no block.height is pending, never a winner.
transactions(tags: [{name:"Protocol", values:["badge-v1"]},
{name:"Badge-Skeleton", values:["<skeleton>"]},
{name:"Badge-Op", values:["name","release-name","revoke"]}],
sort: HEIGHT_ASC, first: 100)
transactions(tags: [{name:"Protocol", values:["badge-v1"]},
{name:"Badge-Id", values:["0x4585...432D"]}],
sort: HEIGHT_ASC)
transactions(tags: [{name:"Protocol", values:["badge-stamp-v1"]},
{name:"Badge-Id", values:["0x4585...432D"]}])
// Approved app registry snapshots
transactions(tags: [{name:"Protocol", values:["badge-app-registry-v1"]}],
sort: HEIGHT_DESC, first: 20)
// Profile lookup. Start from badge id. If the input is a username,
// resolve it through the name registry first; never filter only by username.
// Take the newest of first: 5 whose signatures verify. For a settled read,
// skip items with no block.height.
transactions(tags: [{name:"Protocol", values:["badge-profile-v1"]},
{name:"App-Name", values:["Badge"]},
{name:"Type", values:["badge-profile"]},
{name:"Badge-Id", values:["0x4585...432D"]}],
sort: HEIGHT_DESC, first: 5)
| Event | Signed by | Effect |
|---|---|---|
| create | First badge key | Makes the badge. No name needed. badge_id is this key's address |
| name | Current badge key | Claims a handle; section 6 decides whether it holds |
| update | Current badge key | Stamps, addresses, box key; name and badge_id unchanged |
| rotate | Old key and new key | New signing key from that block on; stamps must be re-bound |
| revoke | Current badge key | Badge dead from that block |
| Lost passkey | Nobody | Type the 12 words; the same badge key comes back |
Hybrid signing
Yes: the two signatures are made together, over the same bytes. The secp256k1 signature (EIP-191) and the ML-DSA signature (FIPS 204, ML-DSA-65) both cover the message M = "Badge v1\n" || canonical_json(record), where canonical_json is the record with sig and sig_pq omitted. The prefix domain-separates Badge records from other EIP-191 uses. The signatures themselves are separate fields, not one composite blob. This is the binding for the dual-sign path; it protects identity records only (badge, name, link, profile, and other body-signed Badge types). Wallet chains, passkey sign-in, and Arweave transaction and bundle signatures stay on their current algorithms until those systems ship post-quantum signatures.
The ML-DSA-65 secret is derived just-in-time from the master: a 32-byte HKDF-SHA-256 output with info badge-pq-v1 is the FIPS 204 seed for key generation. If the PQ scheme is swapped, a different info label is used, so badge-pq-v1 stays bound to ML-DSA-65. The secret and seed are wiped after the signature is made. The public key is published on the record in keys.pq (alg and pub) so each record is self-contained. A hash of the public key, with the full key carried only on create, was considered and rejected for ordinary records: repeating 1952 bytes is still well inside the Turbo free per-item limit, and verifiers can check each record’s two signatures on their own; the earlier record they read is the badge’s first hybrid record, once, for the key pin.
{
"v": 1,
"typ": "badge.badge",
"op": "create",
"badge_id": "0x4585...432D",
"seq": 0,
"prev": null,
"name": null,
"name_rules": 1,
"kdf": 1,
"keys": {
"sign": { "alg": "ES256K", "address": "0x4585...432D", "pub": "<33-byte compressed key, base64url>" },
"pq": { "alg": "ML-DSA-65", "pub": "<1952 bytes, base64url>" }
},
"addresses": [],
"stamps": [],
"created_at": 1795000000,
"sig": "0x<65-byte EIP-191 signature>",
"sig_pq": "<3309-byte ML-DSA-65 signature, base64url>"
}
// M = "Badge v1\n" || canonical_json(record without sig and sig_pq)
// sig = EIP-191 over keccak256(M), by keys.sign
// sig_pq = ML-DSA-65 over M, by keys.pq
// A hybrid record is valid only if both signatures verify.
AND rule and records without PQ fields. A record that includes keys.pq or sig_pq is valid only if both signatures verify. If either is missing or invalid, the record is rejected; a valid secp256k1 signature cannot rescue a missing, truncated, or failing sig_pq, and the reverse is also true. A mixed or partial record is always rejected. A record that includes neither keys.pq nor sig_pq is valid if the secp256k1 signature verifies, so those records remain readable. Clients publish hybrid records (both signatures). This is a verify rule, not a rewrite of records already on Arweave.
Pinning the post-quantum key. The AND rule alone is not enough, because each record names its own ML-DSA key: someone who breaks secp256k1 could make a fresh ML-DSA key, put it in keys.pq, and sign a new record with both. So a badge’s ML-DSA key is pinned by its first hybrid record in Arweave order (block height; records not yet in a block come after settled ones, ordered by signed time). Verifiers read that record too (hybrid uploads carry a Badge-PQ: ML-DSA-65 tag so the earliest one can be found with an oldest-first query; tags are only an index, every record is verified) and then reject (1) any hybrid record whose keys.pq.pub differs from the pinned key, and (2) any single-signature record published after the pinned record, which would otherwise be a downgrade. Arweave history cannot be rewritten, and the first hybrid record is published before large quantum computers exist, so a later attacker cannot get in ahead of it. The ML-DSA key never changes, because it is derived from the master secret, so the pin needs no rotation rule. Limits: until the first hybrid record is in a block (minutes), ordering falls back to the signed time; and a verifier that is shown none of the badge’s real records (every gateway withholding them) cannot know the real pin, which is why lookups query several gateways.
Benefits. A forger must break both algorithms, not just one. For records that will sit on Arweave for the long term, that is the harvest-now-decrypt-later (more precisely harvest-now-forge-later) defense: a future quantum computer that breaks secp256k1 cannot, by itself, forge a new valid badge record, because it still has to forge ML-DSA-65 under the pinned key (see Pinning above), and it cannot go back and attach a new sig_pq to someone else’s old hybrid record without that secret. Records are dual-signed at publish time, so there is no need to re-sign later when quantum computers arrive. The scheme is agile: ML-DSA-65 can be replaced by introducing a new keys.pq.alg and a new HKDF info label; old hybrid records stay verifiable under the algorithm they named. ML-DSA is new relative to secp256k1; the hybrid hedges a later break or implementation flaw in either scheme.
Costs. FIPS 204 gives ML-DSA-65 a 1952-byte public key and a 3309-byte signature (about 1.9 KB and 3.2 KB before encoding; about 2.6 KB and 4.4 KB in base64url). ML-DSA-44 is smaller (1312 and 2420 bytes, about 1.3 KB and 2.4 KB) and was considered; ML-DSA-65 is the suggested parameter set (NIST category 3). A hybrid identity record is then about 8–10 KB encoded, against a secp256k1-only body under 2 KB, and still far under Turbo’s 105 KiB free per-item limit (the 100 KiB working cap used for avatars is also not approached). Verification adds a client-side ML-DSA-65 check on top of the existing EIP-191 check. This paper does not publish a measured verify time; the operation is in-browser and is not on a server path.
Options and recommendation. Two encodings were considered: (1) separate sig and sig_pq fields over the same M, and (2) one composite blob that concatenates or wraps both signatures. The recommendation is (1). Existing verifiers already understand sig; a second field can be added without a new container format; a scheme can be swapped by adding or retiring a field and an alg name; and the AND rule is obvious from the two results. A composite blob saves a field but couples the two schemes and makes a later drop or swap of secp256k1 harder. Recommendation: separate fields, same M, AND rule, ML-DSA-65, public key in keys.pq, pinned by the first hybrid record, HKDF info badge-pq-v1, just-in-time derivation and wipe, identity records only.
Profile and avatar
The identity record in this section stays the source of truth for keys, the optional unique handle, and stamps. A separate profile record carries display fields the public badge already shows or may show: a display name, bio and links, a pointer to a chosen picture, and optional stamp references. Display name is not a legal name and does not by itself claim the unique handle in section 6. Stamp references on the profile are a convenience snapshot; verifiers still use the badge record and stamp records. The user signs each profile or avatar data item in the body and as the ANS-104 owner with the same badge key as other Badge records (secp256k1, signature type 3), and dual-signs the profile JSON with ML-DSA when badge records are dual-signed. Optional Solana (Ed25519) and Arweave (RSA-4096) keys are wallets, not the profile signer.
A picture is uploaded only when the user adds or changes one. The browser crops and encodes it first, starting at 512×512 WebP (JPEG if WebP is unavailable), strictly under Turbo’s free per-item limit of 105 KiB, with a working cap of 100 KiB and a target under 50 KB, scaling down through 384 and 256 if needed. The client computes SHA-256 of the encoded bytes, signs and uploads the image through Turbo, and stores the returned id as avatar_tx. Before the upload, the UI warns that an Arweave photo is public and permanent. If the user has not uploaded a picture, or the image fails to load or does not match avatar_sha256, the page renders a deterministic generated avatar from the badge id. Profile JSON is under 10 KB and can be updated without re-uploading an unchanged picture. Both item sizes sit in Turbo’s free per-item tier; a funded Turbo wallet is only needed if an item exceeds the limit or the wallet’s free lifetime allowance (10 MiB per wallet and per IP range) is exhausted.
{
"v": 1,
"typ": "badge.profile",
"badge_id": "0x4585...432D",
"display_name": null, // optional chosen label; never a legal name; not a name claim
"bio": null,
"links": [],
"avatar_tx": null, // data item id from the avatar upload, or null
"avatar_sha256": null,
"updated_at": 1795000000, // claimed by the signer; never used for ordering
"stamps": [ { "type": "stripe-identity", "ref": "<data item id>" } ], // optional snapshot
"sig": "0x<65 bytes>", // EIP-191 over keccak256("Badge v1\n" || canonical_json without sig and sig_pq)
"sig_pq": null // ML-DSA when records are dual-signed
}
// No field may hold a legal name, birth date, address, document number or photo bytes.
// Verifiers reject a record that tries. Photo bytes live on the avatar data item only.
The profile data item is tagged App-Name: Badge, Type: badge-profile, Badge-Id: <badgeId>, Schema-Version: 1, and Content-Type: application/json, plus Protocol: badge-profile-v1 so these items are not mixed into existing Protocol: badge-v1 Badge-Id history queries (the same split already used for badge-stamp-v1). The body typ is badge.profile. The avatar bytes are a separate item, tagged App-Name: Badge, Type: badge-avatar, Badge-Id: <badgeId>, and the image Content-Type; fetch uses avatar_tx from the verified profile, not a search by those tags.
To load a profile, start from the badge id (the badge key’s address). If the starting point is a username, resolve username to owner key through the name registry in section 6 first; never trust a GraphQL query filtered only by username. Query Arweave GraphQL for a short newest-first window where tags match Protocol: badge-profile-v1, App-Name: Badge, Type: badge-profile, and Badge-Id equals that id, sort: HEIGHT_DESC, first: 5. Do not rely on a single first: 1 item, and do not treat GraphQL owner as the 0x badge id: for signature type 3, gateways may index a different owner address, or not filter non-native owners the same way. Fetch each candidate’s JSON from the active gateway, skip items with no block.height when a settled read is required, and accept the newest body whose signatures verify against the badge public key (including the ML-DSA signature when present). If avatar_tx is set, load <gateway>/<avatar_tx> and, when avatar_sha256 is present, check that hash; otherwise render the generated avatar. A just-posted item may be shown once a gateway has it and the signature verifies, but it does not become the settled profile until a block.height exists. Profile, link, name, and revoke records stay separate types: a profile cannot claim, release, or revoke a name, and cannot link or unlink an account.
Opt-in linked accounts
A user may link an app account or a wallet to the public badge by publishing a separate link record (typ badge.link) signed by both the badge key and that app or wallet key. The two signatures are a two-way proof anyone can check client-side, with no Badge server. The current badge lists refs to unrevoked links. Unlink publishes a signed revocation record that hides the link from the public badge; the original link data item stays on Arweave permanently, so the UI must show a clear permanence warning before each link is published. Link records must contain no secrets, tokens, or identity data. A chosen profile picture on the badge is not an identity photo; verifiers still reject legal names, ID photos, and other identity data in any record. Storage and fetch for that picture are specified under Profile and avatar above.
{
"v": 1,
"typ": "badge.link",
"op": "link", // link | unlink
"badge_id": "0x4585...432D",
"target": { "kind": "wallet" | "app-account", "id": "<address or app account id>" },
"created_at": 1795000000,
"badge_sig": "0x...", // badge key
"target_sig": "0x..." // the app or wallet key; both required
}
// Two-way proof, verifiable client-side from the two signatures and public keys.
// No secrets, tokens, or identity data. An unlink record hides the link from the
// public badge; the original link data item stays on Arweave permanently.
6. Names
The name is optional and is a handle, never a legal name. Syntax: ASCII a–z, 0–9 and hyphen; length 1 to 32; no leading, trailing, or double hyphen; NFKC then lowercase; reject all-digit names and 0x prefixes. Lookalike folding (hyphens removed; 0→o, 1 and i→l, 5→s, rn→m, vv→w) gives the skeleton, and two names with the same skeleton are the same name. This is name_rules version 1, together with the claim rules below. No transfers in v1, and a local denylist, are decided in section 15.
- Collect claims
Query Badge-Skeleton plus Badge-Op from at least two gateways and merge by data item id. - Drop invalid items
Bad signature, tag and body mismatch, name not equal to its normalized form, unknown version. - Drop items with no block.height
Pending: visible, never winners, and their order among themselves is not used. - Sort by settlement height, then data item id
Lowest block.height first. Within one block the data item id gives the order of one badge’s own records; it never decides between two badges. Ignore Turbo timestamps and client clocks. Time, for the claim rules below, is the block’s timestamp. - Same settlement height is a tie
Tied claims do not produce a holder. Decision: reject all tied claims; the name stays open and parties claim again in a later block. Before names launch, add a commit-reveal across blocks. Do not ship the smaller-id tie-break. - Replay the timeline
Replay every settled record of the name’s claimants in this order, applying the claim rules below to each claim. The first non-tied valid claim holds the name. Later claims while it is held are void. After a release or revoke, the name is open to any badge from the next block.
Claim rules. Every verifier applies the same rules to the same signed records, so all of them agree on who holds a name. The rules use only the records, their block heights, their ids and their blocks’ timestamps.
| Rule | What a verifier does |
|---|---|
| One name per badge | A badge holds at most one name at a time. A claim of a new name that wins releases the badge’s previous name in the same block. A claim that loses or is invalid releases nothing. If one badge wins two names in one block, it keeps the later one by id. |
| Released names | A released name has no lock. Any badge may claim it from the next block, the badge that released it included; that claim counts toward the claimant’s limit like any other. |
| Three claims a day | At most 3 claims per badge in any rolling 24 hours: a claim at time t counts the badge’s claims with timestamps after t − 24 h. Losing, tied and reserved claims count. Time is the block’s timestamp, so a claim still pending is counted by the Badge page as made now until it settles. A 4th claim in the window is invalid for every verifier and is not itself counted. A claim of the name the badge already holds changes nothing and does not count. |
| Reserved names | One shared reserved list (for example admin, root, support, badge, arweave, ario), matched by skeleton so lookalikes are reserved too. A claim of a reserved name is invalid. There are no grants. |
| Short names | Names of 1 to 3 characters are allowed like any other name and need no stamp. |
| Older profile records | A username named in a badge-profile record from before the badge’s first name record counts as that badge’s claim. Later profile records only repeat the name and are not claims. |
The Badge page applies the same rules before it uploads a claim. Before a claim it says: “This transaction will update your username. After submitting it, you can only perform N username transactions the next 24 hours.”, where N is the number left after this one (2, 1 or 0), counting the badge’s pending claims. With none left it blocks the claim and says when the next one opens. It also says why a reserved name cannot be claimed.
Using AO to prevent race conditions in duplicate name registrations
The tie rule above is correct but slow, and it cannot answer the question a person asks while choosing a name. Reading raw Arweave uploads cannot tell who claimed a name first while the claims are fresh. A new upload takes minutes to be indexed by gateways and to settle, so two people can claim the same name in that window and both see it as free. Neither learns the outcome until both claims have a block.height, and a same-height tie leaves the name open for both. This subsection proposes an AO registry process, which gives every claim one order at the moment it is made, as a replacement for that rule. The rules above remain the current specification.
Proposed design. One AO process holds the name table, the same pattern ArNS uses for its registry. It is a standard aos process on AO mainnet: a HyperBEAM node runs its scheduler, which assigns every message sent to it a slot in one global sequence and saves the message and its assignment to Arweave, and computes its state. The handler is deterministic and runs messages in slot order, so the first Register for a name holds it and every later Register for that name is answered taken. No one has to trust a node’s answer: anyone can replay the saved log from the start and get the same table. A dedicated Arweave key, used for nothing else, owns the process and loads the handler source; the process ID is the only thing the Badge page needs to know.
- Check while typing
An aoconnect dryrun with Action=IsAvailable. It is read-only and unsigned, costs nothing, and saves nothing. It is fast enough to run as the name is typed (debounced), though its speed depends on the compute unit that answers. The answer is advisory only: someone else can register the name between the check and the claim. - Claim on submit
A message with Action=Register, signed by the badge key, then result() for that message. The handler applies name_rules v1 and the claim rules in slot order, stores the name against the badge, releases the badge’s previous name, and replies ok, or why not: taken, reserved, rate-limit or invalid. - Pending until the reply
The page shows the claim as pending until result() returns the handler’s reply. Only an ok reply means the name is held.
| Call | Signed | Saved to Arweave | Decides the name |
|---|---|---|---|
| dryrun, Action=IsAvailable | No | No | No, advisory only |
| message, Action=Register, then result | Yes: the claim inside it is signed by the badge key | Yes, with its scheduler slot | Yes, the first valid slot wins |
-- Registry handlers (abridged from the registry source). Rules as in this section.
Registry = Registry or { Names = {}, Owners = {}, Attempts = {}, LastAt = {} }
-- Names: skeleton -> { name, owner, msg } Owners: badge -> skeleton
-- Attempts: badge -> { timestamps of counted claims }
-- LastAt: badge -> "at" of its last accepted claim (replay protection)
local ATTEMPTS, WINDOW = 3, 24 * 60 * 60
local function status(S, badge, name, now)
if not valid_v1(name) then return "invalid" end -- name_rules v1, normal form only
local skel = skeleton_v1(name)
if badge and S.Owners[badge] == skel then return "ok", skel, true end
if badge and counted(S, badge, now) >= ATTEMPTS then return "rate-limit", skel end
if RESERVED[skel] then return "reserved", skel end -- generated from the shared list
if S.Names[skel] then return "taken", skel end
return "ok", skel -- a released name has no lock
end
Handlers.add("Badge-Register", Handlers.utils.hasMatchingTag("Action", "Register"),
function (msg)
-- The badge is whoever signed the claim, recovered from its EIP-191
-- signature. msg.From is only the sender and is not trusted as the badge.
local rec, badge = read_claim(msg.Data, msg.Tags.Signature, "name")
if not rec then return msg.reply({ Action = "Register-Result", Status = "invalid" }) end
if not fresh(rec.at, msg.Timestamp, Registry.LastAt[badge]) then
return msg.reply({ Action = "Register-Result", Status = "invalid", Reason = "replayed" })
end
Registry.LastAt[badge] = rec.at
local now = msg.Timestamp // 1000
local s, skel, same = status(Registry, badge, rec.name, now)
if s ~= "invalid" and s ~= "rate-limit" and not same then count(Registry, badge, now) end
local released = nil
if s == "ok" and not same then
released = release(Registry, badge) -- free for anyone at once
Registry.Names[skel] = { name = rec.name, owner = badge, msg = msg.Id }
Registry.Owners[badge] = skel
end
msg.reply({ Action = "Register-Result", Name = rec.name, Status = s, ["Badge-Id"] = badge,
["Attempts-Left"] = left(Registry, badge, now), Releases = released })
end)
-- IsAvailable (dryrun), Release-Name (a signed release-name record) and Info
-- follow the same pattern.
// Badge page side (abridged).
// While typing: unsigned, read-only, nothing is saved. Advisory only.
const check = await dryrun({
process: REGISTRY,
tags: [{ name: "Action", value: "IsAvailable" }, { name: "Name", value: name }, { name: "Badge-Id", value: badgeId }],
});
// Status: ok, taken, reserved, rate-limit or invalid; Attempts-Left,
// and Next-Attempt-At when none are left.
// On submit: the same signed badge.name record that goes to Arweave.
const text = "Badge v1\n" + canonical(claimWithoutSig);
const id = await message({
process: REGISTRY,
tags: [{ name: "Action", value: "Register" }, { name: "Signature", value: claim.sig }],
data: text,
signer, // any data-item signer: the process checks the claim's own signature
});
const { Messages, Error } = await result({ process: REGISTRY, message: id });
// Pending until Messages carries a Status. Only ok holds the name; Releases
// names the badge's previous name, which is free for anyone at once.
Both listings are abridged. The registry source is plain Lua with no dependencies: the name rules, a JSON reader for the claim, and Keccak-256 and secp256k1 public-key recovery for the EIP-191 signature.
| Hardening | How |
|---|---|
| Normalization | The handler applies name_rules v1 from this section: NFKC then lowercase, ASCII a–z, 0–9 and hyphen, and the length and hyphen rules. Names are ASCII-only after NFKC, so mixed-script lookalikes, such as a Cyrillic letter in place of a Latin one, are rejected outright. The table is keyed by the skeleton, so names that fold to the same skeleton collide. |
| Reserved list | The shared reserved list lives in the process, keyed by skeleton, and is answered reserved. There are no grants. |
| Spam resistance | The claim rules of this section, in slot order: one name per badge (a released name is free at once), at most 3 claims per badge in any 24 hours by message timestamp (losing claims count), and the reserved list. Short names need no stamp, so the process holds no stamp issuer keys. |
| Front-running (optional) | A Register message carries the name in the clear, so someone who sees it can try to get the same name scheduled first. Commit-reveal closes this: send Commit with hash(name || salt), then, once the commit has a slot, send Reveal with the name and salt. The earliest committed slot with a matching reveal wins, and commits not revealed within the process’s window expire. This is the commit-reveal the tie rule already calls for before names launch, with scheduler slots in place of block heights. |
| Replay | Each claim carries its own time (at, in ms). The process accepts a claim only if at is within 15 minutes of the message timestamp and later than the badge’s last accepted claim, so an old signed claim cannot be sent again to take back a name. |
| Process control | Whoever owns the process can change its handlers. Publish the handler source and remove or restrict the owner before launch, so the rules cannot change under names already held. |
Badge binding. A Register message carries the badge’s signed badge.name record: the same record, signed with EIP-191 personal_sign by the badge key, that is uploaded to Arweave. The handler recovers the signer from that signature and accepts the claim only if it equals the record’s badge_id. It then stores the name against that badge in the same write that decides uniqueness, so there is no moment when a name is unique but unowned, or owned but not yet checked.
7. Stamps
A stamp is a separate signed item. Launch stamps are X and World ID. Server-issued stamps (World ID at launch; later Stripe, Apple, X OAuth, Self, zkPassport) are signed by one small stamp server (for example a Cloudflare Worker). The X v1 path needs no stamp server. Wallet-bound stamps (Coinbase, ENS, ArNS, Human Passport, Farcaster, Lens) are checked on their own chains; ENS and ArNS are later, even though they are no-server on-chain checks. The user decides whether to publish a stamp. A verifier only counts stamps the badge record lists. No stamp may contain a name, date of birth, address, document number or photo. The only derived attribute allowed is an optional age-over-N yes/no.
{
"v": 1,
"typ": "badge.stamp",
"stamp": "x" | "world-id" | "stripe-identity" | "apple-wallet" | "self" | "zkpassport"
| "coinbase" | "human-passport" | "ens" | "arns" | "farcaster" | "lens",
"class": "person" | "account" | "social" | "name",
"stamp_id": "<16 random bytes, base64url>",
"badge_id": "0x4585...432D",
"badge_key": "0x4585...432D",
"issued_at": 1795100000,
"expires_at": 1826636000,
"claim": {... source specific, never any identity data... },
"issuer": { "id": "km-stamp-1", "alg": "ES256K" }, // server-issued stamps only
"sig": "0x..."
}
X
Class social, in the launch set with World ID. Primary v1 path, no stamp server: the user taps Verify X; Badge signs the handle, badge ID, and a fresh nonce with the badge key; the browser opens https://x.com/intent/post?text=... prefilled; the user posts and pastes the post URL; the browser fetches X's public oEmbed (https://publish.twitter.com/oembed?url=...) to read author and text, checks that the author matches the handle, and verifies the signature. The badge record gets a signed stamp, "controls @handle", with the post URL as re-checkable proof. Risks: oEmbed rate limits are not guaranteed; deleting the post removes public proof. Upgrade path: OAuth 2.0 PKCE Log in with X plus GET /2/users/me through the stamp server. X API pay-per-use is about $0.010 per user read (Nov 2026, https://x-preview.mintlify.app/x-api/getting-started/pricing). Never store tokens on-chain.
"claim": { "source": "x", "handle": "@example", "post_url": "https://x.com/example/status/..." }
// The stamp reads: "badge key 0x4585...432D controls @example".
// v1 proof is the post URL. A verifier re-fetches public oEmbed and checks the author
// plus the badge-key signature over handle, badge ID, and nonce.
// Never included: OAuth tokens, access tokens, email.
World ID
Class person, in the launch set with the X stamp. The user completes the IDKit widget in World App. A small Badge stamp server (for example a Cloudflare Worker) signs the relying-party request (signing key kept secret server-side) and forwards the proof unchanged to POST https://developer.world.org/api/v4/verify/{rp_id}, then asserts success and environment=production. The server stores the nullifier (unique per person per app+action) to enforce one badge per human when this stamp is used; the nullifier stays in the stamp server, not on Arweave. The badge record receives only a signed attestation, "verified unique human (World ID)", and never World data. Source: https://docs.world.org/world-id/idkit/integrate. This is the stamp path for the decision that one badge per human is optional, via stamps; Stripe has no keyed-hash dedupe in v1. The verify service is described as free; A World developer / RP sign-up is required to operate the stamp.
Stripe Identity (later)
Later, not in the launch set. Class person. The stamp server creates a hosted Stripe session bound to the badge, looks the session up when the user returns, drops all personal details, and signs a stamp. 12-month expiry. $1.50 per submitted ID plus selfie check, first 50 free, charged whatever the outcome. Use status only; do not expand verified_outputs unless age-over or a restricted-key dedupe path is approved. Stripe's dashboard can flag duplicate selfies; API access to that signal is not documented, so v1 does not rely on it.
"claim": { "source": "stripe-identity", "level": "document+selfie", "verified_day": "2026-12-01", "age_over": 18 }
// The stamp reads: "badge key 0x4585...432D verified by stripe-identity on 2026-12-01".
// Never included: name, date of birth, address, country, document type or number, photos, Stripe session id, email.
Apple Digital ID (later)
Later, not in the launch set. Class person. Verify with Wallet: a US passport mdoc via the Digital Credentials API, iOS 26.1 or later. The stamp server holds the reader key. Name match only, during the session; the published stamp still contains no legal name. Photo/face match is not used; name match only, given biometric rules such as BIPA and GDPR. The capture page, the never-removable TXT record, and the Apple certificate all live on badgeapp.org, a domain the project would control; badge.ar.io is an ArNS name and cannot hold that TXT. The user starts on badge.ar.io, which opens https://badgeapp.org for the Digital Credentials API call; that page posts the encrypted response to https://api.badgeapp.org. 12-month expiry, because Apple gives no later status. The path cannot be requested or served until a domain the project controls is bought and pointed. See section 14.
"claim": { "source": "apple-wallet", "level": "us-passport-mdoc", "verified_day": "2026-12-01" }
// Verify with Wallet: US passport mdoc. Name match only during the session.
// Never included: legal name, birth date, address, document number or photo.
// Photo/face match is not used; name match only (BIPA, GDPR).
// Capture page origin: https://badgeapp.org (planned; the domain is not bought). Stamp server: https://api.badgeapp.org.
Coinbase Verifications on Base (claimability)
Class account, free to the user. Claimability check from public docs and the public verifications repo. No account was signed into, and no attestation was claimed. The claim uses the badge key's own address, already public on the record and a plain EOA, so the verifier checks that the EAS recipient equals badge_id. Never use the main or a per-app wallet, and do not EIP-7702-upgrade the badge address if Coinbase expects a plain EOA (smart-account support is not documented, so the badge address stays a plain EOA). After the attestation exists, publish a Coinbase stamp whose claim.wallet is the badge_id. If the connect path cannot be built, fall back to an outside wallet plus a binding signature. Do not start the Coinbase phase until the connect path is designed or the fallback is accepted. Coinbase's notice says attestations are informational and may lag behind account changes. The table is the claimability record; it is not restated here.
| Question | Result | Source |
|---|---|---|
| Can a plain secp256k1 EOA receive the attestation? | Confirmed, yes | Coinbase Help and onchain-verify: tied to any self-custodial Ethereum (EVM) wallet address, non-transferable. EAS recipients are addresses. A Badge-derived EOA on Base is that kind of address. |
| What is the claim flow? | Confirmed | Sign in at Coinbase, open coinbase.com/onchain-verify, connect the wallet, then “sign a free transaction to verify your wallet onchain.” Eligibility: an active, trade-eligible Coinbase account. |
| Which wallets can connect? | Partly confirmed | Coinbase lists Coinbase Wallet, MetaMask, Ledger, Rainbow, “and more,” and says “use any wallet.” The public github.com/coinbase/verifications repo is for reading attestations, not the claim UI, so the design uses a WalletConnect or injected EIP-1193 session in the popup. |
| One wallet per Coinbase account? | No, up to three | Coinbase Help, “Add my verification to multiple wallets”: you can associate the verification with up to three wallet addresses. |
| Can the Badge popup complete that connect-and-sign step today? | The popup must provide a wallet session | Badge is not a listed wallet in Coinbase’s public docs. badge-sign signs typed Badge messages; it is not a WalletConnect or EIP-1193 provider for coinbase.com. The popup offers a WalletConnect or EIP-1193 session so the claim can complete without exporting the badge key. Importing the badge key into MetaMask would work as an EOA, and is a bad idea. |
| Is the “free transaction” a sponsored on-chain tx? | Likely, not fully confirmed | Coinbase's own page calls it a free transaction that verifies the wallet onchain. The attestation is written by the Coinbase Attester. The live claim page was not inspected, so the popup supports a signature or a sponsored transaction, as the claim page requires. |
// Preferred: the attestation is issued to the badge key's own address, so the recipient is the binding.
"claim": {
"chain": 8453,
"schema": "0xf8b05c79f090979bf4a80270aba232dff11a10d9ca55c4f88de95317970f0de9",
"wallet": "0x4585...432D" // equals badge_id; not the main wallet, not a per-app wallet
}
// Verifier: Coinbase Indexer (wallet, schema) → uid; EAS getAttestation(uid) must show
// attester = 0x357458739F90461b99789350868CD7CF330Dd7EE, schema as above,
// recipient = badge_id, revocationTime = 0, expirationTime = 0 or in the future.
// Read the Account schema only. Ignore Country and Coinbase One.
// Fallback if Coinbase cannot connect a Badge key (see claimability):
// an outside EOA holds the attestation and signs a binding to the badge.
"binding_sig": "0x..." // "Badge Coinbase stamp v1 | badge 0x4585... | wallet 0xC0ba... | issued..."
ENS, ArNS, and later sources
ENS and ArNS remain later, not in the launch set. They are no-server, wallet-bound on-chain name checks, never proved with the main wallet or a per-app wallet, and they do not need the stamp server. An ArNS permabuy stamp can still unlock a reserved name. Later person stamps (Stripe Identity, Apple Digital ID, Self, zkPassport) and weaker account or social stamps (Human Passport, Farcaster, Lens; X OAuth as an upgrade to the launch X v1 path) wait for a later phase and an approved vendor sign-up.
8. Stamp server and verification flow
One small stamp server (for example a Cloudflare Worker) serves World ID at launch, and later Stripe, Apple, and X OAuth. The X v1 path needs none of it. The server is only for vendor stamps (sessions, receipts, webhook verification, signing). It is not on the path when an app verifies a published badge, and it is not involved in wallet-bound stamps or in X v1. It stores no identity data after the session; logs last only through expiry and dispute windows, then are deleted. Planned hostname api.badgeapp.org, on the same root as the later Apple path; launch World ID does not have to wait for that domain.
- User picks a vendor at badge.ar.io
For example World ID. Later: Stripe, Apple, or X OAuth. The X v1 path does not use this server. Pay first if there is a fee. - Server starts a session bound to the badge
Stores a nonce. For Apple, this is also the point at which the iPhone is handed to badgeapp.org. - User finishes the vendor check
Stripe redirects back. Apple's encrypted response is posted to api.badgeapp.org. - Server checks the receipt, drops all personal details, signs a stamp, and returns it
Personal details never leave the vendor and the temporary session. - User publishes the stamp on Arweave
Optionally, with an update so the current badge lists it.
// Host: https://api.badgeapp.org (planned; badgeapp.org is not bought).
// badge.ar.io posts data, never code. All bodies are small JSON.
GET /v1/nonce -> { "nonce": "<single use, 5 minutes>", "server": "km-stamp", "key_id": "km-stamp-1" }
POST /v1/stamps/stripe/start
{ "badge_id": "0x4585...432D", "want_age_over": 18, "nonce": "...", "sig": "<badge-sign>" }
-> { "url": "https://verify.stripe.com/...", "return_to": "https://badge.ar.io/stamp/return" }
POST /v1/stamps/stripe/finish
{ "session_id": "vs_...", "badge_id": "0x4585...432D", "nonce": "...", "sig": "<badge-sign>" }
-> { "stamp": {... } } | { "pending": true } | { "failed": "<reason code only>" }
// Apple capture runs at https://badgeapp.org (TXT + certificate live here), not on badge.ar.io.
POST /v1/stamps/apple/request
{ "badge_id": "0x4585...432D", "want_age_over": 21, "nonce": "...", "sig": "<badge-sign>" }
-> { "request_id": "...", "deviceRequest": "<base64url CBOR>", "encryptionInfo": "<base64url CBOR>" }
POST /v1/stamps/apple/finish
{ "request_id": "...", "response": "<Apple encrypted data.response, passed through unread>", "nonce": "...", "sig": "<badge-sign>" }
-> { "stamp": {... } }
POST /v1/stamps/publish
{ "stamp_id": "...", "badge_update": {...signed badge update... } }
-> { "tx": "<Arweave data item id>" }
// Request text the badge-sign consent screen shows, word for word:
"Badge stamp request v1 | badge 0x4585...432D | source stripe-identity | age-over 18 | server km-stamp | nonce... | expires..."
9. Developer app registration
A developer registers with badge-sign, so the request is tied to a badge, not an email. v1: a SQLite table of requests, approved by hand, and a signed snapshot of the approved list published to Arweave when it changes (a one-line ArNS record or a slim the app registry copy). The popup will later show the official name, logo and origin, and will not send the badge to an unlisted origin.
// Opened as a popup, never an iframe or a tab, from a page whose origin is in the app's registry entry.
window.open(
"https://badge.ar.io/?app=badge.ar.io&action=badge-sign&nonce=<b64url>",
"badge",
"popup,width=440,height=720"
);
// Consent screen, before any signature:
// verified app name and domain from the registry (e.g. Badge, badge.ar.io)
// the request text in plain words (the caller supplies a summary; the popup also shows the exact string to sign)
// fresh passkey user verification
// Approve / Cancel
// Result, postMessage to the opener origin only, never "*":
{
"source": "badge",
"v": 1,
"action": "badge-sign",
"statement": "<the exact text that was signed>",
"sig": "0x<65-byte EIP-191 signature by the badge key>",
"badge_id": "0x4585...432D",
"pub": "<compressed badge public key, base64url>"
}
// Errors: { source:"badge", v:1, action:"badge-sign", error:"<code>", error_message:"..." }
// Existing popup actions, unchanged: signin, signup, export, add-username, remove-username.
// badge-sign does not piggyback on sign-in and does not return app keys or pairwise ids.
// Developer request, signed in the Badge popup with action badge-sign, posted to api.badgeapp.org.
// Contact stays in SQLite only and is never published to Arweave.
{
"v": 1,
"typ": "badge.app-registration",
"app_name": "Records",
"origins": ["https://recordsapp.org", "https://records.ar.io"],
"contact_hash": "<sha-256 of the contact email, hex>", // the clear email is in the POST, not in this signed body if we prefer; see notes
"scopes": ["signin", "badge", "stamps", "name"],
"nonce": "<from GET /v1/nonce>",
"developer_badge": "0xDevBadge...", // optional; the request is signed by badge-sign as this developer
"iat": 1795200000,
"exp": 1795203600
}
{
"v": 1,
"typ": "badge.app-registry",
"seq": 12,
"prev": "<previous snapshot data item id or null>",
"apps": [
{
"app_id": "app_ad9d0d9452dcf63177c0862dbd4e84e8",
"name": "Records",
"origins": ["https://recordsapp.org", "https://records.ar.io"],
"scopes": ["signin", "badge", "stamps", "name"],
"status": "active",
"from_height": 1500100
}
],
"revoked": [ { "app_id": "app_old...", "from_height": 1500200, "reason": "expired-domain" } ],
"sig": "0x..." // km-registry-1, EIP-191 over "Badge App Registry v1\n" || canonical JSON without sig
}
// Tags: Protocol badge-app-registry-v1, Registry-Seq. Full snapshot, not a delta.
// No contact, no email, no personal data. Verifiers and the popup take the highest seq with a valid signature
// and a block.height, then drop any app whose from_height is after this snapshot's block.
{
"v": 1,
"typ": "badge.issuer-keys",
"seq": 3,
"keys": [
{ "id": "km-stamp-1", "role": "stamp", "alg": "ES256K", "pub": "<base64url>",
"from_height": 1500000, "to_height": null, "status": "active",
"sources": ["stripe-identity", "apple-wallet"] },
{ "id": "km-registry-1", "role": "registry", "alg": "ES256K", "pub": "<base64url>",
"from_height": 1500000, "to_height": null, "status": "active" },
{ "id": "km-stamp-0", "role": "stamp", "alg": "ES256K", "pub": "<base64url>",
"from_height": 1490000, "to_height": 1499999, "status": "retired" }
],
"compromised_from_height": null,
"sig": "0x..." // the offline root key. The root public key is pinned in the SDK
}
// Validity is judged by the Arweave block height of the signed item, never by issued_at.
Until badge-sign exists, a Coinbase SIWE message or an Apple-style ID token can be used as a backup; they do not tie the request to a badge. The message formats are as specified below.
10. Verification
Apps do not call the stamp server. They fetch the badge and stamps from Arweave, plus Apple's published JWKS or a Coinbase attestation when needed, and verify locally or on their own server. Cached results expire with the shortest stamp, or after a week, whichever is sooner. The popup only confirms that this user holds this badge at this sign-in, in the same passkey approval. That confirmation is not a vendor receipt and is not proof of a human.
import { createBadgeVerifier } from "@badge"; // sketch, not built
const km = createBadgeVerifier({
gateways: ["https://turbo-gateway.com", "https://arweave.net"],
minConfirmations: 50, // pending items have no height and cannot win
issuers: ISSUER_KEYS, // root-signed list: stamp keys and the registry key
baseRpcs: ["https://rpc-a.example", "https://rpc-b.example"],
ethRpcs: ["https://rpc-c.example", "https://rpc-d.example"],
});
const res = await km.verifyBadgeToken(msg.badge_token, {
audience: location.origin,
nonce: mySessionNonce,
expectedSub: pairwiseIdFromAssertion,
expectedAppSign: storedAppSignKey, // per-(app, n) signing key, stored at first sign-in
expectedWallet: msg.wallet_address,
policy: { requireClass: "person", acceptSources: ["stripe-identity", "apple-wallet"] },
});
// res.person is true only with a valid person stamp the policy accepts.
// Show the check only when res.person && res.level === "verified".
11. Flows and screens
Create a badge at badge.ar.io via the usual badge.ar.io passkey popup. A new badge is published with no name; a name (section 6) and stamps (sections 7–8) are optional later. Sign-in to an app is unchanged except for the first-sign-in notice and default badge in the result, as in section 10: one Face ID, Touch ID, or security-key approval, no second confirm. The app verifies the badge itself; the popup confirmation is not a vendor receipt. A human with no badge signs in as a plain Badge user, with no badge yet, with no notice and no badge sent; after they create one, the next sign-in in that app follows the first-sign-in path unless they hide it first. badge.ar.io home shows the name, picture, stamps and check, per-app hide or show in settings, and a recovery-phrase view behind a fresh passkey prompt, client-side only, with a reminder until the phrase is confirmed saved. Hide is only in settings, not during sign-in. No global hide.
12. Pricing direction
Sign-in and reading published stamps stay free. X v1 has no vendor invoice. A later vendor verification (Stripe, Apple, Self, or zkPassport) is charged at about $2–3 to the triggering app (vendor fee plus a small margin), or bundled in an optional monthly active-user plan, which is an alternative, not a default. The X OAuth upgrade is pay-per-use at about $0.010 per user read (Nov 2026). Coinbase, ENS, ArNS, Farcaster, Lens and Human Passport stay free (no vendor invoice). World describes the World ID verify service as free. The $2–3 figure is a placeholder: Stripe Identity is $1.50 per verification after 50 free, plus stamp-server and card-fee overhead, and needs a later calc. The triggering app is the one whose policy sent the user to complete a check they did not already have; a later app that only reads the stamp is not billed again. An app that asks users to get a stamp it will not use itself is abuse to watch. This is a direction, not a decision.
13. Threats and mitigations
| Threat | Mitigation |
|---|---|
| Phishing popup or lookalike gateway | Passkeys bound to badge.ar.io; postMessage only to registered origins; badge-sign shows the verified app name and the exact text |
| Cross-app tracking through the badge | By design, once a badge is shown (the default). Mitigations: the unlinkable handoff, so linking is only through the badge, not through credential_id; a one-time first-sign-in notice so the user is told; a per-app hide (default shown, no global hide); per-app ids, wallets and app_sign stay uncorrelated when the badge is hidden from that app or does not exist. |
| Opt-in link later regretted | Permanence warning before each link is published. Unlink hides the link from the public badge; the original record stays on Arweave and cannot be erased |
| Lookalike or abusive names | Skeleton conflicts, reserved list, check from a person stamp only; optional denylist |
| Check misread as a real-name identity | Copy says verified human; handles are not legal names |
| Same-block name race | No winner without a unique lowest settlement height; reject ties; commit-reveal before names launch |
| Replay of a badge token or badge-sign | aud, nonce, exp; single-use nonces; badge-sign is scoped to the statement shown |
| Gateway lies or omits records | Two gateways, union, highest seq cache, pending until height exists |
| Stolen words or a compromised passkey account | Rotate or revoke race; same compromise already exposes every app key and wallet |
| Cross-app correlation via credential_id | The per-app signing-key fix: credential_id never leaves the popup |
| Main wallet linked to a Coinbase or ENS stamp | Claim and bindings use the badge key or an outside wallet, never the main or per-app wallet |
| Stamp server compromise | Split verifier and signer; no stored personal data; root key can void a key window by block height |
| Apps triggering paid verifications | No silent triggers, skip if a valid person stamp exists, rate limits, spend caps |
| Billing ledger used as a usage graph | Still a problem even though apps can match via the badge. Reads and sign-ins never hit the billing API; MAU is not counted as badge_id plus app_id pairs |
| Relying-party ID or sign-in page taken down | badge.ar.io is a permabought ArNS name: it has no expiry and cannot be reclaimed. The remaining dependency is that the ar.io company keeps the ar.io DNS domain (a normal.io domain that has to be renewed) and its gateway serving the name. Passkeys work only at that exact address, so other gateway addresses (badge.arweave.net and the like) need a new passkey plus 12-word phrase recovery, which gives back the same keys and badge. Already-published badge records stay verifiable through any gateway. |
| ar.io domain lost or transferred | badge.ar.io would stop resolving or come under another party's control, with no automatic redirect. Already-published badge records stay verifiable through any gateway, and the badge name still resolves at other gateways. A new controller of the domain could serve a fake sign-in page that existing passkeys would work on. Apps must verify badge signatures and on-chain records, and never trust the domain alone. Users recover on another gateway with a new passkey plus the 12-word phrase. Sign-in uses badge.ar.io only. |
| Lost or stolen ANT owner or controller key | Hostile code at badge.ar.io can sign as users who unlock while it is live. Past Arweave records are unchanged, and users who never unlock are not reached. See Code-delivery trust below. |
| Malicious release by the ANT owner | Same capability as a stolen key, without theft. The name alone does not distinguish a hostile release from a routine update. See below. |
| Gateway or DNS serving hostile code at the badge origin | Same signing risk for users who load that path and unlock. Settled Arweave records stay intact. Two-gateway checks help for record integrity, not for which HTML the browser first executes. See below, and the rows on the ar.io domain and gateway. |
| Malicious third-party or supply-chain script | Once loaded, it has the same origin privileges as Badge’s own code. Browsers that never load it are unaffected. A strict CSP with no third-party scripts shrinks this to what is in the release files. See below. |
| Identity data on a permanent chain | Schema forbids it; verifiers reject extra personal fields; the server drops details |
Code-delivery trust
Badge is a wallet delivered to the browser, in the same class as MetaMask or a hosted web wallet. Users unlock with a passkey whose relying party is badge.ar.io. The code that runs is whatever that name currently resolves to. A version published on Arweave is immutable; the attack is pointing the name at different code, not editing a past transaction. That is the same class of risk as a hijacked wallet-extension update or a compromised web-wallet domain.
Official ar.io documentation describes an ArNS name as being resolved through its ANT (Ar.io Name Token), a Metaplex Core NFT managed by the ario-ant Solana program. The ANT owner, or a controller the owner has designated, can update the record that points the name at an Arweave transaction. A permabought name cannot be reclaimed, so losing the only key that can update that record can also leave the name stuck. The paths below share one bound: hostile code can sign as users who unlock while it is live, and cannot rewrite past Arweave records or extract keys from users who never unlock.
| Path | What an attacker can do | What they cannot do |
|---|---|---|
| Lost or stolen ANT owner or controller key | Publish new files and point badge.ar.io at them. Anyone who then opens that origin and unlocks gives the new code the same PRF secret, so it can derive the badge key, wallets, and signing keys, and move funds or update badge records. A recovery phrase typed into the hostile page is also exposed. | Change past Arweave records. Reach keys of people who never unlock while the hostile code is live. |
| Malicious release by the owner | The same, without theft: the legitimate controller points the name at hostile or backdoored code. From the name alone, users cannot tell this apart from a routine update. | The same limits as above. |
| Gateway or DNS compromise | Serve different bytes under the badge.ar.io origin, including a false name pointer or substituted files. A user who unlocks is in the same position as above. This continues the dependency already noted for the ar.io domain and gateway. Checking two gateways helps when verifying published records; it does not, by itself, stop the browser executing whatever HTML was first returned. | Alter settled records on Arweave itself. Reach users who do not load the compromised path and unlock. |
| Third-party or supply-chain script | A script loaded by the page, or a compromised file shipped in a release, runs with the same origin privileges as Badge’s own code and can sign after an unlock. | Affect browsers that never load the script. |
Mitigations differ in what they actually bind. Several popular checks fail once the running code is already hostile, because that code can skip them.
| Mitigation | What it actually protects | Limits |
|---|---|---|
| Hardware or multisig ANT controller | A stolen hot key, and casual theft of a single controller secret, cannot silently repoint the name. | Does not stop a malicious or coerced owner, a tricked signing session, or gateway or DNS attacks. If the only key is lost, a permabought name may be un-repointable. |
| Pinned version by Arweave transaction id (immutable URL) and a public release log of ids and file hashes | Users who load a known transaction id get that immutable code, even if the name now points elsewhere. Old versions remain retrievable. This is a real advantage over an ordinary web wallet, whose old site can disappear or be overwritten. | The default path, badge.ar.io, still follows the name. Users must know and use the pin. A hostile default page can discourage pinning. |
| Hash of the running code checked against a release signed by a separate release key, from somewhere the attacker does not control (a pinned loader, bookmarklet, browser extension, or a second independent verifier page), with a warning on mismatch | Detects a name, gateway, or DNS swap when the user actually runs that checker. | A check performed only by the code at badge.ar.io does not help: replaced code can skip it. The release key must be held separately from the ANT keys, or a stolen ANT key forges releases too. Users have to have loaded the checker already, and must heed the warning. |
| Delay or notice period before a new version becomes the default, plus a public release log on Arweave | Gives users and watchers time to notice a surprise pointer and move to a last-good pinned version. | Does not stop a patient attacker. A delay binds only if it is enforced outside the same sole controller, or if people actually watch the log. Official ArNS documentation describes record updates as being made by the owner or controller; it does not describe a built-in delay on that update. |
| Reproducible release hash | The site is served as plain HTML, CSS, and JavaScript, with no production bundling step for those files, so a release can be identified by a hash anyone can recompute. | A hash of published files proves what was released, not that the name still points at it. If a bundler is added later, the build has to stay reproducible or this property is lost. |
| Passkey prompt that shows the exact statement being signed | Helps against bugs, user error, and phishing that asks for the wrong signature. Badge-sign already shows the verified app name and the exact text. | The prompt is drawn by the same origin’s code. Hostile code can show a benign summary and sign something else, or sign after an unlock without an honest prompt. This is not a defense against a malicious release. |
| Per-transaction and daily spending limits | Honest client code can cap damage from bugs or a brief lapse. | Limits enforced only in the client do not bind hostile code, which can ignore them. A limit that survives a malicious page has to live somewhere the derived keys cannot bypass, such as a vault, a spend account, or a hardware wallet that holds the funds. Badge’s default derived wallets have no such on-chain policy unless the user puts funds there. |
| Subresource Integrity | A pinned HTML file can refuse to load a subresource whose hash does not match. | If the attacker also serves the HTML (via the name, a gateway, or DNS), they can drop or rewrite the integrity attributes. |
| Strict Content-Security-Policy, no third-party scripts | Removes a class of supply-chain attacks from injected third-party tags. The site declares a CSP that allows only same-origin scripts. | Does not stop hostile first-party code delivered through the name. A hostile release can ship a looser policy. |
| Service-worker version pin, with a warning when the served code changes | A worker installed from a known-good visit can notice that the name now serves different bytes and warn before updating. | A first visit has no worker. A user who already runs hostile code will get a hostile worker. Clearing site data, or browser eviction, drops the pin. This is a warning, not a root of trust. |
| Large balances in a separate hardware wallet | Keys that never exist in the browser cannot be used by hostile Badge code. | Does not protect the badge record, stamps, or funds left in derived wallets. |
| 12-word recovery phrase as an exit to other software | The phrase recreates the same keys elsewhere, so a user who still has it can move funds and, if needed, rotate or revoke the badge without depending on the current name pointer. | The phrase is the highest-value secret. It must not be typed into a page the user already doubts. Exit works only if the user notices in time and has the phrase offline. |
v1, in order. (1) Keep the ANT owner and controller keys on a hardware device or a multisig, not a hot server key; this is the first control on who can repoint the name. (2) Publish every release as the plain site files on Arweave, with a public release log of transaction ids and file hashes, and document how to load a known id as an immutable URL. (3) Keep a strict CSP with no third-party scripts. (4) The passkey prompt shows the exact statement being signed, as a defense against phishing and bugs, not against a malicious release; tell users that large balances belong in a hardware wallet, and that the 12-word phrase is the way to exit to other software if the site is not trusted. Those last habits limit theft even when the name is wrong.
Later, in order. (1) An out-of-band check: a pinned loader, extension, bookmarklet, or second verifier page that compares the running code’s hash to a release signed by a release key held separately from the ANT keys, and warns on mismatch. (2) A delay or notice before a new version becomes the default pointer, if it can be enforced outside a single controller or at least widely observed through the public log. (3) Optional spending policy that lives outside the client for users who want it; client-only limits stay a courtesy of honest code. (4) A service-worker change warning for returning users, as an extra signal, not as a root of trust.
Third-party code in the release
Badge ships a small set of open-source libraries, all copied into the release as plain files. Nothing is loaded from a CDN or any other site at run time, so the code that runs is the code in the release hash. The cryptography comes from the noble and scure libraries by Paul Miller, which are MIT-licensed and widely used in wallets and other web3 software. Each file in the release folder js/vendor/ carries its license text and the exact version it was built from.
| Library | Version | Used for | License |
|---|---|---|---|
@noble/secp256k1 | 2.3.0 | The badge key: secp256k1 signing and public-key derivation, including sig. The file is byte-identical to the npm release. | MIT |
@noble/post-quantum | 0.7.1 | ML-DSA-65 (FIPS 204) signing and verification, for sig_pq | MIT |
@noble/curves | 2.4.0 | Curve math used inside the ML-DSA file | MIT |
@noble/hashes | 2.4.0 (inside the ML-DSA file); 1.8.0 (SHA-256, Keccak-256, HKDF and the recovery phrase code) | Hashing and key derivation | MIT |
@scure/bip39 | 1.6.0 | The recovery phrase: word list and conversion | MIT |
human-crypto-keys | 0.1.4 | The RSA step of deriving the Arweave wallet key from the recovery phrase, the same way the Wander wallet does it, so the same words give the same Arweave address | MIT |
node-forge | 1.3.1 | RSA key generation inside that step | BSD-3-Clause |
hmac-drbg, hash.js, minimalistic-crypto-utils, pify, minimalistic-assert, inherits | 1.0.1, 1.1.7, 1.0.1, 4.0.1, 1.0.1, 2.0.4 | Small helpers pulled in by that RSA step | MIT or ISC |
Build and upload tools (the Turbo and ar.io software kits, a Solana library, a bundler and a test runner) are used only on the developer's computer and are not part of the shipped files. Pinned copies do not update themselves. A security fix needs a new release, and every release is published with its file hashes as described above.
14. Costs and approvals
| Item | Cost or effort | Status | Notes |
|---|---|---|---|
| Buy badgeapp.org | Domain price not checked. Planned, not bought. | Later | Not bought. The planned name is badgeapp.org. |
| DNS for badgeapp.org and api.badgeapp.org | Ordinary DNS. Apple's TXT record can never be removed. | Later, after the domain is bought | Apple TXT rule confirmed. |
| X stamp (v1) | No X API fee. Uses public intent and oEmbed only. | In the launch set | oEmbed rate limits are not guaranteed. |
| X OAuth upgrade | Pay-per-use, about $0.010 per user read (Nov 2026). | Later | Price from X API pricing, Nov 2026. |
| World ID | Verify service described as free. Needs a World developer / RP sign-up and a small stamp server (for example a Cloudflare Worker). | In the launch set; a vendor sign-up is required to operate it | World describes the verify service as free. |
| Stripe Identity | $1.50 per submitted ID plus selfie, first 50 free, charged whatever the outcome. Later, not in the launch set. | Later | Price confirmed. |
| Apple Digital ID (Verify with Wallet) | No program fee listed. Certificate expires after 397 days. US passport mdoc, iOS 26.1 or later, reader key on the stamp server. Photo/face match is not used; name match only, given biometric rules such as BIPA and GDPR (BIPA, GDPR). | Later, after badgeapp.org exists | Steps partly confirmed. Per-check fee not listed, not confirmed free. |
| Turbo uploads | Items under 105 KiB were 0 winc in one test. Otherwise a funded Turbo wallet. | Implementation: funding and each upload | Only that test observed 0 winc under 105 KiB. Official free per-item limit is 105 KiB, also used for user-signed profile and avatar uploads. |
| ArNS name badge.ar.io | Permabought on 21 November 2026. No expiry; cannot be reclaimed. Sign-in still depends on the ar.io DNS domain and gateway. | Permabought | Confirmed. |
| badge.ar.io registry entry | A row in the Badge app registry so badge-sign works. | Later | Decision. |
| Stamp server | One small server (for example a Cloudflare Worker) for World ID at launch, and later Stripe, Apple, and X OAuth. Planned hostname api.badgeapp.org once the domain exists. X v1 needs none of it. | Later | Not checked. |
| Offline root key | Hardware wallet or similar, not priced. | The project holds the root of trust | Not checked. |
| Pricing launch and MAU plan | Section 12 direction only. | Design, as in section 12 | Design direction, not a vendor invoice. |
| Legal review | Biometrics (including later Apple photo/face match under rules such as BIPA and GDPR), privacy policy text, Apple's usage guidelines, fundraising use, billing. | Later | Cost unknown. |
| Reading Coinbase, ENS, ArNS | No fee to read. A dedicated Base RPC is advisable later. | None now | Coinbase user fee confirmed as none. |
15. Phased plan
| Phase | Content | Gate |
|---|---|---|
| v0, this document | Design, decisions, KDF and record vectors | — |
| v0.5 local prototype | Badge derivation against VECTORS.md, record and verifier, mock stamp server, mock badge-sign, no vendor calls | No upload, no deploy, no sign-ups |
| P1 | Launch stamps: X (v1, no stamp server) and World ID (small stamp server, for example a Cloudflare Worker). Create and update records, badge-sign, sign-in token assuming the per-app signing-key fix. Names not required. | World developer / RP sign-up, stamp-server host, root key, Turbo, registry entry for badge.ar.io, each upload |
| P2 | Coinbase Verifications as a free stamp on the badge key's address, after a connect path is designed or the outside-wallet fallback is accepted. | WalletConnect or EIP-1193 connect path, without exporting the badge key |
| P3 | Later stamps: Stripe Identity; Apple Digital ID (Verify with Wallet) once badgeapp.org is bought and Apple approves the brand, form, domain, certificate, and reader key. X OAuth upgrade optional. | Domain purchase, vendor approvals; photo/face match is not used |
| P4 | Other apps, optional names with the tie rule, ENS and ArNS (no-server on-chain checks, still later), later sources, billing if approved, guardian key. | After P1–P3; each later vendor needs its own sign-up |
Decisions
- The canonical KDF is the 64-byte BIP-39 seed path in VECTORS.md. Recovery phrases are 12 words: a random 128-bit secret, wrapped by each passkey. HKDF info labels are badge-v1 for the badge key and badge-app-sign-v1 for the per-app signing key.
- The per-app signing-key fix is part of the design: credential_id and the passkey and recovery public keys never leave the popup.
- PRF is required to create an account. A returning user whose passkey does not return PRF recovers with the 12-word phrase.
- The badge-sign action is part of the design, with a registry entry for badge.ar.io.
- Name ties: reject both claims in the same settlement block, and add commit-reveal before names launch.
- Launch stamps are X and World ID. Later stamps are Stripe, Apple Digital ID, ENS, ArNS, and Coinbase. Coinbase uses a WalletConnect or EIP-1193 connect path. ENS and ArNS are no-server on-chain checks and remain later.
- Apple’s TXT record, capture page, and api.badgeapp.org live on badgeapp.org, a domain the project would control. It has not been bought.
- Stripe Identity is later, not in the launch set. The check is billed at Stripe’s $1.50 plus overhead to the triggering app, as in section 12. v1 uses status only, with no age-over and no keyed-hash dedupe.
- One badge per human is optional, via stamps. The World ID path stores the nullifier on the stamp server so a second badge cannot get the same check. Stripe has no keyed-hash dedupe in v1.
- Pricing: sign-in and reads are free; a vendor check is about $2–3 to the triggering app, or bundled in an optional monthly active-user plan. A later app that only reads an existing stamp is not billed again.
- One small stamp server (for example a Cloudflare Worker) serves World ID at launch, with planned hostname api.badgeapp.org. The project holds the offline root key and operates approvals, revocations, and key rotation. The X v1 path needs no stamp server.
- The stamp server uploads stamps and registry snapshots after a signed request, using a funded Turbo wallet when items are not in the free tier, with a budget cap on that wallet.
- ArNS badge.ar.io is permabought (21 November 2026). No remaining purchase question for that name.
- An app receives only the username the user picks in the app, not a hidden per-username label.
- Names are free, with the claim rules in section 6: one name per badge (a released name is free at once), 3 claims per badge a day, and a reserved list; names of 1 to 3 characters need no stamp. A local denylist. No transfers in v1.
- The public name is the handle the user picked. A guardian key can be added later. One badge per user, per-app hide only (no global hide, default shown), and the one-time first-sign-in notice.
- Recovery phrases are 12 words: a random 128-bit secret.
- Quantum-safe badge, wallets later: dual-sign every badge record with an ML-DSA key (FIPS 204) derived just-in-time from the master (HKDF info badge-pq-v1); apps verify the ML-DSA signature. SHA-256 hash links are already PQ-safe. Passkey sign-in stays ECC until PQ passkeys ship. Arweave transaction and bundle signatures (RSA/ECC) are outside this design; the inner ML-DSA signature protects record contents. Wallets adopt chain and passkey PQ as they ship.
- Profile and avatar are per-user Turbo data items, signed in the browser by the badge key (signature type 3), with no Badge server and no badge.ar.io master key. The picture, when uploaded, starts at 512×512 WebP, stays under the 105 KiB free per-item limit (working cap 100 KiB, target under 50 KB), and is fetched from a verified profile record as in section 5. Load the newest of a short GraphQL window whose signatures verify; do not filter only by username, and do not treat GraphQL owner as the 0x badge id.
- Code delivery: Badge is a browser-delivered wallet. v1 keeps the ANT keys on hardware or a multisig, publishes each release as plain files on Arweave with a public log so a version can be loaded by immutable id, and keeps a strict CSP with no third-party scripts. A check that runs only in the code at badge.ar.io cannot be trusted once that code is replaced. Later layers are in section 13.
- Hybrid signing: both signatures must verify over the same canonical bytes when PQ fields are present (AND rule); records with no PQ fields stay verifiable. Identity records only. Details in section 5.
Further design choices
These details complete the same design.
- The signed Arweave app-registry snapshot in section 9 is the live registry; a baked registry.json may be used only as a bootstrap. It replaces the older signed Ed25519 chain in the registry module.
- The apps-list entry holds a per-app hide flag; no separate version bump is required beyond the usual record seq.
- The badge is included in the sign-in postMessage result by default. badge_token and app_sign_sig go in that result; the result version v bumps when its shape changes. The registry may hold the app’s stamp policy.
- For Coinbase, the popup offers a WalletConnect or EIP-1193 session so coinbase.com/onchain-verify can request a signature or a sponsored transaction from the badge key, without exporting that key.
- For ENS and ArNS, the popup requests a signature from the outside owner wallet. ANT owners may use the key types ArNS currently allows; the verifier accepts a valid owner signature.
- Turbo items under 105 KiB were 0 winc in one test; larger items use a funded Turbo wallet. Settlement uses 50 blocks as the finality number once a height exists.
- The stamp-server build includes a ledger schema and a no-personal-data test in the style of the client-key tests. The Records Access token on r430 must not be reused.
- ArNS checks happen in the app’s verifier, not in a vendored popup bundle.
- The 12-word phrase and the just-in-time ML-DSA badge key are in the same KDF. The PQ key uses HKDF info badge-pq-v1.
- The default per-app wallet is Solana, derived as specified, with HKDF info badge-solana-v1. The existing info wallet path remains the optional on-demand Ethereum/Base secp256k1 key.
- The badge’s own wallets use standard paths: Ethereum/Base m/44'/60'/0'/0/0, Bitcoin m/84'/0'/0'/0/0, Solana m/44'/501'/0'/0', and an Arweave RSA-4096 key generated from the BIP-39 seed exactly as Wander’s jwkFromMnemonic does.
References
- [2] W3C. Web Authentication Level 3, PRF extension. https://www.w3.org/TR/
webauthn-3/ . - [3] Stripe. “Identity.” https://stripe.com/
identity . - [4] World. “World ID.” https://docs.world.org/
world-id . - [5] Human Passport. https://docs.passport.
human.tech/ . - [6] ENS Labs. “FAQ.” https://docs.ens.domains/
faq/ . - [7] M. Palatinus et al. “Mnemonic code for generating deterministic keys.” BIP 39, 2013.
- [8] H. Krawczyk and P. Eronen. “HKDF.” RFC 5869, IETF, 2010.
- [9] ar.io. “Name Registration.” https://docs.ar.io/learn/
arns/name-registration/ . - [10] https://
docs.ar.io/ .sdks/ ar-io-sdk/ ar-io-name-system-arns/ - [11] https://
docs.stripe.com/ .identity/ access-verification-results - [12] https://
docs.stripe.com/ .identity/ review-tools - [13] https://
support.apple.com/ .guide/ business/ brand-set-verify-wallet-web--axmeb38543c4/ web - [14] https://
support.apple.com/ .guide/ business/ create-a-certificate-abcbffe722af/ web - [15] https://
support.apple.com/ .guide/ business/ prepare-set-verify-wallet-web-abcb17bcda04/ web - [16] https://
webkit.org/ .blog/ 17431/ online-identity-verification-with-the-digital-credentials-api/ - [17] https://
www.coinbase.com/ .onchain-verify - [18] https://
help.coinbase.com/ .en/ coinbase/ getting-started/ verify-my-account/ onchain-verification - [19] https://
github.com/ .coinbase/ verifications - [20] https://
docs.cdp.coinbase.com/ .verifications/ introduction/ welcome - [21] https://
docs.world.org/ .world-id/ idkit/ integrate - [22] https://
x.com/ .intent/ post - [23] https://
publish.twitter.com/ .oembed - [24] https://
x-preview.mintlify.app/ .x-api/ getting-started/ pricing - [25] https://
docs.self.xyz/ .docs/ self-enterprise/ get-started/ how-it-works/ - [26] https://
docs.zkpassport.id/ .api - [27] https://
docs.farcaster.xyz/ .auth-kit/ client/ app/ verify-sign-in-message - [28] https://
lens.xyz/ .docs/ protocol/ authentication - [29] NIST. Module-Lattice-Based Digital Signature Standard. FIPS 204, 13 August 2024. https://doi.org/
10.6028/ .NIST.FIPS.204