aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-14 23:01:03 -0700
committerAdam Soltys <[email protected]>2026-06-14 23:01:03 -0700
commitc5443946031ec32a7b3008fa751eb7916654a9f6 (patch)
tree372e8d0ccaa2dec58a6bcaaa19d3902b80eb4396 /package.json
parent683927e4132651b9198e5421fae16e9c60978fbc (diff)
downloadcoinosv3-c5443946031ec32a7b3008fa751eb7916654a9f6.tar.gz
coinosv3-c5443946031ec32a7b3008fa751eb7916654a9f6.zip
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) <[email protected]>
Diffstat (limited to 'package.json')
-rw-r--r--package.json59
1 files changed, 19 insertions, 40 deletions
diff --git a/package.json b/package.json
index e31f2fc..9e38e24 100644
--- a/package.json
+++ b/package.json
@@ -1,42 +1,21 @@
{
- "name": "cold2",
- "private": true,
- "version": "0.0.1",
- "type": "module",
- "scripts": {
- "dev": "vite dev",
- "build": "vite build",
- "preview": "vite preview",
- "prepare": "svelte-kit sync || echo ''",
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
- "format": "prettier --write .",
- "lint": "prettier --check ."
- },
- "devDependencies": {
- "@sveltejs/adapter-auto": "^6.0.0",
- "@sveltejs/kit": "^2.22.0",
- "@sveltejs/vite-plugin-svelte": "^6.0.0",
- "@tailwindcss/forms": "^0.5.9",
- "@tailwindcss/typography": "^0.5.15",
- "@tailwindcss/vite": "^4.0.0",
- "prettier": "^3.4.2",
- "prettier-plugin-svelte": "^3.3.3",
- "prettier-plugin-tailwindcss": "^0.6.11",
- "svelte": "^5.0.0",
- "svelte-check": "^4.0.0",
- "tailwindcss": "^4.0.0",
- "typescript": "^5.0.0",
- "vite": "^7.0.4"
- },
- "dependencies": {
- "@iconify/iconify": "^3.1.1",
- "@scure/base": "^1.2.6",
- "@scure/bip32": "^1.7.0",
- "@scure/bip39": "^1.6.0",
- "@scure/btc-signer": "^1.8.1",
- "@sveltejs/adapter-static": "^3.0.8",
- "daisyui": "^5.0.46",
- "iconify-icon": "^3.0.0"
- }
+ "name": "bitcoin-wallet",
+ "private": true,
+ "version": "0.1.0",
+ "type": "module",
+ "description": "Offline-capable, single-file BIP84 HD Bitcoin wallet for the browser",
+ "scripts": {
+ "dev": "bun run dev.js",
+ "build": "bun run build.js"
+ },
+ "dependencies": {
+ "@scure/base": "^1.2.6",
+ "@scure/bip32": "^1.7.0",
+ "@scure/bip39": "^1.6.0",
+ "@scure/btc-signer": "^1.8.1",
+ "qrcode-generator": "^2.0.4"
+ },
+ "devDependencies": {
+ "puppeteer-core": "^25.1.0"
+ }
}