From c5443946031ec32a7b3008fa751eb7916654a9f6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 14 Jun 2026 23:01:03 -0700 Subject: Rebuild as single-file offline BIP84 wallet Replace the SvelteKit/daisyUI prototype with a vanilla JS + hand-rolled CSS app that Bun bundles (code + scure/noble crypto + QR + CSS) into one self-contained dist/index.html runnable offline from file://. Wallet core (src/wallet.js): - BIP84 native-segwit HD wallet from BIP39 seed (+optional passphrase) - gap-limit scan of receive/change chains, aggregate balance, tx history - fresh receive/change addresses; signs with witnessUtxo only (enables offline signing with no prev-tx fetch) - coin selection + fee estimation via btc-signer selectUTXO; send-max; manual coin control - offline JSON snapshot export/import (keyless) + signed-tx hex/QR export - realtime mempool.space WebSocket: track-addresses -> debounced auto refresh of balances/history (no polling); live status badge UI (src/app.js): clean light paper-wallet; create (with optional, skippable backup verification) / import flow; receive (QR) / send / history / coins / tools tabs; clickable logo returns home. API (src/api.js): mempool.space wrapper with retry/backoff for scan-burst rate limiting; single network choke-point for offline enforcement. Verified: BIP84 spec vectors, build/sign/parse for auto/max/manual flows, snapshot roundtrip, live scan + WebSocket, headless-Chrome UI smoke tests. Co-Authored-By: Claude Opus 4.8 (1M context) --- static/bg.png | Bin 182111 -> 0 bytes static/bg.webp | Bin 27804 -> 0 bytes static/bitcoin.svg | 7 ------- static/favicon.svg | 1 - static/random.svg | 6 ------ 5 files changed, 14 deletions(-) delete mode 100644 static/bg.png delete mode 100644 static/bg.webp delete mode 100644 static/bitcoin.svg delete mode 100644 static/favicon.svg delete mode 100644 static/random.svg (limited to 'static') diff --git a/static/bg.png b/static/bg.png deleted file mode 100644 index f542416..0000000 Binary files a/static/bg.png and /dev/null differ diff --git a/static/bg.webp b/static/bg.webp deleted file mode 100644 index 290cb41..0000000 Binary files a/static/bg.webp and /dev/null differ diff --git a/static/bitcoin.svg b/static/bitcoin.svg deleted file mode 100644 index 04079be..0000000 --- a/static/bitcoin.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/static/favicon.svg b/static/favicon.svg deleted file mode 100644 index cc5dc66..0000000 --- a/static/favicon.svg +++ /dev/null @@ -1 +0,0 @@ -svelte-logo \ No newline at end of file diff --git a/static/random.svg b/static/random.svg deleted file mode 100644 index f3e5923..0000000 --- a/static/random.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - -perspective-dice-random - - \ No newline at end of file -- cgit v1.2.3