Skip to content

Second pass: verifier caps, key blinding, BBQr limits, watchtower resilience, a11y - #5

Merged
Random21m merged 1 commit into
mainfrom
polish/second-pass
Dec 1, 2026
Merged

Random21m merged 1 commit into
mainfrom
polish/second-pass

Conversation

@Random21m

Copy link
Copy Markdown
Owner

Summary

Follow-up to #4 covering the remaining review findings.

  • Verifier/builder: fee caps (unvault, clawback, funding), restricted funding outputs, version/sequence checks on panic audits, unvault PSBT witnessUtxo check, 6-block delay floor, strict key-origin validation, nonWitnessUtxo cross-check, change-fee edge case, warnings for dropped clawback tiers or an assumed funding script
  • Crypto: blinded fixed-length scalar multiplication for secrets (a mitigation, not a constant-time guarantee: BigInt is not constant-time), Fermat nonce inverse, wiping of RFC 6979 and keygen intermediates, bounds-checked readers, safe-integer amounts, stricter bech32 and xpub parsing
  • BBQr: streaming 10 MB decompression cap, PSBT magic check against mixed frames
  • Watchtower: per-slot error handling with a stale marker, alerts only on state change, fail-closed custom endpoint, no-referrer fetches, import-collision guard, cron script that alerts once per change
  • Service worker: 4 s network timeout, shell-only cache refresh, static allowlist
  • UI: label associations, tab and modal ARIA with focus handling, 16px inputs on mobile, safe-area insets, scrollable modals, honest key-wipe wording, no DOM-serialized download fallback
  • Docs/build: up to 4 tiers, honest timestamp verification instructions, opt-in icon regeneration, build asserts

18 tests pass; both builds load in headless Chromium and the simulator flow completes with no console errors.

Not done

  • CI action tags are not pinned to commit SHAs (could not be resolved here; Dependabot is configured)
  • SHA256SUMS.txt.ots still attests the old checksum file; README now says how to verify it at commit 69b9035. A new stamp needs the ots tool
  • Maskable icon, the 150-request xpub scan backoff and hardware-wallet compatibility of the unvault PSBT were not addressed

Generated by Claude Code

…atchtower resilience, a11y

- Verifier: cap unvault/clawback/funding fees, restrict funding outputs, check version/sequence on panic audits, check unvault PSBT witnessUtxo
- Builder: 6-block delay floor, strict key-origin validation, nonWitnessUtxo cross-check, change-fee edge case, tier warnings
- Crypto: blinded fixed-length scalar multiplication for secrets, Fermat nonce inverse, wipe RFC6979/keygen intermediates, bounds-checked readers, safe-integer amounts, stricter bech32/xpub parsing
- BBQr: streaming 10 MB decompression cap, PSBT magic check against mixed frames
- Watchtower: per-slot error handling, state-change-only alerts, fail-closed custom endpoint, no-referrer fetches, import collision guard
- SW: bounded network timeout, shell-only cache refresh, static allowlist
- UI: labels, tab/modal ARIA and focus handling, 16px inputs on mobile, safe-area, scrollable modals, honest wipe wording
- Docs/build: up to 4 tiers, honest timestamp verification, opt-in icon regeneration, asserts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VMwR7cfdwNhHkSrfwtnHf
@Random21m
Random21m marked this pull request as ready for review December 1, 2026 17:46
@Random21m
Random21m merged commit 2239818 into main Dec 1, 2026
1 check passed
@Random21m
Random21m deleted the polish/second-pass branch December 1, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants