Introduction
What Badge gives an app
Badge is a permanent identity, wallet, and authentication system. Users carry one Badge from app to app and access it with a saved passkey. An app never stores a password for users, and never stands up an account database that can be breached. An app also sees fewer bots, because authentication is a signature from a key users hold, not a form anyone can fill.
For a web app, users accessing Badge is the same idea as Sign in with Apple: users approve once with a saved passkey, and the app receives a stable user id and a signature it can check. The same Badge is also a wallet. Users can publish its addresses for Ethereum and Base, Bitcoin, Solana, and Arweave on a public profile.
No Badge server
There is no Badge server in the verify path. An app issues a short challenge, Badge returns a signature, and the app checks that signature with the public key in the result. Reading a profile works the same way: it is a signed record on Arweave the app fetches and checks (see Read a public badge).
The guide has six more parts. Encryption lists the cryptography Badge uses and where every key comes from. App Registration covers getting an app onto Badge. App Integration covers what an app can ask Badge to do for users. Pricing lists what Badge charges an app. Queries collects GraphQL queries for Badge’s public records on Arweave. Roadmap lists what is planned.
Why build with Badge
- Nothing to breach. No passwords, keys, or account secrets are kept on any server. Keys are made again from a user’s saved passkey or 12 recovery words when needed.
- One Badge everywhere. The same Badge is the identity, the wallet, and the authentication, in every app that supports it. An app reuses it instead of building its own.
- Recover Badge. A lost passkey is not lost access. The 12 recovery words recreate every key and can add a new passkey.
- Apps check it themselves. An app checks a Badge against its signed record on Arweave, with no Badge server to ask.
- Ready for quantum computers. Profile records are dual-signed with secp256k1 and ML-DSA-65. A saved passkey and the wallet use the standard curves of each chain.
How Badge compares
“Proof of a human” means a check that a real person passed a source, not merely that someone controls an account, a key, or a name.
| System | Web apps | Wallet | Public identity | Proof of a human | Permanent page | Company server |
|---|---|---|---|---|---|---|
| Badge | Yes, a saved passkey | Yes, a wallet | Yes, one Badge and a username | No, proves control of a passkey | Yes, on Arweave | None to access a Badge |
| Sign in with Apple or Google | Yes | No | No, a company account | 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 that 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, World’s 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 |
Constraints to design around
- Passkeys are bound to badge.vanillasoftware.org. Another gateway address needs a new passkey plus the 12 recovery words, which restore the same keys and Badge.
- Access depends on the ar.io domain and gateway. badge.vanillasoftware.org is a permabought ArNS name with no expiry, but the ar.io DNS domain still has to be renewed and the gateway still has to serve the name. Verify signatures and Arweave records, never the domain alone.
- No identity data on chain. No legal name, date of birth, address, document number, photo, or 12 recovery words are ever written to Arweave. A username is a name a user chose, not a legal name.
- A Badge is not proof of a human. It proves control of a saved passkey or the 12 recovery words, not that a real, unique person is behind it.
- Recover Badge depends on the words. The 12 recovery words encode the Badge’s 128-bit secret. A passkey can be replaced. The 12 recovery words cannot.
Encryption
All of Badge’s cryptography runs in their browser tab. Private keys are derived after a passkey unlock, used, and wiped. Nothing secret is sent to a server or written to Arweave in the clear.
Libraries
Badge uses small, audited, dependency-free libraries, vendored into the site as plain ES modules with no build step, plus the browser’s own WebCrypto and WebAuthn:
| Library | Used for |
|---|---|
@noble/secp256k1 | secp256k1 keys and ECDSA (RFC 6979 nonces, low-s only). Every EIP-191 personal_sign signature and recovery. |
@noble/hashes | SHA-256, SHA-384, Keccak-256, HMAC, and HKDF-SHA256. |
@scure/bip39 | The 12-word recovery phrase and its seed (PBKDF2-HMAC-SHA512, 2048 rounds). |
@noble/post-quantum | ML-DSA-65 (FIPS 204), the post-quantum signature on profile records. |
| Permaweb Standard Seeds v1.0 | The Arweave RSA-4096 key, wallet 0 of that published scheme, in Badge’s own code (js/arweave-rsa.js), checked against every one of its test vectors. |
| WebCrypto | AES-256-GCM, HMAC-SHA512 for BIP-32 and SLIP-10 wallet paths, SHA-512 for Ed25519, and random bytes. |
| WebAuthn PRF | The passkey’s secret output, which unwraps the badge’s master secret. |
The noble and scure libraries are by Paul Miller, MIT licensed. Their licences ship next to the vendored files.
Every library is copied into the release as a plain file. Nothing is loaded from a CDN or another site at run time, so the code that runs is the code in the release. Pinned copies never update themselves: a security fix ships as a new release, published with its file hashes.
| Library | Version | License |
|---|---|---|
@noble/secp256k1 | 2.3.0, byte-identical to the npm release | MIT |
@noble/post-quantum | 0.7.1 | MIT |
@noble/curves | 2.4.0, inside the ML-DSA file | MIT |
@noble/hashes | 2.4.0 inside the ML-DSA file; 1.8.0 elsewhere | MIT |
@scure/bip39 | 1.6.0 | MIT |
Passkey and master secret
A badge starts as 16 random bytes made at sign-up: the master secret, which they can also see as their 12-word recovery phrase. It is never stored in the clear. Instead, each of their passkeys wraps it:
prf = WebAuthn PRF(salt = SHA-256("badge-master-wrap-v1"))
key = HKDF-SHA256(prf, info = "badge-wrap-key-v1", 32 bytes) AES-256-GCM key
lookup = HKDF-SHA256(prf, info = "badge-wrap-lookup-v1", 16 bytes) public
ct = AES-256-GCM(key, iv = 12 random bytes,
aad = "badge-wrap-v1\n" + badge id, secret)
The wrapped secret is uploaded to Arweave, signed by the badge key and tagged with lookup, so any device with that passkey can find it and open it. Without the passkey, nobody can compute the lookup or the key, so the record says nothing about who it belongs to.
The secret is not taken from a passkey, because every passkey has its own PRF output: a new passkey would then be a new badge. Wrapping gives four ways in:
- Access uses a passkey the badge already has, including one synced to a new device, which finds its wrap on Arweave by the lookup tag.
- Create makes a passkey and a fresh secret.
- Recover takes the 12 words and wraps them for a new passkey.
- Add a passkey unlocks with one passkey and wraps the same secret for another.
A passkey with no wrap is refused rather than starting a new badge. PRF is required to create a badge; when they return, a passkey that does not return PRF means they enter the 12 words instead. Badges made before 29 November 2026 used the first 16 PRF bytes as the secret.
Key derivation
Every other key comes from the BIP-39 seed of the 12 words, with HKDF-SHA256 (salt 32 zero bytes, 32 bytes out) and a fixed label per key:
| Key | HKDF info | What it is |
|---|---|---|
| Badge key | badge-v1 | secp256k1. Its address is the badge id (0x…) and it signs every badge record. |
| Post-quantum key | badge-pq-v1 | The seed for an ML-DSA-65 key pair that co-signs profile records. |
| Per-app key | badge-app-v1: + app id | secp256k1, one per registered app. See Per-app ids. |
| Apps list key | badge-apps-list-v1 | AES-256-GCM key for their private list of connected apps. |
Signatures
Badge records (profiles, name claims, groups) are canonical JSON: keys sorted, no whitespace. Each is signed with EIP-191 personal_sign over "Badge v1\n" plus that JSON. The signature is 65 bytes (r || s || v), and only the low-s form is accepted, so every signature has exactly one valid form.
New profile records are hybrid: the same message is also signed with ML-DSA-65, and the record carries that public key. Both signatures must verify. A badge’s first hybrid record pins its post-quantum key: later records with a different key, or with only a secp256k1 signature, are rejected. Someone who one day breaks secp256k1 still cannot publish a new profile for the badge.
Records are uploaded as ANS-104 data items, signature type 3 (Ethereum secp256k1), signed over a SHA-384 deep hash. The data item id is the SHA-256 of its signature.
The secp256k1 and ML-DSA-65 signatures are separate fields over the same message, and each names its algorithm, so a record stays verifiable under the algorithm it named. A forger has to break both algorithms. That is the defence against a future quantum computer forging records that sit on Arweave for good: it would still need the pinned ML-DSA key.
- Sizes. An ML-DSA-65 public key is 1,952 bytes and a signature 3,309 bytes. A hybrid record is about 8–10 KB encoded, against under 2 KB for secp256k1 only, still far inside Turbo’s 105 KiB free item limit.
- The pin. Hybrid uploads carry a
Badge-PQ: ML-DSA-65tag, so the earliest one can be found with an oldest-first query. Until that record is in a block, order falls back to the signed time. A verifier shown none of a badge’s real records cannot know the real pin, which is why lookups query several gateways. - Scope. Only identity records are dual-signed. Wallet chains, passkey sign-in, and Arweave transaction and bundle signatures stay on their current algorithms.
Wallets
The same 12-word recovery phrase that opens the badge also opens four wallets, using ordinary paths, so the addresses match what those wallet apps derive from the same phrase:
| Wallet | Path | Address |
|---|---|---|
| Ethereum and Base | BIP-32 m/44'/60'/0'/0/0 | 0x… |
| Bitcoin | BIP-32 m/84'/0'/0'/0/0 | bc1q… (P2WPKH) |
| Solana | SLIP-10 m/44'/501'/0'/0' | base58, Phantom’s path |
| Arweave | Permaweb Standard Seeds v1.0, wallet 0: BIP32-Ed25519 m/44'/472'/0'/0'/0', then RSA-4096 | base64url of SHA-256 of the 512-byte modulus |
They can publish those addresses on their public profile, in the signed record. They can also export one wallet’s key from Badge and import it into the usual wallet app.
The Arweave key follows Permaweb Standard Seeds v1.0: a BIP32-Ed25519 path gives a 32-byte wallet secret, SHA-256 turns it into two 2048-bit starting points, and each prime is the next prime above its starting point (e = 65537). It runs in a Web Worker, which first derives one of the scheme’s published test wallets and then signs and verifies with the new key before keeping it; only the public modulus and address are kept. A phrase does not say which scheme made its wallets, so write the scheme’s name beside it: a wallet app with another Arweave method gives a different address from the same words. All wallet keys stay non-post-quantum.
Test vector: the phrase abandon × 11 + about gives these addresses, matching MetaMask, BIP-84 wallets, Phantom, and the Permaweb Standard Seeds v1.0 reference:
ethereum 0x9858EfFD232B4033E47d90003D41EC34EcaEda94
bitcoin bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu
solana HAgk14JpMQLgt6rVgv7cBQFJWFto5Dqxi472uT3DKpqk
arweave Q0-HfnsOcP9bEogxpWo6CDNXLIwN6JgCOfDCE5OZSZs
Exporting one wallet’s key
The profile can export one wallet’s private key (Solana, Ethereum, Bitcoin, or the Arweave keyfile). Each export asks for the passkey again, and while a badge is open the browser offers only the passkey used to sign in. The secret is unwrapped and checked against the open badge, so another badge’s passkey is refused. Only that wallet’s key is derived, and it must turn back into the address the profile shows before it is offered.
Solana, Ethereum, and Bitcoin keys stay masked and can only be copied; the Arweave key is a keyfile download. Badge tries to clear the clipboard 60 seconds after a copy, only while the popup is open and only if it still holds that key. Once a key leaves Badge nothing can revoke it, but it exposes that one wallet only, never the badge key, the other wallets, or the 12 words.
Why 12 words
A 12-word phrase is a random 128-bit secret, the default in MetaMask, Phantom, and Coinbase Wallet. Grover’s algorithm in theory halves that to about 64 bits, but would need about 264 sequential quantum evaluations of the full PBKDF2 seed function, which is not considered feasible. The real quantum exposure is Shor’s algorithm against the wallet and passkey curves, which a longer phrase does not change. Twelve words are half as much to write down and type back correctly.
What stays private
- The recovery phrase, the wallet keys, and the badge key are never stored or uploaded. They are derived in the tab after a passkey unlock and wiped when signing is done.
- The list of apps they have signed in to is encrypted with AES-256-GCM under the apps list key. It is bound to the badge id and kept only in that browser, never on Arweave.
- Badge records may only carry public ids and public keys. A verifier rejects any record that carries identity data, at any depth.
| What | Linkable across apps? | Why |
|---|---|---|
| Per-app ids | No | A different HKDF branch per app. Never published on the badge. |
| Badge id and badge name | Yes | One global badge, public on Arweave once published. |
| Badge wallets | Yes, once published | Their addresses are in the signed profile record, and any wallet app that imports the phrase sees the same addresses. |
| Passkey credential id and public key | No | They never leave Badge’s page. |
App Registration
Registered apps
/connect only accepts apps in Badge’s registered app table. In production that table is Sequence (app=sequence), and the return origin must be https://barista.affogato.work.
Each entry fixes:
| Field | What it is |
|---|---|
id | The app id you pass as app to /connect. |
name | The name Badge shows them when they approve. |
aud | The audience in the signed challenge. |
api | The base URL Badge asks for the challenge. |
return_origins | The only origins Badge will send a result back to. |
pairwise | Whether the app gets a per-app id instead of the badge id. |
Apps are added to the table by the Badge team. There is no public self-serve registration endpoint.
Per-app ids
From the badge’s master secret, Badge can derive a secp256k1 key for one registered app, using HKDF-SHA256 with info badge-app-v1: plus the app id (for Sequence, badge-app-v1:sequence). The address of that key is the per-app id. It is unlinkable from the badge id and from any other app’s id.
When an app is registered with per-app ids on (pairwise), the field still named badge_id in the message and in the return is the per-app id, and the signature is from the per-app key. The badge id never leaves the connect page. Display hints are also omitted.
Sequence, the registered production app, is registered without per-app ids: its badge_id is the badge’s global id, signed by the badge key.
App Integration
What an app can ask for
| Ask | How |
|---|---|
| Sign them in | /connect returns a user id and a signature over your challenge. See Open the connect page. |
| Show their name and picture | Unsigned display hints in the sign-in result, or the signed public profile. See Read a public badge. |
| Their published wallet addresses | From the signed public profile, when they chose to publish them. |
| A per-app id | Set when the app is registered. See Per-app ids. |
Everything else is read, not called: a badge’s public records are on Arweave, and you check them yourself.
Sign-in flow
Open Badge’s connect page in a popup (or send them there if a popup cannot open). After they approve with their passkey, Badge comes back to your return URL and, when it can, also sends a postMessage to the window that opened it. You then check the signature yourself.
Open the connect page
const state = [...crypto.getRandomValues(new Uint8Array(16))]
.map((b) => b.toString(16).padStart(2, "0")).join("");
sessionStorage.setItem("badge-connect-state", state);
const url = new URL("https://badge.vanillasoftware.org/connect");
url.searchParams.set("app", "sequence"); // your registered app id
url.searchParams.set("return", "https://your-app.example/callback");
url.searchParams.set("state", state); // optional, max 256 chars
window.open(url, "badge-connect", "popup,width=460,height=720");
Query parameters Badge reads:
| Param | Required | What it is |
|---|---|---|
app | Yes | The registered app id (for Sequence, sequence). |
return | Yes | An http: or https: callback URL. Its origin must be on that app’s allowlist. Do not put a username or password in the URL. |
state | No | An opaque CSRF token you generate and check on the way back. It is echoed, not signed. Max 256 characters, no CR, LF, or NUL. |
A challenge or message in the URL is ignored. Badge fetches the challenge itself, after the passkey unlock, from your registered API:
GET {api}/v1/auth/badge/challenge?badge_id={id}&origin={return origin}
You must return JSON with a message field. That string is exactly what Badge will sign. You may also repeat the message fields next to it; if you do, they have to match the message. For Sequence, api is https://barista.affogato.work.
Handle the callback
On success the return URL’s fragment (not the query) looks like this:
#badge_id=0x…&nonce=…&sig=0x…&state=…&display_name=…&username=…&avatar_url=…
In a popup, Badge also posts to the opener, with target origin set to your return origin:
{
"type": "badge-connect",
"badge_id": "0x…",
"nonce": "…",
"sig": "0x…",
"state": "…",
"display_name": "…", // or omitted / null if empty
"username": "…",
"avatar_url": "…"
}
If they close the window or presses Escape, you get #error=cancelled and { "type": "badge-connect", "error": "cancelled", "state": "…" }.
display_name, username, and avatar_url are unsigned display hints for you to show. They are not in the signed challenge. Do not treat them as authenticated profile data. Only badge_id and sig (plus the challenge you issued for nonce) are signed. Empty hints are left out of the fragment; the postMessage body uses null.
/connect refuses to run inside a frame. Open it top-level, as a popup or a full page.
Check the signature
You do this on your server, or in your own client, with no call to Badge. The signed string is always:
Badge v1\n{"aud":"<aud>","badge_id":"0x…","exp":<ms>,"iat":<ms>,"nonce":"<hex>","origin":"<origin>"}
The JSON is canonical: keys in that alphabetical order, no whitespace. exp and iat are Unix time in milliseconds. The challenge may last at most five minutes, and Badge allows one minute of clock skew on iat.
| Field | Check |
|---|---|
aud | Must be your registered audience (for Sequence, sequence). |
badge_id | An EIP-55 0x address. This is the id you should treat as the user. See Per-app ids. |
origin | Must be the origin of the return URL you registered. |
nonce | Hex, 16–128 digits (an optional 0x prefix is allowed), even length. It must be a nonce you issued and have not already accepted. |
iat, exp | Integers. exp is after iat, at most five minutes later, and still in the future when you accept the result. |
The signature is EIP-191 personal_sign over that exact string: a 0x-prefixed 65-byte secp256k1 signature (130 hex digits). Recover the signer and compare it to badge_id.
import { getAddress, verifyMessage } from "ethers";
async function verifyBadgeSignIn({ badge_id, nonce, sig, state }) {
if (state !== sessionStorage.getItem("badge-connect-state")) {
throw new Error("Sign-in state did not match");
}
// Load the exact message you issued for this nonce. Never accept a message you did not create.
const message = await loadIssuedMessage(nonce);
if (!message || !message.startsWith("Badge v1\n")) {
throw new Error("Unknown or invalid challenge");
}
const body = JSON.parse(message.slice("Badge v1\n".length));
if (body.aud !== "sequence") throw new Error("Wrong audience");
if (body.origin !== "https://your-app.example") throw new Error("Wrong origin");
if (body.nonce !== nonce) throw new Error("Nonce mismatch");
if (body.exp <= Date.now()) throw new Error("Challenge expired");
const signer = verifyMessage(message, sig);
if (getAddress(signer) !== getAddress(badge_id) ||
getAddress(body.badge_id) !== getAddress(badge_id)) {
throw new Error("Signature does not verify");
}
await consumeNonce(nonce); // one use
return { userId: getAddress(badge_id) };
}
The same check can be written with any EIP-191 recover (for example, recovering the address from the hash of "\x19Ethereum Signed Message:\n" + length + message). The signer must be the badge_id in both the return and the message.
Payments and chain signatures
/connect does not request a chain transaction, and it does not sign with a wallet key. The only signature you receive at sign-in is the EIP-191 signature of the Badge v1 challenge, from the badge key or, when per-app ids are on, from that app’s key. If you need a payment or a chain signature, use the published address and the wallet they already have.
Your user model
The badge holds identity; your app keeps its own user model, content, and usernames. Nothing about your app is stored in the badge.
| Thing | In the badge | In your app |
|---|---|---|
| Keys | The badge signing key | The id you receive at sign-in (the per-app id, for apps registered with it) |
| Name | An optional public handle | The username they chose in your app |
| Content | Nothing | Everything: records, shares, followers, profile |
| The link | Nothing about any app | The id you received at sign-in, on your user row |
Shares and other data should hang off your own user id, so they survive any change to the badge. If they have two usernames in your app and both show the same badge, you can tell they are the same person. That is by design.
Security checklist
- Badge does not store or upload the recovery phrase, wallet private keys, or the sign-in private key. Those are derived in the tab after a passkey unlock and wiped when signing is done.
- The connected-apps list is encrypted in their browser. It is not written to Arweave.
- Verified identity documents and other private personal data are never put on chain.
- Always check
origin,aud,exp, and thatnonceis one you issued and have not already used. Checkstateagainst the value you stored when you opened the popup. - Do not trust
display_name,username, oravatar_urlas authenticated fact. They are not signed. - Do not ask Badge to sign a message you place in the URL. Badge ignores
challengeandmessagequery parameters, on purpose. - Open
/connectas a top-level popup or page, never in a frame. - Sign-in uses a native passkey on badge.vanillasoftware.org. There is no third-party embedded wallet in this flow.
- Verify signatures and Arweave records, never the badge.vanillasoftware.org domain alone. Query at least two gateways, and treat items with no block height as pending.
Threats and mitigations
| Threat | Mitigation |
|---|---|
| Phishing popup or lookalike gateway | Passkeys are bound to badge.vanillasoftware.org; results go to registered origins only. |
| Cross-app tracking through the badge | Apps that receive the badge id can match them across apps. Apps registered with per-app ids get an id that cannot be linked to the badge id or to other apps. |
| Replay of a sign-in | aud, nonce, exp, and single-use nonces. |
| A gateway lies or omits records | Query two gateways, merge, and keep items pending until they have a height. |
| ar.io domain lost or transferred | Published records stay verifiable through any gateway. Apps verify signatures and records, never the domain. They recover elsewhere with a new passkey and the 12 recovery words. |
| Stolen words or a compromised passkey account | The same compromise already exposes every key and wallet; move funds out of the badge’s wallets. |
| Identity data on a permanent chain | The schema forbids it and verifiers reject extra personal fields. |
| An exported wallet key leaks | One wallet per export, never the badge key or the words; a fresh passkey check each time; the key must reproduce the shown address. |
Code-delivery trust
Badge is a wallet delivered to the browser, like MetaMask or a hosted web wallet. The code that runs is whatever badge.vanillasoftware.org currently points at. A version on Arweave can never change; the risk is the name being pointed at different code, through a stolen or misused name key, a compromised gateway or DNS, or a bad script in a release. Hostile code could sign as them while they are unlocked. It cannot rewrite past Arweave records or reach them if they never unlock.
- The keys that can repoint the name are kept on hardware or a multisig, not a hot server key.
- Every release is published as plain files on Arweave with a public log of transaction ids and file hashes, so a known version can be loaded by its immutable id.
- A strict Content-Security-Policy allows only same-origin scripts, and no third-party code is loaded at run time.
- Large balances belong in a hardware wallet, and the 12 words are the exit to other wallet software if the site is not trusted.
Checks that run only inside the code at badge.vanillasoftware.org cannot be trusted once that code is replaced.
Pricing
App registration
Badge bills a one-time fee of $100 to register an app.
Queries
Everything public about a badge is a data item on Arweave tagged App-Name = Badge, so any gateway’s GraphQL can find it. There is no Badge API in between. Each query below opens in the GraphQL explorer on arweave.net, set to run on a HyperBEAM node. Run it as is, or edit it first.
Newest records
- Newest public profiles
Type = badge-profile
The signedbadge.profilerecords behind every public page. - Newest name claims
Type = badge-name
Username claims and releases. Who holds a name is settled by block height. - Newest avatars
Type = badge-avatar
Profile pictures. A profile record names one by transaction id and SHA-256. - Newest groups
Type = badge-group
Group records, ordered byGroup-Seq. - Newest post-quantum profiles
Badge-PQ = ML-DSA-65
Profiles signed twice, with secp256k1 and ML-DSA-65.
One badge’s profile
Add a Badge-Id tag to get one badge’s profile records, newest first. Replace 0x… with the badge id:
query {
transactions(
first: 10
sort: HEIGHT_DESC
tags: [
{ name: "App-Name", values: ["Badge"] }
{ name: "Type", values: ["badge-profile"] }
{ name: "Badge-Id", values: ["0x…"] }
]
) {
edges { node { id block { height timestamp } tags { name value } } }
}
}
Who claimed a username
Find claims of a username with Badge-Name (lower case). Badge itself decides who holds a name by Name-Skeleton, a folded form in which look-alikes match (alice and a1ice both fold to allce), so query that tag to see every claim that competes for the name.
query {
transactions(
first: 10
sort: HEIGHT_DESC
tags: [
{ name: "App-Name", values: ["Badge"] }
{ name: "Type", values: ["badge-name"] }
{ name: "Badge-Name", values: ["alice"] }
]
) {
edges { node { id block { height timestamp } tags { name value } } }
}
}
A badge’s name history
Every username a badge has claimed or released, newest first. The Op tag is name or release-name:
query {
transactions(
first: 10
sort: HEIGHT_DESC
tags: [
{ name: "App-Name", values: ["Badge"] }
{ name: "Type", values: ["badge-name"] }
{ name: "Badge-Id", values: ["0x…"] }
]
) {
edges { node { id block { height timestamp } tags { name value } } }
}
}
A badge’s avatars
Every picture a badge has uploaded. Show one only when the SHA-256 of its data matches the Avatar-SHA-256 tag and the hash in the current profile record:
query {
transactions(
first: 10
sort: HEIGHT_DESC
tags: [
{ name: "App-Name", values: ["Badge"] }
{ name: "Type", values: ["badge-avatar"] }
{ name: "Badge-Id", values: ["0x…"] }
]
) {
edges { node { id block { height timestamp } tags { name value } } }
}
}
Every version of a group
A group is a signed chain of versions under one Group-Id. Fetch them all, then check each one’s signature and its prev hash against the version before it, by Group-Seq:
query {
transactions(
first: 100
sort: HEIGHT_DESC
tags: [
{ name: "App-Name", values: ["Badge"] }
{ name: "Type", values: ["badge-group"] }
{ name: "Group-Id", values: ["…"] }
]
) {
edges { node { id block { height timestamp } tags { name value } } }
}
}
Page through results
Ask for cursor and pageInfo, then pass the last cursor as after until hasNextPage is false:
query {
transactions(
first: 100
after: "CURSOR"
sort: HEIGHT_DESC
tags: [
{ name: "App-Name", values: ["Badge"] }
{ name: "Type", values: ["badge-profile"] }
]
) {
pageInfo { hasNextPage }
edges { cursor node { id block { height timestamp } tags { name value } } }
}
}
Paste any query into the explorer, or POST it to https://arweave.net/graphql as {"query": "…"}. Items that are not in a block yet come back with block: null.
Tags are written by whoever uploaded the item, so anyone can tag an item App-Name = Badge. Treat tags as a search index only: fetch each item and check its signature before you trust it.
Read a public badge
A public badge lives at https://badge.vanillasoftware.org/{id} or https://badge.vanillasoftware.org/{username}. The page is read-only. What it shows comes from the badge’s signed records on Arweave, checked in the browser. There is no Badge API to call for this.
To resolve a badge yourself:
- If the path is a
0xaddress, that is the badge id. If it is a username, look up the name’s holder from name-claim records on Arweave (settled by block height; a pending claim does not win). - Query a gateway’s GraphQL for data items tagged
App-Name = Badge,Type = badge-profile, andBadge-Id = {badge id}, newest first. - Fetch each item (prefer
/raw/{tx}), and verify it is abadge.profilev1 record whose signatures match that badge id. Hybrid records also carry an ML-DSA-65 signature over the same body. The first hybrid record pins that post-quantum key; later records with a different key, or single-signature records after the pin, are rejected. The newest record that remains is current. - If the record names an avatar transaction, fetch it and show it only when its SHA-256 matches the hash in the record.
From a current, valid record you can read the username, the display name, the picture, and any wallet addresses they chose to publish. Those wallet addresses are derived with the standard paths listed under Wallets.
The public page shows the signed profile only.
Record formats
A profile record is one ANS-104 data item, signed in the body and as the data-item owner by the badge key (signature type 3), and dual-signed with ML-DSA-65:
{
"v": 1,
"typ": "badge.profile",
"badge_id": "0x…",
"display_name": null, // optional label; never a legal name; not a name claim
"bio": null,
"links": [],
"avatar_tx": null, // data item id of the picture, or null
"avatar_sha256": null,
"updated_at": 1795000000, // claimed by the signer; never used for ordering
"sig": "0x…", // EIP-191 over "Badge v1\n" + canonical JSON without sig and sig_pq
"sig_pq": "…" // ML-DSA-65 over the same bytes
}
Tags: App-Name: Badge, Type: badge-profile, Badge-Id, Schema-Version: 1, Content-Type: application/json, and Protocol: badge-profile-v1. The picture is a separate item tagged Type: badge-avatar, at most 100 KiB (512×512 WebP to start), fetched by avatar_tx from a verified profile, never by searching tags.
When you load a profile, take the newest of a short window (first: 5) whose signatures verify. Do not filter only by username, and do not treat the GraphQL owner as the 0x badge id: for signature type 3, gateways may index a different owner address.
How names settle
Every verifier applies the same rules to the same signed records, so all agree on who holds a name. Names are a–z, 0–9, and hyphens, 1 to 32 characters, compared by a skeleton that folds lookalikes (hyphens removed; 0→o, 1 and i→l, 5→s, rn→m, vv→w).
- Collect claims for the skeleton from at least two gateways and merge them by data item id.
- Drop invalid items: bad signature, tags that do not match the body, a name not in its normal form, or an unknown version.
- Drop items with no block height. Pending claims are visible but never win.
- Sort by block height. Claims in the same block as another badge’s claim are a tie, and tied claims produce no holder.
- Replay the timeline: the first valid, untied claim holds the name; later claims while it is held are void; after a release or revoke, the name is open from the next block.
Claim rules: one name per badge (a winning claim releases the old one), at most 3 claims per badge in any rolling 24 hours by block time (losing, tied, and reserved claims count), and a shared reserved list matched by skeleton. Names of any length from 1 character are allowed.
Roadmap
Everything on this page is planned and not built. Formats and names may change before they ship.
Phases
| Phase | What ships | Needs |
|---|---|---|
| P1 | Launch stamps: X (no stamp server) and World ID (a small stamp server). Badge records, badge-sign, and a sign-in token with per-app signing keys. Names not required. | World developer sign-up, a stamp-server host, the root key, and a registry entry for badge.vanillasoftware.org |
| P2 | Coinbase Verifications as a free stamp on the badge key’s address. | A WalletConnect or EIP-1193 connect path that never exports the badge key |
| P3 | Stripe Identity and Apple Digital ID. Optional X OAuth upgrade. | Vendor approvals and a domain for Apple’s capture page |
| P4 | More apps, names with the tie rule, ENS and ArNS stamps, later sources, billing if approved. | A sign-up per vendor |
Stamps and the check mark
A stamp is a signed item that points at a check they passed elsewhere, published only if they choose. Classes: person (World ID, then Stripe Identity, Apple Digital ID, Self, zkPassport), account (Coinbase Verifications, Human Passport), social (X, Farcaster, Lens) and name (ENS, ArNS). Stamps carry no identity data. A small stamp server is used only while a stamp is made, never when a badge is verified. Public pages and apps would show a “verified human” check only when the badge verifies and at least one accepted, unrevoked person stamp is present.
Badge record chain and links
A signed chain of badge events (create, name, update, rotate, revoke) holding the badge’s keys and the stamps it lists, so a key can be rotated or a badge revoked. Link records would let them link an app account or wallet to their badge, signed by both keys.
Per-app ids and keys
Moving production Sequence, and later apps, to per-app ids. That is a breaking change for any app that stored the global badge id as its user id. More per-app keys would follow: a per-app Solana wallet given at sign-in, a per-app signing key for sign-in results, a per-app Ethereum and Base wallet on request, and several usernames per app.
Self-serve app registration
Developers would sign a registration request with their own badge (app name, https origins, a hashed contact, and scopes: signin, badge, stamps, name). Each app is reviewed by hand, and approved apps are published as a full signed snapshot on Arweave, signed by a registry key listed under an offline root key. Requests are signed with badge-sign, a separate popup action for signing a statement as a badge.
Verified apps
After verifying a sign-in, an app would sign a short receipt with a key published at /.well-known/badge.json on its own origin. Badge would keep the receipt in their private, encrypted Apps list and show a check on that app. Apps without a receipt still show as signed in.
First sign-in notice and hiding
A one-time notice the first time an app would receive the badge (name, picture, and stamps), in the same passkey approval, and a per-app setting to hide the badge from that app later.
Verifier SDK
A library apps run themselves that fetches a badge and its stamps from at least two gateways, checks them against pinned keys with no Badge server, and applies a stamp policy you set.
Code-delivery checks
An out-of-band checker that compares the running code to a separately signed release, a notice period before a new version becomes the default, and a service-worker warning when the served code changes.