From b155c0fcd69f0c2f51c2b7a81a7fc0abdd9a19b9 Mon Sep 17 00:00:00 2001 From: clawbot Date: Tue, 11 Aug 2026 15:31:50 +0200 Subject: [PATCH] fix: enforce the base58 checksum and reject non-master extended keys (closes #210) --- TODO.md | 4 + src/popup/index.html | 4 +- src/popup/views/addWallet.js | 16 +++- src/shared/wallet.js | 86 +++++++++++++++---- tests/wallet.test.js | 158 ++++++++++++++++++++++++++++++++--- 5 files changed, 238 insertions(+), 30 deletions(-) diff --git a/TODO.md b/TODO.md index 8b17986..985e5b6 100644 --- a/TODO.md +++ b/TODO.md @@ -57,6 +57,10 @@ undefined identifiers, which is how from the wallet row in Settings, wiped on leaving the screen and excluded from the views the popup can reopen onto ([#161](https://git.eeqj.de/sneak/AutistMask/issues/161)). +- 2026-08-11: Extended-key import hardened — the base58 checksum is now enforced + on every xprv and xpub, and a non-master key is refused with an explanation + instead of being derived beneath + ([#210](https://git.eeqj.de/sneak/AutistMask/issues/210)). - 2026-08-11: Policy compliance sweep — conditional verbose test rerun, local Tailwind binary instead of `npx`, `--frozen-lockfile` on `make install`, and the Makefile-only targets documented in the README diff --git a/src/popup/index.html b/src/popup/index.html index 361e864..b40e098 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -136,7 +136,9 @@