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(wallet): try short and whitespace-trimmed candidates when recovering sealed wallets

nirholas3947116cd24a
diff --git a/scripts/recover-sealed-wallets.mjs b/scripts/recover-sealed-wallets.mjs
index 5d3680847..e836484f2 100644
--- a/scripts/recover-sealed-wallets.mjs
+++ b/scripts/recover-sealed-wallets.mjs
@@ -90,7 +90,11 @@ async function addressOf(kind, plaintext) {
function readCandidates() {
if (process.stdin.isTTY) return [];
- return [...new Set(readFileSync(0, 'utf8').split('\n').map((l) => l.replace(/\r$/, '')).filter((l) => l.trim().length >= 16))];
+ // Each line is tried exactly as given and trimmed: a pasted value often carries
+ // stray whitespace, and the JWT_SECRET fallback that sealed some wallets had no
+ // minimum length, so short candidates are kept.
+ const lines = readFileSync(0, 'utf8').split('\n').map((l) => l.replace(/\r$/, ''));
+ return [...new Set(lines.flatMap((l) => [l, l.trim()]).filter((l) => l.trim().length > 0))];
}
async function sealedRecords() {