From befa01bc9b2c144c020b403429db20bc5278db93 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 4 Dec 2026 13:18:47 -0700 Subject: Spending moves to ark2.coinos.io by itself: coins on the retired server go across through coinos's migrator. ark.coinos.io's server key was stolen in the 2026-12-04 breach, so coinos stood up ark2.coinos.io with a fresh key. The "coinos" preset now points there (same id, so everyone on coinos follows), and the old server stays as a hidden, retiring preset whose successor is "coinos" and whose migrator is migrate.coinos.io. After connecting, a wallet that still holds spendable coins on the old server opens that wallet (same seed, same keys), asks the migrator for a deposit address naming its own ark2 address, and sends everything there in batches of the largest coins (at most 48 per payment, as the old server can't run consolidation rounds). The migrator pays the same amount on ark2; a toast says it arrived. Coins at the exit-depth cap stay behind. arkWanted() also counts coins waiting on a retiring server, so a wallet whose coins are all there still connects. src/ark/migrate.js holds the logic apart from the UI. ArkManager gains freshAddress()/_addressFor(i): an address on a key of its own, mailbox id blinded with that key (what the migrator hands out per migration). Tested end to end on regtest against two captaind 0.8.0-coinos servers and the real migrator (coinosv3-server migrator/e2e-test.js: 19 checks, incl. batching, caps and restart-safety). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar --- src/api.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index 7f22e78..4759c7c 100644 --- a/src/api.js +++ b/src/api.js @@ -232,7 +232,13 @@ export function getBoltzWs() { const p = getBoltzProvider(); return p.ws || deri const ARK_PRESETS_BY_NET = { mainnet: [ { id: 'off', label: 'Off', ark: '', esplora: '' }, - { id: 'coinos', label: 'coinos (ark.coinos.io)', ark: 'https://ark.coinos.io', esplora: 'https://mempool.space/api', honorsExpired: true }, + // ark2.coinos.io took over on 2026-12-04: the first server's key was + // stolen. Same preset id, so everyone on "coinos" follows; ark state is + // kept per server URL, so the old coins stay under the old URL until the + // wallet moves them (src/ark/migrate.js through the migrator). + { id: 'coinos', label: 'coinos (ark2.coinos.io)', ark: 'https://ark2.coinos.io', esplora: 'https://mempool.space/api', honorsExpired: true }, + { id: 'coinos-retired', label: 'coinos, retired (ark.coinos.io)', ark: 'https://ark.coinos.io', esplora: 'https://mempool.space/api', honorsExpired: true, + hidden: true, retiring: true, successor: 'coinos', migrator: 'https://migrate.coinos.io/migrate' }, { id: 'second', label: 'Second (ark.second.tech)', ark: 'https://ark.second.tech', esplora: 'https://mempool.second.tech/api' }, { id: 'custom', label: 'Custom…', ark: '', esplora: '' }, ], -- cgit v1.2.3