This folder owns the standalone recovery/watchtower API service.
store.ts
LevelDB-backed lookup storage, quota enforcement, receipt signing, and action receipts.http.ts
HTTP handlers for appointment, restore, receipt, complaint, sweep, and action receipt endpoints.action.ts
Delayed last-resort sweep engine. Reads last-resort appointments, watches dispute
state, and submits tower-only counter-disputes in the final rescue window.standalone-server.ts
Bun server entrypoint. Equivalent in spirit to core/network/relay/standalone-server.ts.
Publishes towerId, signerAddress, and quota limits on / and /healthz
so wallets can bind delayed authorizations to the exact tower address. Last-resort
remedy payloads are encrypted to the account watchSeed and can only be opened
after DisputeStarted reveals that seed on-chain. Health also
exposes persisted lookup / last-resort appointment / action-receipt counts so
operators can verify restart persistence cheaply.frontend/src/lib/stores/vault/vaultStore.tsbun run watchtowerThis service is intentionally not part of core/api/server/index.ts.
Runtime correctness stays in core/storage/consensus. Watchtower is cheap
operator infrastructure layered on top.
Current boundary: