Badge logo

badge.ar.io

A permanent identity and access provider

November 21, 2026

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.

ComponentCodeStatus
Passkey and PRF secretjs/passkey.js: WebAuthn create/get with the PRF extension; saves only public keys
js/passkeyuser.js: the name a passkey shows in the password manager
Built
Master secret, 12-word phrase, badge keyjs/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 secret
js/vendor/bip39.js, js/vendor/hkdf.js: BIP-39 and HKDF-SHA256
Built
Just-in-time unlock and wipejs/badgesigner.js: access, create, recover, add a passkey, reveal the phrase; private keys are wiped after useBuilt
Passkey wrappingjs/wrap.js: AES-256-GCM wrap of the secret per passkey, lookup tag, local copy
js/wraplookup.js: finds a passkey’s wrap on Arweave
js/turbo.js: uploads the wrap signed by the badge key
Built
Post-quantum badge key, hybrid signatures and key pinningjs/pq.js: ML-DSA-65 sign and verify
js/profilerecord.js: the AND rule and the key pin (applyPqPin)
landing/public/live.js: finds the earliest hybrid record and applies the pin
js/badgekeys.js: ML-DSA-65 key from HKDF badge-pq-v1, carried and wiped by the signer
js/vendor/ml-dsa.js: @noble/post-quantum 0.7.1, checked against OpenSSL
Built, for profile records
Badge wallets on standard pathsjs/hdpath.js: BIP-32 (Ethereum/Base, Bitcoin) and SLIP-0010 (Solana)
js/keyaddr.js: Ed25519 public keys, base58, bech32 bc1q addresses
js/eip191.js: secp256k1, EIP-191 signatures, Ethereum addresses
Built
Arweave wallet, Wander-compatiblejs/arweave-rsa.js, js/arweave-rsa-worker.js: RSA-4096 from the seed in a Web Worker
js/vendor/wander-rsa.js: Wander's human-crypto-keys and node-forge, unmodified
Built
Profile recordjs/profilerecord.js: the badge.profile body, hybrid signing, the AND rule, and records with no PQ fields
js/canonical.js: canonical JSON for the signed message
js/pii.js: rejects identity fields in records
Built
Upload to Arweave through Turbojs/turbo.js: signed uploads to ArDrive Turbo, no backend
js/ans104.js: ANS-104 data items signed by the badge key
Built
Lookup and verification from Arweavejs/gql.js: GraphQL over several gateways
landing/public/live.js: resolves /{name}, queries GraphQL on several gateways, verifies the profile record and the picture hash
Built
Badge site pageslanding/shell.js: the gate: access your badge, create one, recover with the 12 words
landing/profile/profile.js: profile, wallets, Badge ID and recovery phrase
landing/profile/publish.js, landing/profile/crop.js: confirm-and-upload, picture cropping
landing/public/public.js: public profile and Send popups
landing/profile/qr.js: QR codes
Built
Badge record chain (create, name, rotate) and namesjs/record.js, js/verifier.js: badge records and chain checks
js/claims.js, js/names.js: name rules and claim resolution
js/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 keysjs/badgesign.js: opener side of badge-sign
local 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
Stampsjs/stamp.js: stamp and revocation formats, issuer keys. Used by the verifier and the unit testsFormats only. X and World ID not built
Developer app registrationjs/appregistry.js, js/developers.js: badge-signed registration requestsMock
Deploying the sitescripts/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 appsNone yetNot 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.

WhatFile or pageUsed for
Sign-in specthe existing sign-in design notesApps and usernames, wallets, what the app gets back
Canonical KDF and vectorskeys, wallets, apps-list, and VECTORS.mdMaster seed path, HKDF labels, Vector 1 used for the badge-key example
Whitepaper §3.2–3.4this whitepaper, §3.2–3.4Same KDF, described for readers
Non-canonical 32-byte PRF master pathcommit 4c9e176Do not design against this path; the canonical KDF is the 64-byte BIP-39 seed
Existing app registrythe app registry JSON and registry moduleApp registry JSON and registry module
Records integration/workspace/ra-signin/app/features/client_keys.pySharing against a per-app user id
Donate brief/workspace/donate.ar.io/brief.mdFirst creator-facing app
Vendor docsApple Business, WebKit, Coinbase Help and onchain-verify, Stripe, and the others listed at the topStamps, 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.ioPermanent 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.ioPasskey popup. Actions: signin, signup, export, add-username, remove-username, and badge-sign.
badgeapp.orgPlanned 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.orgPlanned 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

Non-goals

2. Positioning and landscape

Decision. The check mark means at least one valid, unrevoked stamp of class person that the app's policy accepts. A name alone earns none. Copy next to the check should read verified human, never verified identity or verified name, because no stamp ties the handle to a legal name.

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.

SystemWhat it provesTied toHow it becomes a stamp
Coinbase VerificationsA wallet is linked to a trade-eligible Coinbase account (EAS on Base)A wallet address, Base, Coinbase customersFree stamp. Prefer the attestation on the badge key's address. Fallback: outside wallet plus a binding signature. No stamp server
XControl of an X handleAn X accountLaunch. 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 IDA unique human, with a per-app+action nullifierWorld App (IDKit) and World's verify serviceLaunch. 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 PassportA score built from many stamps, per addressAn address; API key or on-chain readerWallet-bound. A score is not a human check
SelfPassport or ID chip proof with age checksThe Self app and Self's serviceStamp server uses the session webhook, then signs
zkPassportPassport proof with a scoped unique idThe zkPassport appStamp server verifies the proof, keeps the scoped unique id, signs
Farcaster / LensA fid or a Lens accountThose networksSocial stamps. Easy to make many
Stripe IdentityID document plus selfieNothing, but needs our serverStamp server. Later, not in the launch set
Apple Digital IDVerify with Wallet: US passport mdoc, name match onlyApple devices, iOS 26.1 or laterLater. 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)
ClassSourcesWhat an app can rely on
personWorld ID (launch); later Stripe Identity, Apple Digital ID, Self, zkPassportA real human passed an ID or biometric check at the source
accountCoinbase Verifications, Human PassportA wallet belongs to a vetted account or has a good score. Not proof of one human
socialX (launch), Farcaster, LensAn existing social account
nameENS, ArNS permabuy (later; no-server on-chain checks)Someone controls a name
A handle, not a legal name. A badge name is a handle the user picks, like a username. Nothing checks it against an ID, and no stamp contains a legal name. A badge called jane-smith can belong to anyone.

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.

ThingIn the badgeIn the app
KeysBadge signing key, optional box keypairwise_id for (app, n), the per-(app, n) signing public key, and the per-app person key
NameOptional public handleThe username the user chose in that app
StampsAll of them, public once publishedA cached result of the published stamps, refreshed at sign-in
WalletNothing. The badge key's address is public on the record, and may hold a Coinbase attestationThis username's Solana address by default, from sign-in; Ethereum/Base, Arweave, or Bitcoin addresses if derived on demand
Content and sharesNothingEverything: records, shares, followers, profile
The linkNothing about any appbadge_id, name and last verified level on the app's user row, by default, once the user has a badge
Username conflict to settle. The label stored for each username is never sent to the app; the app keeps its own username. This spec reads "chosen per-app username" as the app-side username the identity index n selects. The app receives only the username the user picks in the app.

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.

4. Privacy model and canonical KDF

