The in-site wallet lets you use Sotto at /app without installing anything. It is non-custodial: the keys are created and kept in your browser, never on our servers. It runs the same wallet code as the extension, so the same recovery phrase opens the same wallet in either one.
Where the keys are
| In-site wallet | Extension | |
|---|---|---|
| Phrase at rest | the browser's IndexedDB for the wallet's origin, encrypted with scrypt (N = 2^17) + XChaCha20-Poly1305 | the extension's storage, same encryption and format |
| Keys in memory | a dedicated Web Worker, while unlocked | the extension's service worker, while unlocked |
| Code that touches keys | JavaScript served by the site on every visit | the extension package you installed |
| Unlock | password or passkey | password |
How it is protected
- Keys stay in the worker. The page talks to the wallet worker through a fixed list of methods; none returns a private key. The phrase leaves the worker only right after you create a wallet (so you can write it down) and on Show phrase, which asks for your password again.
- Every password check is real. Show phrase, removing, adding or importing a wallet, changing quick-trade limits and setting up a passkey all check the password against the encrypted vault, never against a copy in memory. All share one counter with unlock: after 5 wrong passwords a pause (doubling up to 5 minutes), kept in storage so a new tab does not reset it; 10 wrong passwords in a row lock the wallet.
- Passkey unlock (optional). Setting one up needs your password and a fresh WebAuthn assertion over a challenge the worker issued. The worker checks the assertion's type, origin, relying party, user verification and credential, and picks the PRF salt itself. Your password is then wrapped under a key derived from the passkey's PRF output and a non-extractable WebCrypto key generated in the wallet's origin.
- Auto-lock after 5, 15, 30, 60 or 240 minutes of your inactivity — clicks and key presses on the page, answers in the confirmation sheet, wallet actions. Background work (balances, quotes, proofs prepared while a form is open) never keeps a tab unlocked. Closing the tab locks too.
- Quick trades without a confirmation sheet only inside your limits (default $50 per trade, $300 per day). The per-trade limit is enforced by the worker with its own price; the daily total is kept per wallet across tabs; changing either needs the password.
- Encrypted history. Your trade history is stored per wallet, encrypted with that wallet's keys, readable only while it is unlocked, and deleted with the wallet. Nothing in
localStorage, logs or analytics. - Backup first. Before the first deposit, the wallet asks for three different words of your phrase.
Isolation
- Content-Security-Policy on every page. Wallet pages get a per-request nonce policy: scripts only from the site itself, network connections only to Sotto's services, Hyperliquid through Sotto's proxy and the Elysium RPC. Every other page may run exactly its own prerendered inline scripts, by SHA-256 — no
'unsafe-inline'anywhere. Cross-Origin-Opener-Policy: same-originon every page;Cross-Origin-Resource-Policy: same-originon the wallet's files.- Pages outside the app never start the wallet. The docs, the blog and the home page do not load the worker; the app is always entered with a full page load.
- No third parties. No analytics, no third-party scripts, no third-party requests from your browser.
Honest limits
Anything that runs JavaScript in the wallet's own origin — a compromised deploy of the site, an injected script, a malicious browser extension with access to the page — is effectively the wallet:
- it could copy the encrypted vault and try passwords offline, where no counter applies — a strong password is what protects the phrase then;
- it could wait until you unlock and then spend, or show a fake password field;
- it could ask the browser for a passkey assertion — which shows the passkey prompt, so an unexpected passkey prompt is a red flag.
The CSP, the isolation, the password counter and the checked passkey ceremony make it much harder to get such code into the origin and to keep it silent. They do not make it harmless once it is there. The extension is not exposed to this: no website, ours included, can change its code, and every action a site asks for is shown in the extension's own window.
When to use which
- Larger balances: use the extension.
- The in-site wallet is for quick trading without installing anything. Keep in it what you trade with, and use a strong password.
- Move between them at any time with the recovery phrase: Show phrase in one, Import in the other.