diff options
| author | Adam Soltys <[email protected]> | 2026-06-28 03:21:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-28 03:21:07 -0700 |
| commit | 935adfe4a28cedd17f97ea3a6be7ccbafe6c7cec (patch) | |
| tree | b4618b068e379e7feedd80b2a623433ed240018e /src/app.js | |
| parent | e8edfd88b14ad07f5f97f5cb1d5d603d825a413d (diff) | |
| download | coinosv3-935adfe4a28cedd17f97ea3a6be7ccbafe6c7cec.tar.gz coinosv3-935adfe4a28cedd17f97ea3a6be7ccbafe6c7cec.zip | |
Run silent-payment scanning in a Web Worker
The EC crypto (candidate derivation + full scan) now runs in a worker, off the
main thread, so even a large mainnet scan can't jank the UI at all. The worker is
bundled separately and embedded as base64 (single-file app), spawned from a Blob
URL; it holds the keys + per-tweak cache. If workers are unavailable or the bundle
is missing, scanning falls back to the main thread (still cached + yielding).
scanSilentPayments / _scanSpItems / _scanSpMempool now go through _spHitBlocks and
_spScanItems, which dispatch to the worker (or the fallback). +27KB to index.html
for the worker's crypto bundle.
Verified via CDP: worker runs keys/candidates/scan correctly in-browser; a real
reload + mainnet scan threw 0 exceptions and the SP address renders.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/app.js')
0 files changed, 0 insertions, 0 deletions