Canonical KDF. The path below is the design baseline. Do not use kdf.py at 4c9e176.
Master secret64-byte BIP-39 seed ofthe 12 wordsApp keyinfo badge-app-key-v1Per-app signing key (new)infobadge-app-sign-v1,per (app, n)Pairwise idfrom user handle, saltapp_id + nPer-app Solana wallet (default)info badge-solana-v1,Optional EVM walletinfo wallet + app_id +n, on demandBadge walletsstandard paths: EVM,BTC, SOL; Arweaveas WanderBadge key (one per user)info badge-v1,badge-v1Figure. Derivation from the master secret.
// 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
Default per-app wallet is Solana (Ed25519), HKDF info badge-solana-v1. The badge’s own wallets use standard paths so the recovery phrase is a real backup in other wallet apps: Ethereum/Base m/44'/60'/0'/0/0, Bitcoin m/84'/0'/0'/0/0, Solana m/44'/501'/0'/0', and Arweave generated as Wander does it. All are just-in-time from the master and never persisted. All wallet keys remain non-post-quantum (wallets later).
For Vector 1 the derived addresses match those that MetaMask, BIP-84 wallets and Phantom show for that phrase, and the BIP-32 and SLIP-0010 published test vectors pass. Arweave: Wander’s jwkFromMnemonic (github.com/wanderwallet/Wander, src/wallets/generator.ts; MIT) was run in Node at the versions in Wander’s lockfile and gives the same address for two test phrases. This document does not claim a check inside the Wander app itself. Wander Connect (Wander’s email sign-in wallet) uses key shares, not a phrase, and is not covered.
Recovery phrases are 12 words: a random 128-bit secret made at sign-up, the default in MetaMask, Phantom and Coinbase Wallet. 12 words was considered for Grover’s algorithm, which in theory halves 128 bits to about 64. In practice that needs about 2^64 sequential quantum evaluations of the full PBKDF2 seed function, which is not considered feasible (the reason 128-bit AES keys are still treated as acceptable); the real quantum exposure is Shor’s algorithm against the wallet and passkey curves, which phrase length does not change. 12 words is half as much to write down and restore without error. MetaMask, Phantom, Sparrow and Wander accept 12 words. Quantum-safe badge, wallets later: derive an ML-DSA badge key just-in-time from the master (HKDF info badge-pq-v1); dual-sign every badge record; 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 are out of scope.
No PRF. PRF is required to create an account. A returning user whose passkey does not return PRF is prompted for the 12 words, which rebuild the master, including the badge key. There is no badge path that skips the master secret.
Do not reuse the main wallet. Apps-list items are signed by the main wallet key, so that address is public on Arweave. The badge key must stay a separate key. Coinbase, ENS and ArNS stamps must never be proved with the main wallet or a per-app wallet.
The main wallet path m/44'/60'/0'/0/0 is the profile’s Ethereum/Base wallet and holds funds. Signing apps-list uploads with that key would tie the funded wallet to the apps list in public. Apps-list signing can use a dedicated HKDF key (for example info apps-list-sign), or that link is accepted.
WhatLinkable across apps?Why
pairwise_id, per-app Solana wallet (default), optional per-app EVM wallet, app_sign key, app keyNo by default, with the unlinkable handoff. Yes only if the user opts in, per item, with a dual-signed link recordA 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, stampsYes, by defaultOne 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, ArweaveYes, alreadyTheir 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_keyNo, after the unlinkable handoffThe popup does not send those values to the app.
Hide and unlinkable handoff. Hide is per-app only, default shown, no global hide Unlinkable handoff: credential_id, public_key and recovery_public_key should never leave the popup; apps get pairwise_id, a per-(app, n) signing key and per-(app, n) recovery attestations. credential_id, public_key and recovery_public_key never leave the popup.

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

Passkey on badge.ar.io

PRF output, 32 bytes
eval salt SHA-256 of badge-master-wrap-v1

HKDF info badge-wrap-key-v1
AES-256-GCM key

HKDF info badge-wrap-lookup-v1
16-byte public lookup tag

Unwrap the badge.wrap record on Arweave

16 random bytes
made at sign-up

AES-GCM ciphertext
AAD badge-wrap-v1 plus badge id

Badge secret, 16 bytes
legacy badges: first 16 PRF bytes

BIP-39, 12 words

Master, 64 bytes
PBKDF2-HMAC-SHA512, 2048 rounds, salt mnemonic

The passkey unwraps the badge secret, and the secret becomes the master.

From the master to the badge and the wallets

Master, 64-byte BIP-39 seed

HKDF info badge-v1
secp256k1 badge key, the badge ID

