Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(vanity): estimate grind time from the exact Base58 distribution

nirholasb34601006e84
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a9937514..0bba9bcdb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,7 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Our x402 facilitator now publishes a standard discovery catalog** — The three.ws self-hosted x402 facilitator serves a new public endpoint, GET /api/x402-facilitator/discovery/resources, listing every paid endpoint on the platform in the standard facilitator catalog format that x402 explorers and aggregators (like x402scan) crawl. It is the same catalog as /.well-known/x402.json, so listings on third-party explorers always match what the platform actually charges. This is groundwork for three.ws payments showing up on ecosystem explorers without routing settlement through any third party. (`/docs/x402-ring-economy`) `[feature, infra]`
- **Paid x402 endpoints accept request bodies again, and agents now fill a public gallery** — A server-migration bug made every paid x402 endpoint that reads a POST body reject its input, so paid 3D generations never completed. That is fixed across all 29 affected endpoints, and the autonomous agents' hourly paid Forge purchases now land in a new public gallery at /forged, where every prop shows the price the agent paid, its wallet, and a link to the USDC settlement transaction on Solana. (`/forged`) `[fix, feature]`
- **Selfie avatars now match the shape of your face, not just the colour of it** — The selfie-to-avatar engine used to do one thing: take the face from your photo and paint it onto a standard head. From straight on it looked convincing, but the skull underneath was the same for everyone, so the moment the avatar turned it stopped being you. It now reshapes the head itself to your face: width, jaw, chin, cheekbones, brow, and how far the nose projects. That step had been written and tested for a while but had never actually reached the servers, so every avatar made until today was built the old way. Making it live also turned up a flaw in how the photo was read. Face measurements arrived scaled to the picture's width and height separately, which means a tall photo stretched the face before anything else happened, and that stretch was then treated as part of your bone structure. In practice the shape of your avatar's head partly depended on whether you shot the photo tall or square, which is not something anyone would expect. Measurements are now taken in true proportions, so the same face gives the same head regardless of how the photo was framed. Finally, the limits controlling how far the head is allowed to move toward your real shape were set before there was any way to measure the result. They were far too cautious, holding the head back to about two centimetres of change and quietly discarding real differences between faces. Measured across a forty-face test set covering a wide range of ages, complexions, beards, glasses and head coverings, retuning them cut the remaining shape error by 46 percent, and no face in the set came out worse. Choosing that limit needed a second measurement, because a test set of clean, well-lit photos will always argue for removing the limit entirely: it contains nothing for the limit to catch. So each test face was also degraded the way real photos are, with camera shake, a turned head, hair across the face, a dim room and a heavily shrunk upload, and checked for whether the same person still came out with the same head. The setting we shipped is the point where matching your face stops improving but sensitivity to photo quality keeps rising. In total, avatars now capture about 60 percent of the difference between a generic head and your real one, up from 26 percent. Rebuild your avatar at /create/selfie to get one made the new way. (`/create/selfie`) `[improvement, fix]`
-- **Sign language page: an avatar with a face, settings that stick, and 84 languages** — The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into all 84 site languages, and the sign-language embed attribute is now in the quick-start attribute reference for developers. (`/sign-language`) `[improvement, docs]`
+- **Sign language page: an avatar with a face, settings that stick, and 84 languages** — The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into every language the site ships, and the sign-language embed attribute is now in the quick-start attribute reference for developers. (`/sign-language`) `[improvement, docs]`
- **Signing avatars now sign whole sentences, touch what they are supposed to touch, and can raise an eyebrow** — Six things changed in the signing avatar. It was lowering its arms all the way to its sides between every single word, so a sentence read as a list of unrelated words; now the hands rise once at the start and lower once at the end, the way a person signs, and everything in between stays up in signing space. Signs that involve the two hands touching, like fall, help, good and again, were positioning each hand at fixed coordinates and hoping they met; they are now solved from the actual shape of the posed hand, so the fingers land on the palm even on an avatar with longer fingers or bigger hands, and the same is true of signs that touch the face, which previously buried the fingertips somewhere inside the head. The avatar can now raise its eyebrows: American Sign Language carries grammar on the face, where raised brows make a yes-or-no question and furrowed brows a what-or-why question, and signs now carry those markers to any avatar that has facial expressions built in. You can slow the signing down to three-quarter or half speed, which learners and many Deaf viewers want and which no amount of replaying a video at full speed substitutes for. You can switch the avatar to sign left-handed, because roughly one signer in ten is left-dominant and signing left-handed is not a mistake to be corrected. And the vocabulary is now checked automatically against two rules that hold across the whole language, so a new sign has to be well-formed and not merely render without crashing. (`/sign-language`) `[improvement, feature]`
- **Solana reads on the crypto API stop failing when one RPC host throttles us** — The Solana endpoints on the public crypto API (balance, token holdings, token supply, largest holders, transaction, account, priority fees) were pointed at a single RPC host. Whenever that host rate-limited us, the caller got the rate-limit error even though the platform keeps a priority-ordered pool of other RPC endpoints for exactly this situation. Those calls now move to the next healthy host automatically, up to three per request, and a host that has just failed is skipped for the next 30 seconds so one bad host does not slow down every request behind it. A genuinely bad request, like a malformed address, still returns its error immediately instead of being retried. This was the second-largest error class on the API. (`/crypto-api`) `[fix, improvement]`
- **Spatial MCP gets a conformance test kit and a privacy lint** — Two additions make our public-domain 3D tool-result standard something you can prove an implementation against, not just read about. First, a conformance test kit: thirteen real payloads a correct implementation must accept, reject, or flag, each with the required verdict written down. Run your own validator or renderer over them and you know whether it conforms, instead of asserting it. The kit lives with the validator and builder in a dependency-free package in the repository, @three-ws/spatial-mcp, kept byte-identical to the module served at three.ws/spatial-mcp/spatial-validator.js by a test that fails if the two ever drift; the npm registry publish is queued, and importing the module straight from that address works today with no install at all. Second, a data-minimization lint. The standard has always required that artifacts carry no session ids, wallet addresses, prices, or credentials, because that is what makes the format safe for app stores that do not allow crypto surfaces, but the specification previously admitted nothing checked this. Now lintSpatialMeta flags suspicious field names and credential-shaped values, the checker page runs it on everything you paste, and the deliberately broken example on the page leaks an internal id and a price on purpose so you can watch the lint catch both. Lint findings are advisory and never block a valid render, since no tool can know every private field name; the obligation stays with the emitter, but the common mistakes no longer pass silently. The developer dashboard's Web SDK card was also corrected: it was advertising a package that does not contain the viewer, loading a script from an address that does not exist, and demonstrating attributes the component does not have. It now shows the real package, the real script address, and markup that works when pasted. (`/spatial-mcp`) `[sdk, feature, fix]`
@@ -108,7 +108,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Legal** (`/legal`) — Every three.ws policy in one place, plus which address to use to report copyright, abuse, or privacy issues.
- **Reasoning Ledger** (`/ledger`) — An agent's every consequential decision (what it decided, why, what it predicted, and what actually happened) in a tamper-evident, on-chain-anchored, independently verifiable ledger. Open any agent's at /ledger/<agentId>. Being wrong is visible; honesty is the trust signal.
-- **Sign Language Avatars** (`/sign-language`) — three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back to the AI with your webcam — the whole loop, live in 3D.
+- **Sign Language Avatars** (`/sign-language`) — three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back with your webcam. The whole loop, live in 3D.
- **Audit any agent's trade decisions, linked from the write-ups** — The first-autonomous-trade postmortem, the Agent Sniper doc, and the sniper tutorial now link straight to the agent's live, tamper-evident Reasoning Ledger and to the on-chain transactions, so you can verify the +42% trade yourself instead of taking our word for it. The Reasoning Ledger is now a discoverable page, and its landing view features a live example to open first. (`/ledger/4c0e4d18-0544-4c95-a0db-a16896b029be`) `[improvement, docs]`
- **Bonding curve progress reads correctly again in the MCP tools** — The agent tools that report a coin's bonding curve were showing every coin as 0% to graduation with zero reserves and a zero price. Pump renamed these on-chain fields when USDC became a possible trading pair, and the tools were still reading the old names, which quietly resolved to zero instead of failing. They now read the current fields, so graduation progress, reserves, and price reflect the real curve. Verified against live coins reading 2% through 70% to graduation. `[fix]`
- **Chat replies in American Sign Language** — Turn on the new sign-language toggle in the agent chat and the 3D avatar signs every reply in ASL: words with library signs are signed, everything else is fingerspelled, compiled instantly on your device into one smooth performance. Site embeds get the same power with a single sign-language attribute on the agent-3d component. Built as the signed counterpart of text-to-speech, with a dictionary layer ready to swap in real captured signs word by word as the sign library grows. (`/docs/sign-language`) `[feature]`
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 7e1c93ca3..af2adcfe7 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -145,6 +145,7 @@ bottom.
| Seeker / Saga dApp Store app | [solana-mobile/](solana-mobile) — TWA wrapper [solana-mobile/twa/](solana-mobile/twa), PWA shell [solana-mobile/pwa/](solana-mobile/pwa), listing copy + release config [solana-mobile/publish/](solana-mobile/publish), Seeker detection [solana-mobile/src/seeker-detect.js](solana-mobile/src/seeker-detect.js) | In-repo · listing assets staged | Everything needed to package three.ws as a Solana Mobile app and publish it to the on-chain dApp Store. Targets Seeker first; compatible with Saga Gen 1 and Gen 2. Docs: [solana-mobile/README.md](solana-mobile/README.md) |
| Walk Avatar browser extension | [extensions/walk-avatar/](extensions/walk-avatar) — MV3 `manifest.json`, `background.js` | In-repo · Chrome Web Store release checklist staged ([RELEASE.md](extensions/walk-avatar/RELEASE.md)) | Walks your three.ws avatar across any site and reads pages aloud — a browsing companion built on the same rig as the [walk-sdk](walk-sdk). Ships its own store-required [PRIVACY.md](extensions/walk-avatar/PRIVACY.md), [PERMISSIONS.md](extensions/walk-avatar/PERMISSIONS.md), and [TERMS.md](extensions/walk-avatar/TERMS.md). |
| DCC tool integrations (Blender, ComfyUI) | [integrations/](integrations) — [integrations/blender/](integrations/blender), [integrations/comfyui/](integrations/comfyui), shared Python client [integrations/_pyclient/](integrations/_pyclient) | In-repo | First-party plugins that drive the public Forge pipeline (`/api/forge`) from inside the tools artists already use, so a model is generated without leaving the DCC. Docs: [integrations/README.md](integrations/README.md) |
+| Base58 difficulty model (the honest math) | [src/solana/vanity/base58-distribution.js](src/solana/vanity/base58-distribution.js), dispatch in [src/solana/vanity/validation.js](src/solana/vanity/validation.js); ported copies in [solana-agent-sdk/src/vanity/verify.ts](solana-agent-sdk/src/vanity/verify.ts) and [mcp-server/src/lib/base58-distribution.js](mcp-server/src/lib/base58-distribution.js), held in agreement by [tests/vanity-model-parity.test.js](tests/vanity-model-parity.test.js) | In-repo | The exact probability that a random Solana address matches a vanity pattern, and the single source of truth behind every quote, price, rarity tier, bounty payout and signed receipt. Base58 is a positional encoding of a 256-bit integer, so the *leading* character is not uniform: the 40 symbols `K`-`z` are 17.2x harder to lead with than `5`-`H`, a 58x spread the old flat 58ⁿ model erased. Models are versioned (`base58-exact/v2`, superseding `58^effectiveLength`) and receipts name theirs, so attestations issued before the correction still verify. Spec: [docs/PROTOCOL-vanity.md](docs/PROTOCOL-vanity.md#41-difficulty-model-versioning) |
| Vanity address grinder (Rust → WASM) | [crates/vanity-grinder/](crates/vanity-grinder) → compiled to [src/solana/vanity/wasm/](src/solana/vanity/wasm); consumed by [src/agent-vanity-grinder.js](src/agent-vanity-grinder.js), [src/agent-eth-vanity-card.js](src/agent-eth-vanity-card.js) | In-repo | The Rust source behind in-browser Solana/EVM vanity-address mining. Compiled to WebAssembly so grinding runs on the visitor's machine, never the server. Surfaced as the `vanity_grinder` MCP tool and the premium pre-ground inventory (`vanity_premium`). |
| x402 payment modal (drop-in UI) | [x402-payment-modal/](x402-payment-modal) | Published as `@three-ws/x402-payment-modal` | A drop-in payment modal for any x402 paid endpoint — one ES import turns a 402 challenge into a wallet-connect + pay flow. Has a build step, so it sits outside the zero-dependency `packages/*` SDK family. |
| x402 modal SDK | [x402-modal-sdk/](x402-modal-sdk) | Published as `@three-ws/x402-modal` | The lower-level modal SDK the payment modal builds on. Ships a bundled `dist/`; see [x402-modal-sdk/TUTORIAL.md](x402-modal-sdk/TUTORIAL.md). |
diff --git a/data/changelog.json b/data/changelog.json
index 8a42c47fa..e3fd719c1 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -15882,7 +15882,7 @@
{
"date": "2026-07-25",
"title": "Sign language page: an avatar with a face, settings that stick, and 84 languages",
- "summary": "The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into all 84 site languages, and the sign-language embed attribute is now in the quick-start attribute reference for developers.",
+ "summary": "The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into every language the site ships, and the sign-language embed attribute is now in the quick-start attribute reference for developers.",
"tags": [
"improvement",
"docs"
diff --git a/public/changelog.json b/public/changelog.json
index f13359960..9fe636ae4 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-25T13:09:13.607Z",
+ "generated_at": "2026-07-25T13:14:31.817Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -192,7 +192,7 @@
"date": "2026-07-25",
"type": "update",
"title": "Sign language page: an avatar with a face, settings that stick, and 84 languages",
- "summary": "The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into all 84 site languages, and the sign-language embed attribute is now in the quick-start attribute reference for developers.",
+ "summary": "The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into every language the site ships, and the sign-language embed attribute is now in the quick-start attribute reference for developers.",
"link": "/sign-language",
"tags": [
"improvement",
@@ -930,7 +930,7 @@
"date": "2026-07-20",
"type": "launch",
"title": "Sign Language Avatars",
- "summary": "three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back to the AI with your webcam — the whole loop, live in 3D.",
+ "summary": "three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back with your webcam. The whole loop, live in 3D.",
"link": "/sign-language",
"tags": [
"launch"
diff --git a/public/changelog.xml b/public/changelog.xml
index a4a06a16d..d82010c82 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -148,7 +148,7 @@
<guid isPermaLink="false">2026-07-25:Sign language page: an avatar with a face, settings that stick, and 84 languages</guid>
<pubDate>Sat, 25 Jul 2026 12:00:00 GMT</pubDate>
<category>improvement</category>
- <description>The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into all 84 site languages, and the sign-language embed attribute is now in the quick-start attribute reference for developers.</description>
+ <description>The /sign-language page gained an Avatar setting: alongside the light classic rig there is now an expressive avatar whose face actually shows the grammar signed questions need (raised brows on a yes/no question, furrowed brows on negation). Your signing speed, dominant hand, and avatar choice now persist across visits, so a left-handed signer sets it once. The whole page is also translated into every language the site ships, and the sign-language embed attribute is now in the quick-start attribute reference for developers.</description>
</item>
<item>
<title>Signing avatars now sign whole sentences, touch what they are supposed to touch, and can raise an eyebrow</title>
@@ -708,7 +708,7 @@
<guid isPermaLink="false">2026-07-20:Sign Language Avatars</guid>
<pubDate>Mon, 20 Jul 2026 12:00:00 GMT</pubDate>
<category>launch</category>
- <description>three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back to the AI with your webcam — the whole loop, live in 3D.</description>
+ <description>three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back with your webcam. The whole loop, live in 3D.</description>
</item>
<item>
<title>Audit any agent's trade decisions, linked from the write-ups</title>
diff --git a/public/features.json b/public/features.json
index 744c2dcb9..b11d49533 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-25T13:09:13.597Z",
+ "generated_at": "2026-07-25T13:14:31.798Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -68,7 +68,7 @@
{
"path": "/sign-language",
"title": "Sign Language Avatars",
- "description": "three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back to the AI with your webcam — the whole loop, live in 3D.",
+ "description": "three.ws avatars sign in American Sign Language: fingerspell any word or number, get signed chat replies, and sign back with your webcam. The whole loop, live in 3D.",
"added": "2026-07-20",
"auth": null,
"indexable": true,
diff --git a/src/erc8004/vanity-modal.js b/src/erc8004/vanity-modal.js
index 5fbfe3830..2dbb66afc 100644
--- a/src/erc8004/vanity-modal.js
+++ b/src/erc8004/vanity-modal.js
@@ -14,6 +14,8 @@
* Persistence is the caller's job (see deploy-button.js).
*/
+import { expectedAttempts } from '../solana/vanity/validation.js';
+
const FREE_THRESHOLD = 5;
const MAX_LENGTH = 6;
const BASE58_RE = /^[1-9A-HJ-NP-Za-km-z]+$/;
@@ -41,9 +43,14 @@ function _coreCount() {
return Math.max(1, Math.min(navigator.hardwareConcurrency || 4, 8));
}
-function _estimateSeconds(prefixLen) {
- if (prefixLen <= 0) return 0;
- const attempts = Math.pow(58, prefixLen);
+// Estimate from the exact Base58 distribution, not 58^length. The leading
+// character is not uniform (a 44-digit encoding can only start with one of the
+// first 17 symbols), so two prefixes of the same length can differ 58x in cost:
+// quoting "Agent" and "zebra" as the same wait is simply wrong.
+function _estimateSeconds(prefix) {
+ if (!prefix || !prefix.length) return 0;
+ const attempts = expectedAttempts(prefix, '', false);
+ if (!Number.isFinite(attempts)) return Infinity;
return attempts / (RATE_PER_CORE * _coreCount());
}
@@ -180,7 +187,7 @@ export function openVanityModal({ agentName = '', initial = '' } = {}) {
<div class="vm-chips" aria-label="Suggested prefixes">
${suggestions.map((s) => `
<button class="vm-chip" data-prefix="${_esc(s)}" type="button">
- ${_esc(s)}<span class="vm-chip-est">${_formatTime(_estimateSeconds(s.length))}</span>
+ ${_esc(s)}<span class="vm-chip-est">${_formatTime(_estimateSeconds(s))}</span>
</button>`).join('')}
</div>
@@ -305,7 +312,7 @@ export function openVanityModal({ agentName = '', initial = '' } = {}) {
}
const sample = _previewSuffix(raw);
preview.innerHTML = `<span class="pfx">${_esc(raw)}</span><span class="rest">${_esc(sample.slice(raw.length))}</span>`;
- estEl.textContent = `est. ${_formatTime(_estimateSeconds(raw.length))} on ${_coreCount()} cores`;
+ estEl.textContent = `est. ${_formatTime(_estimateSeconds(raw))} on ${_coreCount()} cores`;
tierEl.innerHTML = raw.length >= FREE_THRESHOLD
? `<span class="vm-paid">✦ Paid plan</span>`
: `<span style="color:#1b5e20;font-weight:600">Free</span>`;
diff --git a/src/solana/vanity/validation.js b/src/solana/vanity/validation.js
index 1a4d420ba..bc688485a 100644
--- a/src/solana/vanity/validation.js
+++ b/src/solana/vanity/validation.js
@@ -53,7 +53,14 @@ export function validatePattern(pattern) {
}
/**
- * Estimate expected attempts to find a Base58 prefix of the given length.
+ * Order-of-magnitude cost of an `n`-character pattern, for UI ladders that
+ * describe difficulty by length alone ("3 chars, seconds; 5 chars, hours").
+ *
+ * NOT the difficulty model. It ignores which characters were chosen, and the
+ * leading one alone swings the true cost by 58x, so anything that quotes,
+ * prices, attests or gates on difficulty must call `expectedAttempts` with the
+ * actual pattern instead.
+ *
* @param {number} length
* @returns {number}
*/