From 888136f23857ceb64cbde5a0598a34f59e7bb008 Mon Sep 17 00:00:00 2001
From: Claude
SegWit v0 P2WSH · BIP-68 CSV · BIP-174 PSBT · BIP-380 Miniscript · BBQr Airgap · OpenTimestamps · Zero Custody
@@ -143,13 +143,15 @@ Audit any Vault Package completely offline (re-verifying every script hash, BIP-
[`clawback.html`](clawback.html) is a **single, completely self-contained ≈539 KB HTML file** with all cryptography, PSBT codecs, QR encoder/decoder, and UI inlined—zero external CDNs, zero telemetry.
```bash
-# 1. Download clawback.html, SHA256SUMS.txt, and its OpenTimestamps proof
+# 1. Download clawback.html and the current build checksums, then verify integrity
curl -LO https://raw.githubusercontent.com/Random21m/clawback/main/clawback.html
curl -LO https://raw.githubusercontent.com/Random21m/clawback/main/SHA256SUMS.txt
-curl -LO https://raw.githubusercontent.com/Random21m/clawback/main/SHA256SUMS.txt.ots
-
-# 2. Verify cryptographic integrity & Bitcoin timestamp proof
sha256sum -c --ignore-missing SHA256SUMS.txt
+
+# 2. (Optional) Verify the v1.0 release's Bitcoin timestamp proof, kept in its own folder
+mkdir -p v1.0 && cd v1.0
+curl -LO https://raw.githubusercontent.com/Random21m/clawback/main/release-proofs/v1.0/SHA256SUMS.txt
+curl -LO https://raw.githubusercontent.com/Random21m/clawback/main/release-proofs/v1.0/SHA256SUMS.txt.ots
ots verify SHA256SUMS.txt.ots # (or verify online at https://opentimestamps.org)
```
@@ -200,7 +202,7 @@ Clawback's transaction engine has been verified against both our strict consensu
* **[`TUTORIAL.md`](TUTORIAL.md)** — **The Complete 12-Chapter Engineering & Operations Manual**: Deep dive into the July 2026 Coldcard incident, full script execution traces, airgapped Tails setup, step-by-step Signet rehearsal, Coldcard + SeedSigner production setup, Umbrel/Start9 Watchtower configuration, 60-second Emergency Clawback Playbook, Sparrow/Bitcoin Core disaster recovery, and full threat model matrix.
* **[`SECURITY.md`](SECURITY.md)** — Core operational invariants and safety rules.
-* **[`SHA256SUMS.txt`](SHA256SUMS.txt)** & **[`SHA256SUMS.txt.ots`](SHA256SUMS.txt.ots)** — Reproducible build hashes + Bitcoin OpenTimestamps proof.
+* **[`SHA256SUMS.txt`](SHA256SUMS.txt)** — Reproducible build hashes. **[`release-proofs/v1.0/`](release-proofs/v1.0/)** — the v1.0 checksums with their Bitcoin OpenTimestamps proof.
---
diff --git a/SHA256SUMS.txt b/SHA256SUMS.txt
index bcca48e..240b4b4 100644
--- a/SHA256SUMS.txt
+++ b/SHA256SUMS.txt
@@ -1,4 +1,4 @@
-30ae80944a6de5672d896466f6644fb7e91ca0cafdcb36e76f0d81579cee70cc clawback.html
-9370eb86a94de6d39b041daa9bf501319c8441890903e75e14de54f84b23ab41 index.html
-b1a3be025e82e661f659c54a85e048ac7fc5db049163d434defe8bbf879ebeb6 sw.js
-fa0318c50581e62ac668c861532aa17ea8c620b6cb62e257bf2e262b638f1e53 manifest.webmanifest
+5b0fef270ce36f5cb720f77621773dae03835a0ee6ecd8aafe5e22458bdb44ce clawback.html
+171ebf82767bcf27e5a14f5080636a7359b610265b2f98c01b696b0d0fef5d10 index.html
+5f5a42775e2f68f91a43331c39ab81086c992b182335ab9d5372cd678edd2ae6 sw.js
+c9fcf82f9f7e980a5fb67ef7cd68db644911d72cf745851a004f98d6516138a1 manifest.webmanifest
diff --git a/assets/icon-maskable-512.png b/assets/icon-maskable-512.png
new file mode 100644
index 0000000000000000000000000000000000000000..b5907945cccf755beadf2f44fd49de895468051a
GIT binary patch
literal 27663
zcmd42Ob*S?vMEQNxV!`624wn!i@+|>pl1>8E3f)q7c^LyYV>b`_aUQug|_otaTz&=&8sx
zZcbzPOXb|+8ik%fs(TM9vn0+=kPqbID);}1&{)Ea&E?4W{mrtrl~nBIJ1Is0k7Cvi
zfmGE*TI_V%Mc`(%PDboCvr5yj8#a$3no>sGh}6ePOV4R|(5F={uf4118eWrqH{=-=#2;b9nCBMFQm3
z$4ttD-eCWspIu$}^5T~eS~g4J?%=?hG4aeUG}Ne<^=!=I2fYT3>%X!tBR7+iJJ+E1
zzkS*y%RlRu6Ycs6tEGN+=L*%)mfaK05e4U%P5Zr;;kt-YFW}$4!U>htB6p^BIv(fz
z#+Sj__vP#~Mn|m
S;pdN7E#q
zz)@Zr%ljAyvzH9!(Ii?y0dP}GbYL6R2-ANw4%`f)EK=0cEf0j7Vspexy8oAS`xnog
zqnY7)s8=TLA`poqJ3}y
Support Clawback
}
}
- async function apiGetJson(url, retries = 1) {
+ async function apiGetJson(url, retries = 3) {
for (let attempt = 0; attempt <= retries; attempt++) {
const res = await fetchWithTimeout(url, { method: "GET" });
if ((res.status === 429 || res.status >= 500) && attempt < retries) {
- await new Promise((r) => setTimeout(r, 600 * (attempt + 1)));
+ // Exponential backoff, honouring Retry-After (seconds) when the server sends it, capped at 10 s
+ const ra = Number(res.headers && res.headers.get && res.headers.get("retry-after"));
+ const wait = Number.isFinite(ra) && ra > 0 ? ra * 1000 : 600 * Math.pow(2, attempt);
+ await new Promise((r) => setTimeout(r, Math.min(wait, 10000)));
continue;
}
const body = await res.text().catch(() => "");
diff --git a/manifest.webmanifest b/manifest.webmanifest
index fe8be27..46f25f7 100644
--- a/manifest.webmanifest
+++ b/manifest.webmanifest
@@ -20,6 +20,12 @@
"type": "image/png",
"purpose": "any"
},
+ {
+ "src": "assets/icon-maskable-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
{
"src": "assets/apple-touch-icon.png?v=2",
"sizes": "180x180",
diff --git a/release-proofs/v1.0/SHA256SUMS.txt b/release-proofs/v1.0/SHA256SUMS.txt
new file mode 100644
index 0000000..b80dda1
--- /dev/null
+++ b/release-proofs/v1.0/SHA256SUMS.txt
@@ -0,0 +1,4 @@
+3b0a5dd8d41a8abe7ca7cf35bb5ab4c5c90364bd3c5f123708e6088a687c7607 clawback.html
+0fd1cd3e152bfe1808b045d2544ec35216c464df6e72439ef9e3be7457f3b99b index.html
+2d4644df6a41a9afdf48dd4dc93263c2c945cb82fd2ba561ac70e4b971a5c32f sw.js
+c98a5d9112489acd8d72a90b9227883d757384ecc971b75f877becd3417fcbf9 manifest.webmanifest
diff --git a/SHA256SUMS.txt.ots b/release-proofs/v1.0/SHA256SUMS.txt.ots
similarity index 100%
rename from SHA256SUMS.txt.ots
rename to release-proofs/v1.0/SHA256SUMS.txt.ots
diff --git a/src/watchtower.js b/src/watchtower.js
index 6ad664f..dec1987 100644
--- a/src/watchtower.js
+++ b/src/watchtower.js
@@ -55,11 +55,14 @@
}
}
- async function apiGetJson(url, retries = 1) {
+ async function apiGetJson(url, retries = 3) {
for (let attempt = 0; attempt <= retries; attempt++) {
const res = await fetchWithTimeout(url, { method: "GET" });
if ((res.status === 429 || res.status >= 500) && attempt < retries) {
- await new Promise((r) => setTimeout(r, 600 * (attempt + 1)));
+ // Exponential backoff, honouring Retry-After (seconds) when the server sends it, capped at 10 s
+ const ra = Number(res.headers && res.headers.get && res.headers.get("retry-after"));
+ const wait = Number.isFinite(ra) && ra > 0 ? ra * 1000 : 600 * Math.pow(2, attempt);
+ await new Promise((r) => setTimeout(r, Math.min(wait, 10000)));
continue;
}
const body = await res.text().catch(() => "");
diff --git a/sw.js b/sw.js
index 0970144..08afb76 100644
--- a/sw.js
+++ b/sw.js
@@ -1,10 +1,11 @@
-const CACHE_NAME = "clawback-pwa-ea2f9cb4";
+const CACHE_NAME = "clawback-pwa-e3e6b7b2";
const STATIC_ASSETS = [
"./manifest.webmanifest",
"./assets/logo.svg",
"./assets/icon-32.png",
"./assets/icon-192.png",
"./assets/icon-512.png",
+ "./assets/icon-maskable-512.png",
"./assets/apple-touch-icon.png",
];
const PRECACHE = ["./", "./index.html", ...STATIC_ASSETS];