HKDF info badge-pq-v1
ML-DSA-65 key

BIP-32 m/44'/60'/0'/0/0
Ethereum and Base

BIP-32 m/84'/0'/0'/0/0
Bitcoin bc1q

SLIP-0010 m/44'/501'/0'/0'
Solana

Same 64 bytes, Wander jwkFromMnemonic
Arweave RSA-4096

Profile record
both signatures over Badge v1 plus canonical JSON

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

Master

HKDF info badge-app-key-v1
salt app id, or app id plus n

HKDF info badge-app-sign-v1
per-app secp256k1 signing key

HKDF info badge-solana-v1
default per-app Solana wallet

HKDF info wallet plus app id plus n
optional Ethereum key, on demand

HKDF info apps-list and apps-list-tag

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)
EventSigned byEffect
createFirst badge keyMakes the badge. No name needed. badge_id is this key's address
nameCurrent badge keyClaims a handle; section 6 decides whether it holds
updateCurrent badge keyStamps, addresses, box key; name and badge_id unchanged
rotateOld key and new keyNew signing key from that block on; stamps must be re-bound
revokeCurrent badge keyBadge dead from that block
Lost passkeyNobodyType 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.

Record JSON no sig, no sig_pq Canonical bytes C stable JSON, those fields omitted Message M "Badge v1\n" || C same M for both signatures secp256k1 (ES256K) EIP-191 over keccak256(M) existing badge key → field sig ML-DSA-65 (FIPS 204) HKDF info badge-pq-v1, 32-byte seed sign M → field sig_pq, then wipe Attach both fields and publish Figure. Signing flow: one message, two signatures, then publish.
Received record includes sig, maybe sig_pq Recompute M omit sig and sig_pq, same prefix and canonical JSON Verify sig EIP-191, keys.sign Verify sig_pq ML-DSA-65, keys.pq AND rule both valid → accept; either missing or invalid → reject Figure. Verification flow. Records with no PQ fields follow the verify rule in the text.
{
 "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

Decision. Profile text and a chosen picture are per-user ANS-104 data items, signed and uploaded from the browser to Turbo with the badge key. There is no shared dictionary, no Badge server, and no badge.ar.io master key on this path.

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

By default, per-app keys and wallets stay unlinkable and never point to the badge. The public badge shows only name, check, picture, and stamps. Linking is opt-in, per item, and must warn that the record is permanent.

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.

Tie rule. GraphQL order for pending items is not arrival order, and client and Turbo timestamps are not consensus. A name claim stays provisional until a block.height exists. The winner is the lowest settlement height. Same-settlement-height ties are not broken by data item id, because an item id can be ground and is not a consensus order.
  1. Collect claims
    Query Badge-Skeleton plus Badge-Op from at least two gateways and merge by data item id.
  2. Drop invalid items
    Bad signature, tag and body mismatch, name not equal to its normalized form, unknown version.
  3. Drop items with no block.height
    Pending: visible, never winners, and their order among themselves is not used.
  4. 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.
  5. 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.
  6. 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.

RuleWhat a verifier does
One name per badgeA 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 namesA 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 dayAt 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 namesOne 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 namesNames of 1 to 3 characters are allowed like any other name and need no stamp.
Older profile recordsA 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.

Decision. Names are free, first valid settled claim, with the claim rules above against spam: one name per badge (a released name is free at once), at most 3 claims per badge in any 24 hours, and a reserved list. Names of 1 to 3 characters need no stamp. Names are optional and ship in a later phase.

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.

  1. 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.
  2. 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.
  3. 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.
CallSignedSaved to ArweaveDecides the name
dryrun, Action=IsAvailableNoNoNo, advisory only
message, Action=Register, then resultYes: the claim inside it is signed by the badge keyYes, with its scheduler slotYes, 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.

HardeningHow
NormalizationThe 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 listThe shared reserved list lives in the process, keyed by skeleton, and is answered reserved. There are no grants.
Spam resistanceThe 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.
ReplayEach 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 controlWhoever 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.

Signer and msg.From. The process does not use msg.From or the message Owner to identify the badge. Whoever sends the message only pays for and delivers it; the badge is the address recovered from the claim’s own signature. This keeps the binding the same whichever key signs the AO message: the badge key itself, as an Ethereum-type data item, or a relay with another key type. A relay can delay or drop a claim but cannot change it or make one for another badge.
Relation to name records (proposed). The registry is a proposed replacement, not the current specification. The rules above stay in force: the lowest settlement height wins, and same-height ties are rejected. If the registry is adopted, registry order decides the holder, and the same claim rules apply with scheduler slots in place of blocks. The hybrid name record in section 5 stays the signed source of truth for the claim and points to the registry message that ordered it, in a tag with the draft name Badge-Registry-Msg, so a verifier can check that the record and the registry agree. release-name and revoke would go through the registry too, so the table and the records stay in step.

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.

QuestionResultSource
Can a plain secp256k1 EOA receive the attestation?Confirmed, yesCoinbase 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?ConfirmedSign 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 confirmedCoinbase 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 threeCoinbase 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 sessionBadge 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 confirmedCoinbase'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.

  1. 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.
  2. 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.
  3. User finishes the vendor check
    Stripe redirects back. Apple's encrypted response is posted to api.badgeapp.org.
  4. Server checks the receipt, drops all personal details, signs a stamp, and returns it
    Personal details never leave the vendor and the temporary session.
  5. User publishes the stamp on Arweave
    Optionally, with an update so the current badge lists it.
Dedupe and the challenge. A hash of identity (document number plus date of birth, a Stripe document or selfie hash, or a World ID nullifier) can be stored so a second badge cannot get the same check. It lives in the stamp server, not on Arweave, and is still a stored identifier. Default is opt-in, only if the vendor already produces it, never raw, and only after legal and security review. Proof-of-spend-time is weaker, and cheaper.
// 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.

badge-sign. A dedicated Badge popup action, with a "Sign for badge.ar.io" screen (not generic sign-in), using the same passkey and master seed. With the unlinkable handoff, the signature uses the per-(app, n) signing key, not the global passkey or the badge key. Until badge-sign exists, a Coinbase SIWE message or an Apple-style ID token can be used, but they do not tie the request to a badge, so they are backups. badge.ar.io needs a registry entry, like records.ar.io today, with "action": "badge-sign" added.
// 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.

Sign-in confirmation and per-app hide. The first time an app will receive the badge, the Badge popup shows a one-time notice in the same passkey approval: this app gets the badge (name if any, and stamps) and can match this account with other apps; the user can later hide it in badge.ar.io settings, for this app only. Later visits, and a later show after a hide, have no second notice. After a hide, the next sign-in omits the badge and the app should drop the stored link; the per-app user id, username, wallet and data stay. No global hide. A human with no badge signs in as a regular Badge user, with no notice; the next sign-in after they create a badge shows the notice.
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

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.

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

ThreatMitigation
Phishing popup or lookalike gatewayPasskeys 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 badgeBy 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 regrettedPermanence 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 namesSkeleton conflicts, reserved list, check from a person stamp only; optional denylist
Check misread as a real-name identityCopy says verified human; handles are not legal names
Same-block name raceNo winner without a unique lowest settlement height; reject ties; commit-reveal before names launch
Replay of a badge token or badge-signaud, nonce, exp; single-use nonces; badge-sign is scoped to the statement shown
Gateway lies or omits recordsTwo gateways, union, highest seq cache, pending until height exists
Stolen words or a compromised passkey accountRotate or revoke race; same compromise already exposes every app key and wallet
Cross-app correlation via credential_idThe per-app signing-key fix: credential_id never leaves the popup
Main wallet linked to a Coinbase or ENS stampClaim and bindings use the badge key or an outside wallet, never the main or per-app wallet
Stamp server compromiseSplit verifier and signer; no stored personal data; root key can void a key window by block height
Apps triggering paid verificationsNo silent triggers, skip if a valid person stamp exists, rate limits, spend caps
Billing ledger used as a usage graphStill 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 downbadge.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 transferredbadge.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 keyHostile 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 ownerSame 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 originSame 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 scriptOnce 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 chainSchema 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.

PathWhat an attacker can doWhat they cannot do
Lost or stolen ANT owner or controller keyPublish 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 ownerThe 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 compromiseServe 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 scriptA 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.

MitigationWhat it actually protectsLimits
Hardware or multisig ANT controllerA 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 hashesUsers 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 mismatchDetects 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 ArweaveGives 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 hashThe 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 signedHelps 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 limitsHonest 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 IntegrityA 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 scriptsRemoves 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 changesA 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 walletKeys 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 softwareThe 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.
Decision. Code-delivery trust is layered. Every software wallet has this class of risk. Badge’s advantage is that published versions are immutable and remain loadable by transaction id; the residual risk is who can repoint the name, and whether users can notice and pin.

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.

LibraryVersionUsed forLicense
@noble/secp256k12.3.0The badge key: secp256k1 signing and public-key derivation, including sig. The file is byte-identical to the npm release.MIT
@noble/post-quantum0.7.1ML-DSA-65 (FIPS 204) signing and verification, for sig_pqMIT
@noble/curves2.4.0Curve math used inside the ML-DSA fileMIT
@noble/hashes2.4.0 (inside the ML-DSA file); 1.8.0 (SHA-256, Keccak-256, HKDF and the recovery phrase code)Hashing and key derivationMIT
@scure/bip391.6.0The recovery phrase: word list and conversionMIT
human-crypto-keys0.1.4The 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 addressMIT
node-forge1.3.1RSA key generation inside that stepBSD-3-Clause
hmac-drbg, hash.js, minimalistic-crypto-utils, pify, minimalistic-assert, inherits1.0.1, 1.1.7, 1.0.1, 4.0.1, 1.0.1, 2.0.4Small helpers pulled in by that RSA stepMIT 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

Except the badge.ar.io permabuy. Except for the ArNS permabuy of badge.ar.io, nothing else has been signed up for, requested, bought, uploaded, or changed. Later rows are implementation steps for their phase, not open design questions.
ItemCost or effortStatusNotes
Buy badgeapp.orgDomain price not checked. Planned, not bought.LaterNot bought. The planned name is badgeapp.org.
DNS for badgeapp.org and api.badgeapp.orgOrdinary DNS. Apple's TXT record can never be removed.Later, after the domain is boughtApple TXT rule confirmed.
X stamp (v1)No X API fee. Uses public intent and oEmbed only.In the launch setoEmbed rate limits are not guaranteed.
X OAuth upgradePay-per-use, about $0.010 per user read (Nov 2026).LaterPrice from X API pricing, Nov 2026.
World IDVerify 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 itWorld 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.LaterPrice 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 existsSteps partly confirmed. Per-check fee not listed, not confirmed free.
Turbo uploadsItems under 105 KiB were 0 winc in one test. Otherwise a funded Turbo wallet.Implementation: funding and each uploadOnly 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.ioPermabought on 21 November 2026. No expiry; cannot be reclaimed. Sign-in still depends on the ar.io DNS domain and gateway.PermaboughtConfirmed.
badge.ar.io registry entryA row in the Badge app registry so badge-sign works.LaterDecision.
Stamp serverOne 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.LaterNot checked.
Offline root keyHardware wallet or similar, not priced.The project holds the root of trustNot checked.
Pricing launch and MAU planSection 12 direction only.Design, as in section 12Design direction, not a vendor invoice.
Legal reviewBiometrics (including later Apple photo/face match under rules such as BIPA and GDPR), privacy policy text, Apple's usage guidelines, fundraising use, billing.LaterCost unknown.
Reading Coinbase, ENS, ArNSNo fee to read. A dedicated Base RPC is advisable later.None nowCoinbase user fee confirmed as none.

15. Phased plan

Later-phase order. Launch stamps are X and World ID. P1 below is that launch set. Later phases are Stripe, Coinbase, and Apple Digital ID, in that table order. World ID needs a World developer / RP sign-up and a stamp-server host before it can run in production.
PhaseContentGate
v0, this documentDesign, decisions, KDF and record vectors—
v0.5 local prototypeBadge derivation against VECTORS.md, record and verifier, mock stamp server, mock badge-sign, no vendor callsNo upload, no deploy, no sign-ups
P1Launch 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
P2Coinbase 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
P3Later 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
P4Other 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

  1. 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.
  2. The per-app signing-key fix is part of the design: credential_id and the passkey and recovery public keys never leave the popup.
  3. PRF is required to create an account. A returning user whose passkey does not return PRF recovers with the 12-word phrase.
  4. The badge-sign action is part of the design, with a registry entry for badge.ar.io.
  5. Name ties: reject both claims in the same settlement block, and add commit-reveal before names launch.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. ArNS badge.ar.io is permabought (21 November 2026). No remaining purchase question for that name.
  14. An app receives only the username the user picks in the app, not a hidden per-username label.
  15. 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.
  16. 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.
  17. Recovery phrases are 12 words: a random 128-bit secret.
  18. 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.
  19. 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.
  20. 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.
  21. 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.

  1. 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.
  2. The apps-list entry holds a per-app hide flag; no separate version bump is required beyond the usual record seq.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. ArNS checks happen in the app’s verifier, not in a vendored popup bundle.
  9. 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.
  10. 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.
  11. 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


  1. [2] W3C. Web Authentication Level 3, PRF extension. https://www.w3.org/TR/webauthn-3/.
  2. [3] Stripe. “Identity.” https://stripe.com/identity.
  3. [4] World. “World ID.” https://docs.world.org/world-id.
  4. [5] Human Passport. https://docs.passport.human.tech/.
  5. [6] ENS Labs. “FAQ.” https://docs.ens.domains/faq/.
  6. [7] M. Palatinus et al. “Mnemonic code for generating deterministic keys.” BIP 39, 2013.
  7. [8] H. Krawczyk and P. Eronen. “HKDF.” RFC 5869, IETF, 2010.
  8. [9] ar.io. “Name Registration.” https://docs.ar.io/learn/arns/name-registration/.
  9. [10] https://docs.ar.io/sdks/ar-io-sdk/ar-io-name-system-arns/.
  10. [11] https://docs.stripe.com/identity/access-verification-results.
  11. [12] https://docs.stripe.com/identity/review-tools.
  12. [13] https://support.apple.com/guide/business/brand-set-verify-wallet-web--axmeb38543c4/web.
  13. [14] https://support.apple.com/guide/business/create-a-certificate-abcbffe722af/web.
  14. [15] https://support.apple.com/guide/business/prepare-set-verify-wallet-web-abcb17bcda04/web.
  15. [16] https://webkit.org/blog/17431/online-identity-verification-with-the-digital-credentials-api/.
  16. [17] https://www.coinbase.com/onchain-verify.
  17. [18] https://help.coinbase.com/en/coinbase/getting-started/verify-my-account/onchain-verification.
  18. [19] https://github.com/coinbase/verifications.
  19. [20] https://docs.cdp.coinbase.com/verifications/introduction/welcome.
  20. [21] https://docs.world.org/world-id/idkit/integrate.
  21. [22] https://x.com/intent/post.
  22. [23] https://publish.twitter.com/oembed.
  23. [24] https://x-preview.mintlify.app/x-api/getting-started/pricing.
  24. [25] https://docs.self.xyz/docs/self-enterprise/get-started/how-it-works/.
  25. [26] https://docs.zkpassport.id/api.
  26. [27] https://docs.farcaster.xyz/auth-kit/client/app/verify-sign-in-message.
  27. [28] https://lens.xyz/docs/protocol/authentication.
  28. [29] NIST. Module-Lattice-Based Digital Signature Standard. FIPS 204, 13 August 2024. https://doi.org/10.6028/NIST.FIPS.204.