Security & scope
What Winternitz protects, what it doesn't, the risks we identified, and how each one is handled.
Quantum-safe refers to WOTS account authorisation. It does not extend to network consensus, the relayer, your device, the experimental Groth16 privacy layer, or the separate native Zcash testnet account.
What is quantum safe#
The user-facing beta is restricted to Robinhood Chain Testnet (46630). This network restriction prevents accidental use of unsupported chains through current app paths; it does not establish rollback-resistant storage or safe lost-device recovery. Existing deployments and older or modified clients remain outside this release boundary.
Account authorisation. The account verifies hash-based WOTS signatures instead of ECDSA. This avoids reliance on the elliptic-curve discrete-log problem targeted by Shor's algorithm. Security still depends on Keccak-256, correct key derivation and verification, and using each key for only one message. This custom implementation is distinct from standardised signature schemes such as XMSS.
What is not#
- Ethereum and Robinhood Chain consensus. Validators and the chain itself still use classical cryptography. Changing that is the job of protocol upgrades, not wallets.
- The bundler's transaction. The bundler or relayer submits your operation in an ordinary ECDSA transaction. A quantum attacker who controls a bundler could delay or censor your operations, but could not forge them or move your funds.
- Your device. Whoever has your seed controls your account. Both the web wallet and the extension store it encrypted with your password (PBKDF2 and AES-256-GCM) and keep the decrypted copy in memory only while unlocked. Malware on your device, or a malicious script on the wallet's own page, could still capture it while the wallet is unlocked.
- Network connections. TLS to RPC endpoints is outside this project.
Scope of the project#
In scope: the TypeScript WOTS library, the Solidity verifier, the ERC-4337 account with automatic key rotation, the CREATE2 factory, the CLI, a simple web UI, a testnet deployment, and the gas benchmark and documentation.
Not part of the current release: a production mainnet release; making Ethereum consensus quantum safe; social recovery, multisig and hardware wallets; or a Merkle multi-key scheme (XMSS). Experimental mainnet configuration and swap code exist but are not a production launch. XMSS and an independent audit are described in Future work.
Risks and mitigations#
The biggest risk is a WOTS key being used twice, because that can open a path to stealing funds.
| Risk | Impact | Mitigation | Status |
|---|---|---|---|
| A key is reused because the local key index is out of sync | Critical: funds could be stolen | Always read keyIndex from the chain before signing; refuse on mismatch; write ahead journal; block new sends while one is pending | Implemented and tested |
| The 2.1 KB signature exceeds the bundler's verification gas | Operation isn't included | Explicit verificationGasLimit floors (400k, 650k with deployment); tested against a local Alto bundler | Implemented |
| Gas cost much higher than ECDSA | Less practical | Accepted for the prototype; measured, with larger w and ZK compression as follow ups | Measured: see benchmarks |
| Bug in the verifier or rotation | Loss of funds | Testnet only; differential tests against TypeScript; fuzz tests on every byte | Implemented |
| Misunderstanding the security scope | Overclaiming | This page, and the same statement in the README and app | Done |
Guarantees enforced onchain#
- A normal signature is exactly 2,176 bytes; a recovery signature is 2,209 bytes with a distinct format. The next main key must be nonzero and different from the current one.
- The signed message covers the entire UserOperation (via
userOpHash, which includes the chain ID and EntryPoint) and the next key. - A failed check returns
SIG_VALIDATION_FAILEDwithout changing any state. - A key is consumed as soon as validation succeeds, even if the transaction's call later reverts, so a revealed key is never valid again.
- Only the EntryPoint (or the account itself) can make the account execute, withdraw its deposit, or act in any way. There is no owner key.
Stuck operations#
If a signed operation can never be included (for example, fees rise far above its maxFeePerGas), signing it again at a higher fee would reuse the key. Instead, the wallet replaces it with a recovery key: a second one time key chain, derived from the same seed, that can authorise one replacement with the same nonce. The account then skips the stuck key entirely, so no key ever signs twice.
If the original operation lands anyway, the recovery key has been revealed without being used. The wallet detects this and asks you to rotate the recovery key, which is an ordinary transaction.
Known limitation#
Use a separate WOTS recovery phrase per network, and only one active signing interface for each phrase. WOTS key derivation depends on the seed and key index, not the chain ID, account salt, or factory. Although the signed UserOperation includes its chain ID, that does not make reusing the same WOTS key on another network safe.
The web and extension journal adapters now serialize signing across networks for the same initial key identity and check all retained network journals before releasing a new signature. Legacy mixed-case journal names remain visible; confirmed records still count as exposed keys. This blocks conflicting signatures within one web-origin storage partition or one extension installation without changing existing account addresses. It does not undo signatures released by older versions.
Web storage, extension storage, CLI files, other browser profiles, and other devices do not share this guard. Two active interfaces using the same phrase can still expose the same key. Deleted journals, older restored snapshots, or missing history can also bypass local knowledge. Reading the onchain index alone does not solve this. The CLI requires a persistent journal, but separate wallet directories are not coordinated globally. See Getting started before restoring an account on another interface.
Restore signing lock#
New phrase/hex-seed imports in the web wallet, extension and CLI open read-only. You can inspect the derived address, balances and account state. The current SDK blocks signing, sending, pending-operation resubmission, replacement and recovery-key rotation for these marked wallets. dApp transaction requests are refused before an approval window is offered. Send, Swap and WOTS authorization in Privacy Lab stay locked. CLI transaction commands refuse before account resolution and RPC/relay setup; forced imports preserve the adjacent journal.
In the web wallet and extension, the restoreBlocked marker is stored inside the authenticated encrypted vault and survives password unlock and extension relayer changes. Changing public account metadata or matching the onchain key cannot clear it. A successful Check my backup only checks the phrase; it does not enable signing. There is no unlock-signing override in the UI. The CLI persists its marker in the plaintext wallet file; it is not authenticated and can be bypassed by editing the file. File permissions do not provide anti-rollback protection.
This is a local application policy, not rollback-resistant recovery. It stops a new seed-only import in these clients from assuming missing history means an unused key. It cannot recover a signature produced but never confirmed, detect every older device snapshot, or coordinate other devices. A restored older vault without this marker keeps its previous behavior for compatibility; previously imported vaults are not retroactively verified. Older clients, direct WOTS calls, a custom SDK caller that omits the marker, and edited or older unmarked CLI files can bypass this policy. Do not use them as a workaround.
Keep the original signing device, account configuration and all journals. Do not reset it to move signing to another browser. A phrase-only web/extension import currently uses the default account salt (0); a custom CLI/SDK salt or different deployment must also match to derive the original address. The web wallet now supports a password-encrypted recovery archive of its source account configuration and retained local journals. It does not collect missing history from other devices, the extension or CLI. Imports preserve known records and stay read-only. Safe signing handoff has not shipped; an authenticated archive still needs freshness and anti-rollback checks before it could authorize another signer.
Safe signing migration requires a reviewed source of signing-state freshness or a safe authority handoff before signing can be enabled on a restored device. Recovery keys are also one-time keys: blindly rotating from stale recovery state is not sufficient. These controls protect the state management required by the wallet's hash-based, quantum-resistant account authorization; they do not make chain consensus or browser storage quantum safe.
Extension approvals and idle sessions#
Transaction approval records capture the requesting origin, account, chain ID and network name. The worker rechecks that context before running a send and refuses a changed account, network, disconnected origin, or locked session. The approval UI displays the captured network. Requests expire after five minutes and are rejected when the wallet locks; an already authorized operation in flight is not cancelled by locking.
Only trusted pointer/keyboard activity in the extension UI renews the idle timer. Automatic balance/snapshot polling, UI keep-alive messages, and dApp requests do not renew it. The default is five minutes, matching the web dashboard's idle timeout; existing explicit preferences remain configurable in extension settings. Closing/reopening or reloading the popup, switching networks, and a service-worker restart retain a still-valid session in Chrome's memory-only storage.session without extending its deadline. A browser restart clears that store. Unlike a browser tab, the extension is designed to remain available after its popup closes and does not apply the web tab's one-minute hidden timeout. Lock and expiry remove the session. Web and extension wallets are independent; this is not seed or journal synchronization. A session deadline is checked before returning unlocked secrets, including after a delayed alarm or clock rollback. This reduces accidental open sessions; it is not protection from compromised extension code. New extension passwords require 12 characters; supported older vault passwords remain usable.
Extension local/session storage access is explicitly restricted to trusted extension contexts before processing UI or provider requests. Browser web pages may request approved provider operations; they are not allowed to call wallet-management actions or directly read extension storage.
Reset removes the encrypted extension vault and settings, but intentionally retains public WOTS signing journals, matching the web wallet's forget behavior. Those records remain readable to trusted extension contexts. Manually clearing the browser profile or extension data can still delete them; keep that history before restoring a phrase.
Browser storage and session policy#
Assets live on their blockchain. The browser stores the information needed to find and authorize spending them. Winternitz uses three independent recovery domains:
| Domain | Persistent browser copy | Unlocked context | Independent recovery |
|---|---|---|---|
| ETH / WOTS account | Password-encrypted seed vault; public account metadata and operation journal | EVM signing code in the page | ETH recovery phrase; keep the original signing device's journal until all pending operations are resolved |
| Gloam ETH privacy notes | Password-encrypted note archive | Proof worker and selected plaintext note in the page | Every encrypted note file and its own password; the ETH phrase cannot regenerate independently created notes |
| Native Zcash testnet | Password-encrypted phrase, birthday, scan database, and saved transaction reference | Dedicated Zcash worker; a new recovery phrase is briefly shown in the UI | Zcash encrypted backup and password, or its own recovery phrase with the original birthday |
Password-encrypted vaults and note archives use localStorage. A short-lived dashboard session stores AES-GCM-encrypted seeds in the current tab's sessionStorage, with a random, non-extractable wrapping key in IndexedDB. Passwords and plaintext seeds are never written to the session stores. This permits refresh and network switching to resume a previously unlocked dashboard wallet; each network still uses its own saved account and original WOTS journal. Independent vaults and privacy accounts retain their separate unlock flows. Session encryption does not isolate keys from scripts on the same origin. Public addresses, preferences, backup-check timestamps, and WOTS operation details may remain readable. Browser storage is not an offline backup, and clearing it or losing a browser profile can remove the only local copy. There is no server-side seed recovery.
The browser vaults and note backups use PBKDF2-SHA256 with 600,000 iterations and AES-256-GCM, fresh salts and IVs, and non-extractable WebCrypto encryption keys. New ETH and Zcash passwords require at least 12 characters in the web UI; existing supported encrypted vaults retain their original passwords. The ETH vault parser validates versions, KDF settings, encoding, ciphertext size, and decrypted seed shape. Corrupted or inaccessible wallet storage blocks the new-wallet flow rather than silently treating the device as empty. An unlocked ETH seed is also matched against the saved initial public-key hash before use. WOTS journal adapters read back writes before returning a signature. These checks do not authenticate all public metadata or prevent a restored older device snapshot from rolling back local history.
The developer CLI is a separate storage model: its wallet file currently contains the seed in plaintext, with restrictive local file permissions. Browser-vault encryption claims do not apply to CLI files. Do not import a funded browser-wallet phrase into the CLI or treat that file as a password-encrypted backup.
Locking and backups#
- The web signing session locks after 5 minutes without input, or 1 minute with the document hidden. A manual or automatic lock reloads the signing page and terminates its execution context; encrypted vaults, notes, and pending-operation records remain in storage. A clock rollback or an expired session detected after suspension also locks the page. Browser or OS scheduling may delay timers; expiry is checked again on focus and visibility changes.
- Refresh and chain switching do not renew the session deadline. Session resumption checks the original activity/visibility times, the selected chain, the exact encrypted wallet record and the seed's initial public-key hash. A restored read-only wallet remains read-only. Manual/automatic Lock removes every cached dashboard unlock in this tab before reloading; it does not erase vaults or journals. Sessions also have an eight-hour absolute limit. When session storage, IndexedDB or WebCrypto is unavailable, ordinary password unlock remains usable but refresh cannot resume it. A separate tab normally starts locked; browsers may copy or restore tab storage, so tab closure is not a substitute for Lock. Expired orphan wrapping keys are pruned when a new session is created.
- A new Zcash phrase hides after one minute, on leaving the Backups view, or when the document is hidden. Password and phrase form inputs clear when the page is hidden. EVM recovery reveals and Gloam note locking have their own visibility controls.
- A lock is not transaction cancellation. A submitted transaction may still be mined. After unlocking, sync/check the pending journal before preparing another operation. Zcash saves encrypted signed-transaction state before broadcast; WOTS journals retain the original signed operation for retry and recovery. A successful storage read-back confirms the browser API accepted a write; it is not a guarantee against device failure or storage eviction.
- Keep backups offline and test recovery using a separate disposable test account. Do not restore one WOTS signing seed on multiple active signing devices. A backup acknowledgement or phrase match is not proof of a complete, recoverable offline backup.
Boundaries and next hardening steps#
At rest, encryption protects stolen ciphertext subject to password strength. While unlocked, legitimate signing code needs access to plaintext secrets. A worker reduces UI coupling and accidental exposure, but it is not a hardware security boundary: compromised same-origin code can control the page or issue worker commands. Reloading releases the application's signing context; it is not a verifiable secure erase of physical memory. Non-extractable AES keys prevent key export through WebCrypto; they do not stop compromised code from using an unlocked key or intercepting a password. See OWASP's browser-storage guidance.
Wallet routes deny framing, embedded objects, and base-URL changes, suppress referrers, and disable camera, microphone, and geolocation. These headers are not a full script-injection defense. A nonce-based script policy, a dedicated wallet origin with a minimal dependency surface, worker-based EVM signing, and independently reviewed recovery and journal rollback handling remain further hardening work. Hardware-backed WOTS signing would require an actual compatible signer; ordinary EVM hardware-wallet support must not be implied. This design does not claim protection from malicious browser extensions, device malware, or compromised application releases.
Ethereum Privacy#
The dashboard now has one Ethereum ETH/WETH privacy flow, backed by RAILGUN with a separate encrypted account and backup. The integration requires complete balance synchronization and backup acknowledgement, saves pending operations before submission, checks the exact transaction and waits for two confirmations. Full-sync browser validation, funded end-to-end testing and independent audit remain outstanding. Privacy proofs and account keys use conventional cryptography; this is not post-quantum privacy. Public deposits, withdrawals and network metadata remain observable.
Privacy Lab (testnet)#
Archived integration. The original note-based workspace described below is no longer offered in the dashboard. Its stored notes, backups and source implementation are preserved; the archived guide records its testnet evidence and recovery format. It is separate from the current Ethereum privacy account.
The native Zcash testnet wallet is a separate integration from the Gloam ETH flow below. It uses its own Zcash keys, recovery phrase, birthday block, and password-encrypted wallet database. Zcash transactions do not use WOTS. Mainnet ZEC and cross-chain conversion are disabled. The pinned WebZjs build and dependency licenses are hosted under /vendor/zcash/; source and asset hashes are recorded in its manifest. The third-party testnet lightwalletd endpoint must report network test before wallet operations. It can observe connection metadata and transparent address queries.
The Zcash worker requires an unsigned transaction review, checks a 0.001 test ZEC fee ceiling, and stages signed transactions before sending. It waits for the browser to acknowledge the encrypted database save before broadcast. A pending transaction prevents a second payment; retry submits the saved transaction. A synchronized history entry is required to clear a confirmed or expired pending transaction. One Web Lock owns the local Zcash session at a time. These checks do not protect against compromised browser code, devices, or incorrect server data. See the Zcash walkthrough for backup and recovery steps.
The earlier experimental Privacy Lab was tested on Robinhood Chain Testnet, chain 46630. The extension has no privacy integration yet. That version supports native test ETH shield and full-note unshield, not private recipient payments, anonymous relaying or swaps. Each note is limited to 1 test ETH.
The integration uses Gloam SDK 0.0.7, pinned local shield/unshield circuit artifacts, and pool 0x72406D9597807A46f730d8b4fDBC5aC45Dc1d740. Contract runtime fingerprints, verifier addresses, setup-mode status and chain ID are checked before preparation and again before signing. These checks detect changes against the integration's pins; they are not an audit or proof of protocol safety. Gloam's spend verifier remains administrator-controlled through its timelock. Its production limitations include an outstanding external audit and a development trusted setup.
Proof generation runs locally in a dedicated worker. The worker SHA-256-checks the actual bytes supplied to the prover and asks the deployed verifier to accept the resulting proof before showing a review. Unshield reconstructs all pool leaves through RPC and checks its Merkle root onchain. This can be slow or fail on rate-limited RPCs; it never falls back to an ordinary public transfer. Cancellation stops preparation only, not a signed or submitted operation. A transaction is labelled confirmed only after successful account-operation execution, not merely outer-transaction inclusion.
Independent note backups#
Notes use independently generated secrets. Your wallet seed phrase cannot restore them. Before authorizing a shield, download the encrypted note and acknowledge keeping its separate password. The complete note, including amount and secret, is encrypted with PBKDF2-SHA256 (600,000 iterations) and AES-256-GCM using fresh salt and IV. Only ciphertext is stored in browser storage or exported. Losing both local storage and the backup, or forgetting the note password, can permanently lose access. There is no server-side recovery. Keep backups even after failed or uncertain submissions: a note can be checked and recovered by importing the encrypted file.
The selected note's amount is displayed only after unlocking and an onchain commitment/nullifier check; it is not a total shielded balance. Imported notes are also checked against their Poseidon commitment. Leaving the tab or hiding the page clears the plaintext note and unsigned review, except while an already authorized operation is being processed. Plaintext necessarily exists in browser memory while unlocked, so this does not defend against page compromise or device malware. Note backups are independent of the wallet's local storage and are not deleted when forgetting the wallet.
Privacy is not post-quantum authorization#
- Shield deposits and unshield withdrawals are public boundaries: the asset, amount and withdrawing recipient are visible. An unshield is not a confidential payment to that address.
- Proofs do not provide network anonymity. RPC operators can observe requests and IP addresses; relays and explorers can observe your submitting account, gas and timing. Withdrawing through the same Winternitz account can link your activity. This release has no anonymous privacy relay or recipient inbox.
- WOTS authorizes the ERC-4337 account operation. Gloam's Groth16/BN254 privacy proof is not post-quantum secure. Do not describe this as end-to-end post-quantum privacy.
- The dashboard allows preparing a real proof even if the configured Winternitz factory is not deployed. Such a note is unfunded. Signing remains disabled until contracts, key status, relay, fees, balance, backup and explicit risk acknowledgement permit it. Preparing a proof alone does not move funds or prove end-to-end wallet deployment readiness.
Only use disposable test funds. The SDK, circuit and license provenance are recorded in the bundled artifact notice.
For the earlier UI walkthrough, supported operations, and backup recovery format, see the archived Privacy Lab guide.
User-facing checks and their limits#
The web wallet and extension provide a Security center with current signing/recovery key-hash matches, pending operations, recovery rotation, factory code presence, relay configuration, and a local backup phrase-match status. Checks older than one minute are marked stale. Mismatched keys block new sends, swaps, and transaction approvals in the UI; the SDK's signing checks remain authoritative.
Factory presence does not establish bytecode identity or an independent audit. Relay configuration does not establish reachability. The backup check decrypts the current vault and compares the supplied 24-word phrase locally, retaining only a vault-bound timestamp; it does not prove safe backup storage or cross-device recovery. Inputs are cleared after an attempt or when the check page is hidden.
For an undeployed account, initial keys are labelled derived locally, not yet onchain. They must not be confused with a key-hash match against an already deployed account.
Transfer balance figures are arithmetic estimates. The web Send flow separately checks ETH/ERC-20 execution at a pinned block by calling the account as EntryPoint, without signing or consuming a key. It checks current balances including the reviewed maximum fee and detects token transfers that return false. A revert or insufficient funds blocks confirmation. An undeployed account or unavailable RPC check requires explicit acknowledgement. Checks expire after one minute and must be refreshed. The web flow also rejects newly prepared operations whose maximum fee exceeds the reviewed budget, before producing a signature. This does not validate the UserOperation signature, guarantee inclusion, or predict token taxes or later state changes. Extension transfer previews remain arithmetic only. Unknown dApp calls and unlimited approvals require explicit acknowledgement, not a claim of safety. Revealed phrases hide automatically after one minute or when the page becomes hidden.