Architecture & threat model · 12 Oct 2026

Security, with the
boundaries visible.

Follow a wallet key from creation to a Ranger trade. See what stays private, what crosses a boundary, and where trust remains.

01Encrypted in storage

The service stores ciphertext, not your wallet key.

02Keys live in workers

Normal creation and connection keep the key out of page code.

03The page still matters

A hostile page can request trades that the worker permits.

Built for small trading balances. For larger holdings, consider an external or hardware wallet. These boundaries reduce exposure; they do not define a safe dollar amount.

01 / Key locations

Two sites. Two workers. One selected key.

A browser worker has its own JavaScript memory. It shares its site's origin and still trusts the code delivered by that site.

At the moment of handoffThe selected EOA key briefly exists in both workers.
Plaintext key in worker memoryEncrypted dataTrust or exposure to review
Your browserSeparate memory ≠ hardware isolation
wallet.thetanuts.finance
Page / interface

Wallet page

Labels, addresses and controls.

Passkey secret briefly crosses its bridge
Commands & public results Separate JavaScript memory
Dedicated browser worker

Wallet worker

Decrypted vault + wallet keys

Generates, encrypts and verifies saved keys. Encrypts one selected key for Ranger.

Encrypted handoffSelected key + signed grantDirect channel between workers
ranger.thetanuts.finance
Page / interface

Ranger page

Address, transaction review and hashes.

Can request permitted transactions
Commands & public results Separate JavaScript memory
Dedicated browser worker

Ranger worker

Selected EOA key

Verifies the grant and address. Enforces transaction rules, signs and broadcasts.

Wallet worker ↔ serviceEncrypted vault data · signed grant
Service → Ranger workerVerification key fetched directly over HTTPS
Remote infrastructure

Wallet service

Stores encrypted vaults and credential associations. Signs connection grants. Sees public connection details, including the selected address.

No plaintext wallet keys or unlock secret

The pages set up the channel; the encrypted key package travels between workers. A signed grant binds a connection. It does not prove that the recipient runs trustworthy code.

Four different secrets — four different roles
EOA private key
Controls the on-chain wallet. Plaintext exists in unlocked worker memory. The key is exportable; worker isolation does not change its on-chain authority.
Vault encryption key
Protects the stored keyring. Stays with the wallet worker during normal use. Ranger receives neither this key nor the wallet-service login token.
Passkey unlock secret
The WebAuthn PRF output helps unwrap the vault key. It briefly crosses a captured wallet-page bridge before reaching the worker. The service does not receive it.
Temporary transport key
Ranger's non-extractable P-256 ECDH private key decrypts the handoff. This protects transport; it does not make the EOA key non-exportable.
02 / Connection flow

From passkey to a trading session

Unlock your remembered vault with a biometric or PIN, then approve Ranger. Your wallet address stays the same.

The five steps behind “Unlock wallet”
  1. 1

    Prepare

    Ranger's worker creates a temporary recipient key pair. The wallet window opens.

  2. 2

    Unlock

    Your passkey provides the unlock secret. The wallet worker decrypts the vault.

  3. 3

    Approve

    You choose Continue to Ranger. The service signs a grant bound to this connection.

  4. 4

    Transfer

    The selected key travels encrypted. Ranger's worker checks the grant and wallet address.

  5. 5

    Trade

    The popup locks and closes. Ranger holds the key in worker memory for this session.

Review this boundaryThe passkey API still runs through the page
Device authenticationBiometric / PIN
Captured page bridgeBrief PRF exposure
Wallet workerDecrypt the vault

The biometric itself does not reach the page. The passkey-derived unlock secret does. An extension that hooks WebAuthn before bootstrap may capture it.

Grant checks, encryption and approved sites

The encrypted handoff accepts https://ranger.thetanuts.finance and the opt-in Odette pilot at https://odette.fi. Each receiver requires a grant for its own exact origin. The diagrams above show Ranger. It checks the exact origin, actual opener, fresh connection ID and recipient key. Visiting another site grants no access. Adding a site requires a reviewed code change; there is no open-ended “send me your key” API.

The grant binds the recipient key, both site origins, selected address, vault revision and expiry. ECDH and HKDF-SHA-256 derive the AES-GCM package key. ECDSA P-256 authenticates the grant. Ranger verifies the connection and the address derived from the decrypted EOA key.

