Theseus Navigator — Silent Mode's Electron browser with the Ariadne resolver built in.
Second half of the Theseus-lag investigation. 0.27.1 removed the 7.4 MB store; this removes the two things that produced it and the latency that came with it. Measured on this profile's own cache: 6,981 transactions, 7.38 MB, and one consolidation with 400 inputs (median 2). - loadHistory() awaited getTx() per displayed transaction and then again per INPUT, strictly one at a time. The 400-input row alone cost 400 serial round trips. Both waves are now prefetched with bounded parallelism (getTxMany, 12 at a time). Against a simulated 10 ms link the same 473 fetches take 771 ms instead of ~4,730 ms; on a real 30-50 ms link the serial version was 15-25 seconds per refresh, per wallet. - Parent transactions were persisted forever. They exist only to compute a delta for the 25 rows on screen, and keeping every one ever seen is what grew the file. Only the displayed window is written now — 25 entries, 16.4 KB in the harness — while parents stay in a process-lifetime map bounded at 20,000, seeded from the window so a restart does not refetch what is already visible. A second refresh issues zero fetches. TX_CACHE_VERSION 4 discards v3 caches. The v3 cap of 400 was also exactly the wrong number for this data: a 400-input transaction needs 401 entries, so it would have evicted and refetched on every single refresh. |
||
|---|---|---|
| bundled-addons | ||
| dev | ||
| docs | ||
| lib | ||
| nsis | ||
| scripts | ||
| snapshots | ||
| addon-inject-preload.js | ||
| addon-tab-preload.js | ||
| addon-update-pubkeys.js | ||
| addon-updater.js | ||
| addons-host.js | ||
| address-picker-preload.js | ||
| address-picker.html | ||
| approval-preload.js | ||
| approval.html | ||
| bcnr-origin.js | ||
| bcnr-preload.js | ||
| BROWSER-PROMPT.md | ||
| chrome.html | ||
| collision-preload.js | ||
| collision.html | ||
| DESIGN-integrated-wallet.md | ||
| DESIGN-password-manager.md | ||
| DESIGN-wallet-multi-account-amendment.md | ||
| downloads-preload.js | ||
| downloads.html | ||
| engine-picker-preload.js | ||
| engine-picker.html | ||
| error-preload.js | ||
| error.html | ||
| GOTCHAS.md | ||
| home-preload.js | ||
| home.html | ||
| link-status-preload.js | ||
| link-status.html | ||
| main.js | ||
| messages-preload.js | ||
| messages.html | ||
| package-lock.json | ||
| package.json | ||
| PACKAGING-PROMPT.md | ||
| PENDING.md | ||
| popover-preload.js | ||
| popover.html | ||
| preload.js | ||
| pw-fill-preload.js | ||
| pw-fill.html | ||
| README.md | ||
| RELEASE-HANDOFF.md | ||
| ROADMAP-identity-wallet.md | ||
| SESSION-PROMPT-identity-wallet.md | ||
| settings-preload.js | ||
| settings.html | ||
| sidebar-preload.js | ||
| test-installer.wsb | ||
Theseus Navigator
The browser — the consumer face of the stack. Native .bch support with the
resolver built in, so a user installs one app instead of modifying their
operating system. Named for the thread through the labyrinth: the chain is the
thread.
Scope
- Electron shell (Chromium engine, no forking): tabs, address bar, history.
- In-process
.bchresolution — no system daemon, no NRPT, no OS trust-store changes; reusesbns.jsfrom the BNS repo as a library. - Record handling:
hrender,ipconnect,p/s3via in-app gateway,uredirect. - TLS via cert-verify hook (Electron
setCertificateVerifyProc) against the BNS root / on-chaintlsfingerprints — no OS store touched. - Provenance indicator: shows whether a page came from the chain / Sia / a direct server, with NFT category and record type — the decentralized padlock.
Status: not started
Build it in its own session/repo. The ready-to-paste brief is
BROWSER-PROMPT.md (a reference copy in this folder; canonical source is
D:\Dev\NameCoin\BROWSER-PROMPT.md — if they diverge, NameCoin wins). It points
here and reuses the resolver core. theseus.bch is registered and should
eventually serve the browser's own homepage over the protocol it implements.
Roadmap
BUILD-ROADMAP.md Stage 5.