The verification key is fetched from the fixed wallet service over HTTPS. The allowlist and signature identify the connection; they do not attest the code or remove trust in hosting. See the integration notes for implementation details.

03 / Attack paths

Key theft and trade abuse are different risks.

These examples assume the genuine workers have started, unless the card says otherwise. “Cannot directly read” is a memory boundary, not a promise that the page is safe.

Generic storage scraper

Looks for a saved private key

Injected scriptBrowser storageNo new plaintext key to copy

Normal creation stores no plaintext key in browser storage. Scraping page variables does not directly read an existing worker's memory.

Exception: an old browser-wallet copy remains exposed until separately removed.

Page injection after startup

Uses the wallet without stealing it

Hostile page codeAllowed worker commandsPermitted trades remain possible

The script cannot directly read the worker's existing key. It can request supported operations and falsify the page's confirmation.

Limit: worker budgets constrain this path. The confirmation is not an independent trusted display.

Extension before startup

Intercepts the unlock path

Early privileged injectionWebAuthn hook / replacement workerSecrets can be exposed

Depending on its permissions and timing, an extension can capture the PRF output or replace the worker before the genuine bootstrap runs.

Limit: CSP helps reduce injection. It does not stop every extension, bookmarklet or DevTools action.

Shared dependency

The sites must deliver trustworthy code.

Site / hosting / Cloudflare compromiseChanged page or worker on loadKey theft or transaction abuse

Fetching a verification key from the same platform does not protect against a malicious deployment. This design targets common scraping and page-injection exposure; it does not solve compromised code delivery.

Remaining limits and explicit exposure paths
  • Import and recovery export. These deliberately put plaintext keys on the page. Export requires a fresh passkey check for the selected wallet. A hostile page can attempt to trick you into approving that prompt; authentication is not proof of informed intent.
  • Memory erasure. Locking releases key references, stops the relevant worker or signer, and cancels pending work. JavaScript cannot guarantee that every memory copy is erased.
  • Old browser copies. Migration keeps the original until you choose Remove old browser copy. Removal requires a recent verified save, a separate recovery copy and closing other Ranger tabs. Updated clients will not save or reopen the retired key in legacy mode. Older open tabs can restore plaintext; other browsers and devices retain their copies.
  • A copied EOA key cannot be revoked. It retains full on-chain authority. If exposed, move assets to a new address. Ending a session does not revoke copied keys or existing token approvals. Worker limits cannot constrain a stolen key used elsewhere.
  • Rollback on a new device. Local revision checks detect older snapshots already observed on that device. A new device cannot independently detect a malicious server rollback.
  • Service metadata. The service sees ciphertext sizes, timing, credential associations and public connection details, including the selected address and recipient-key fingerprint.
04 / Sessions & limits

Closing the popup keeps Ranger connected.

The two sessions have separate lifetimes
Wallet vault
Unlock + handoffPopup locks and closes
Wallet home: 5-minute worker session
Connect popup: 5 minutes idle · API login: 10 minutes
Ranger tab
Receives keyCan trade after popup closes
Ends on Ranger lock, page exit,
or after at most 8 hours

Closing wallet settings or locking the central vault does not end an approved Ranger session. Use Lock wallet in Ranger. Switch wallet ends the current session before opening another.

Rules enforced by the Ranger worker

Per tab / unlocked session
Per bet or USDC approval
100 USDC
Total bet premiums
500 USDC
Broadcasts per session
50 maximum

Execution fees: at most 0.0001 ETH per broadcast and 0.001 ETH per session. Base L1 data fees are additional.

These are session limits, not an account-wide cap or a safe-balance guarantee. Each tab or new unlock has its own budget. A copied EOA key bypasses these rules.

Central transfers: send ETH and USDG on Robinhood Chain, or ETH, USDC and WETH on Base. Each transfer needs a fresh passkey confirmation. The worker fixes the recipient, amount, network and fees before signing. Keys and signed transactions stay out of page code. The address and amount are shown by this website; your authenticator does not verify them.

Pending transfers keep their transaction links on this browser. Retry verifies the original payment and keeps its nonce. If it cannot be verified, check its status or cancel it before making a new transfer. Cancellation may lose a race with the original transfer. Status checks the network, not saved success labels. The execution fee cap is 0.001 ETH per broadcast; Base data fees are additional.

Bridge and swap: the wallet compares LI.FI routes, the service behind Jumper, and signs your selected route in its worker. Both ends use your selected wallet address. After unlock, small approvals and bridge sends use that worker session. You still review and confirm each action. Larger actions need a fresh passkey. Approvals use the exact token amount; the worker checks router calls, receivers and minimum output. LI.FI, its bridge providers and their contracts remain trusted for routing and settlement. A source transaction alone does not prove bridged funds arrived.

Session limits: the wallet home locks five minutes after unlock, even with continued page activity. Session signing allows up to 100 USDC/USDG or 0.05 ETH/WETH per action. Combined limits across wallets and networks are 500 USDC/USDG, 0.1 ETH/WETH and 20 signed actions. Approval amounts count toward those limits as well as bridge amounts. Execution fee limits are 0.001 ETH per action and 0.003 ETH per session; L2 data fees may be additional. These are token limits, not live dollar valuations. Failed or uncertain signed attempts still consume the session budget.

Page-injection tradeoff: injected code in an unlocked page could request supported bridge actions within those limits without another fingerprint. A page confirmation button is not an independent security boundary. Worker isolation limits direct key access; spending rules and the deadline limit this signing access. Transfers to another address and recovery-key export still require fresh passkey checks.

Odette pilot: the same worker custody and handoff are available at Odette’s pilot page. Its separate policy permits canonical BTC/ETH USDC buys, up to 100 USDC per trade and 500 USDC per session. General transfers open the central wallet. Gas reservations count toward that budget. When ETH is low, its worker can use Circle Paymaster and reserve 0.50 USDC for gas. Only the fixed Base account implementation and Circle paymaster are permitted. This enables persistent smart-account code at the same address; locking does not remove it. Circle permits have no expiry. Older Circle allowances can be used without adding ETH. Each new permit is limited to 0.50 USDC. The worker checks Circle’s maximum USDC gas charge before signing and before sending; an old allowance does not raise this budget. Old permits, allowances or Circle pricing can change after the final check, so this is not an unconditional on-chain fee cap. Swaps and arbitrary off-chain signatures require an external wallet. Secure saved wallet can import an existing Odette wallet without copying its key. The vault reads back the encrypted saved copy. Its worker and the source worker sign the same test message; both signatures must recover the original address. You can then confirm removal of the verified browser copies. Other wallets and unverified encrypted copies are kept. Close other Odette tabs first and keep a recovery backup. Removal covers this browser and origin only; it does not erase other devices, backups or keys already copied by an attacker.

Herd pilot: Base WETH/USDC creation up to 100 USDC, with a 500 USDC session budget; owned-position close and recovery. Recovery from a position has no asset-value cap. Transfers, bridging and general wallet settings open here in the central wallet. ETH is required for gas.

Reservations and supported operations

The worker permits supported Ranger trades and USDC approvals. It provides no general key-export or arbitrary-signing interface. Budgets are reserved before broadcast. Uncertain or reverted sends keep their reservation; cancelled requests that were never sent do not. Approval amounts do not also consume the premium budget.

05 / Creation & recovery

Private by default. Export is an explicit exception.

Normal creation
  1. Name your walletChoose Create with passkey.
  2. Generate inside the workerNative randomness creates the EOA key.
  3. Authenticate → encrypt → saveThe worker reads back and checks the stored vault.
  4. Show the addressNo private-key preview or required clipboard copy.
Optional recovery export
  1. Select a walletChoose View recovery key in settings.
  2. Authenticate againFresh passkey check bound to that wallet and vault.
  3. Key appears on the pageThis is an intentional plaintext exposure.
  4. Close or lock to clearLate responses after lock or context changes are discarded.

Another usable passkey

Opens the whole vault and its wallet keys. On another device, it needs working PRF support.

A saved wallet key

Restores that EOA address in a new vault or an external wallet. It does not restore other keys or old vault labels.

Losing every usable passkey and every saved wallet key loses access. There is no administrator or email reset.

Recovery and storage details

There is no recovery-code login or automatic cross-provider passkey transfer. Passkey removal and offline encrypted archives are not available in this release.

Each registered tenant has separate transactional storage. Anonymous account lookup is unavailable. Authentication challenges expire after two minutes and can be used only once. APIs use no-store responses and do not use shared caches.

Expired provisional enrollment records are removed after one day; operation receipts remain for seven days. Routine logs must exclude request bodies, authentication material and wallet identifiers.