Post-Quantum Security on Oak (new in 0.4.9)

Post-quantum security on Oak

No publicly known quantum computer today can break Ethereum wallet keys, and public migration schedules from NIST and Ethereum researchers focus on the late 2020s through 2035. Cryptographic upgrades take years to finish cleanly, so Oak 0.4.9 ships practical transport, wallet-check, and smart-contract audit updates while stating plainly what changes and what stays the same.

The short answer across all three layers

Transport to Oak, your local wallet file on disk, and your on-chain signatures on Robinhood Chain are three separate layers.

  1. Your connection to Oak (new in 0.4.9)

    Both oakagentkit.org and api.oakagentkit.org offer hybrid post-quantum TLS 1.3 key exchange (X25519MLKEM768) to Node.js 22.20.0 or newer, Node.js 24.5.0 or newer, and current browsers, with classical X25519 still open for older clients.

  2. Your wallet file on your computer (today)

    ~/.oak/wallet.enc is encrypted at rest with AES-256-GCM using a random 256-bit key in your OS keychain when available. Your private key never leaves your computer, and Oak cannot recover a lost key.

  3. Your transactions on chain (unchanged)

    Spending on Robinhood Chain still uses standard Ethereum signatures (secp256k1 ECDSA). Neither the hybrid server connection nor local AES-256-GCM disk encryption changes how transactions sign on Robinhood Chain.

1. Server connection: hybrid X25519MLKEM768 TLS (new in 0.4.9)

From 0.4.9, Oak's web and API servers (oakagentkit.org and api.oakagentkit.org, served by Caddy 2.10 or newer) negotiate the hybrid TLS 1.3 key exchange X25519MLKEM768, which pairs classical X25519 with NIST ML-KEM-768 (FIPS 203).

  • What this covers: Recorded HTTPS traffic between your computer and Oak's server cannot be decrypted later from a captured key exchange alone ("harvest now, decrypt later").
  • Which clients use it automatically: Current desktop browsers (Chrome and Edge 131+, Firefox 132+, Safari on macOS 26 and iOS 26+) and agent runtimes on Node.js 22.20.0+ or Node.js 24.5.0+ (which bundle OpenSSL 3.5+).
  • Older clients still connect: Clients on Node.js 22.12 through 22.19, Node.js 23, or Node.js 24.0 through 24.4 connect over classical X25519 as before. Server TLS certificates remain standard public-CA certificates, and spending on Robinhood Chain still uses standard Ethereum signatures.

2. Local wallet file on your computer (AES-256-GCM)

Your private key never leaves your computer, and Oak cannot recover a lost key. The Oak server never sees your key and never signs or sends a transaction. Read the full custody details on How it works.

  • Encryption at rest: @oakagentkit/addon encrypts your 32-byte private key locally in ~/.oak/wallet.enc (mode 0600 inside ~/.oak at mode 0700) using AES-256-GCM . NIST retains 256-bit AES in its post-quantum standards without replacement.
  • OS keychain (default when available): A random 256-bit key lives in macOS Keychain, Windows Credential Manager, or Linux persistent Secret Service.
  • Automatic file-key fallback: If no persistent OS keychain is available on first run, Oak writes a random 256-bit key to an owner-only file (~/.oak/wallet-key-<id>, mode 0600) in the same folder. Anyone who can read your entire ~/.oak folder as your OS user can read both files, so this mode relies on your OS account permissions rather than separate key storage.
  • Legacy oak init passphrase (scrypt): Derived in memory via scrypt (N = 131072, r = 8, p = 1); strength depends on choosing a long, high-entropy passphrase in your own terminal.
  • Disk encryption is not on-chain key hiding: Encrypting wallet.enc on your computer guards the local file on disk. Once a wallet signs a transaction or message, its public key is visible to anyone who sees that signature.

3. When a wallet's public key becomes visible

A Robinhood Chain wallet address is the last 20 bytes of the Keccak-256 hash of its secp256k1 public key. While an address only receives tokens and never signs anything, its raw public key is not on the chain.

As soon as the wallet signs with secp256k1, anyone holding that signature can recover the raw public key:

  • Sending any on-chain transaction (nonce >= 1): Sending ETH or tokens, registering an ERC-8004 agent ID, approving a token, or running a swap records the signature permanently on Robinhood Chain.
  • Posting an EIP-7702 delegation: Delegating an externally owned account (0xef0100…) publishes an ECDSA authorization on chain, and the underlying secp256k1 key remains active at the protocol level.
  • Relayed permits and payment authorizations (even at nonce == 0): Signing an ERC-2612 permit, a Permit2 allowance, or a USDG TransferWithAuthorization payment (used by Raeto and Texel) publishes your signature on chain when the relayer or service submits it.
  • Off-chain messages and Oak sessions: Signing typed orders, service sign-ins, or Oak's own 15-minute X-Oak-Session header reveals the public key off-chain to the service receiving that request.

Having a visible public key is normal for every active spending wallet on Ethereum and Robinhood Chain today. Good habit: keep active working balances in your Oak agent wallet, and hold long-term cold savings in a separate address used only to receive funds until you move them once.

4. Free wallet exposure check and oak_doctor note (new in 0.4.9)

Free read-only exposure check (oak_quantum_check)

From 0.4.9, you can ask your agent to check whether a Robinhood Chain address has already revealed its public key (reachable via find_tool and run_read_tool as oak_quantum_check). Oak has no subscription; reads, quotes and previews are free, and some actions carry an Oak fee, always shown before you say yes. This check is a free read over a direct public RPC connection: it needs no gas, opens no hosted session, and signs nothing.

  • Input: { wallet?: Address } (checks your local Oak wallet when omitted, or any Robinhood Chain 0x address you pass).
  • status: 'key_visible', 'no_signature_seen', or 'unknown'.
  • checked: the exact on-chain and saved local sources inspected — outgoing transaction count on Robinhood Chain, account bytecode and EIP-7702 delegation prefix (smart-contract addresses report 'unknown' and advise checking each controlling owner or signer address), and, when checking your local Oak wallet, saved local Oak session state, receipt log, wallet origin, and already-saved Permit2 approval-census history.
  • notChecked: blind spots Oak could not see — transactions or signatures made with the same key on Ethereum or other chains, off-chain signatures on other machines or services, and gasless ERC-2612 permits or USDG transfer authorizations submitted on chain by a relayer (plus Permit2 when no completed local census covers the address).
  • advice: plain next steps for that status.

no_signature_seen means Oak saw no signature in the sources it checked — there is no guarantee that the public key has never been revealed.

Informational Node.js line in oak_doctor

From 0.4.9, when oak_doctor runs on a supported Node.js runtime whose bundled OpenSSL is older than 3.5 (such as Node.js 22.12 through 22.19, Node.js 23, or Node.js 24.0 through 24.4), its summary adds an informational note that Oak's connection uses standard TLS instead of the hybrid exchange and suggests upgrading to Node.js 22.20.0 or later (or 24.5.0 or later) to use the hybrid exchange. Oak's minimum requirement stays Node.js 22.12.0; this note is informational, not a failure or limit, and Oak continues to work on your current Node version.

5. Quantum-readiness section in Acorn Audits (new in 0.4.9)

From 0.4.9, paid Acorn Audits (Sapling Reviews and Heartwood Audits) include a dedicated quantum-readiness section scored at informational or low severity. Reports state verified facts rather than a verdict:

  • Admin, upgrade, and treasury keys already visible on chain: Single-EOA owners, proxy admins, or treasury signers that have already broadcast transactions and have no rotation, multisig, or smart-account migration path.
  • Reusable or non-expiring signatures and approvals: Permits, orders, or authorizations missing bounded deadlines, chain IDs, verifying-contract bindings, or nonce cancellation.
  • Contracts locked to EOA-only verification: Contracts that hardcode ecrecover without an ERC-1271 (isValidSignature) path, or enforce tx.origin == msg.sender, blocking smart-contract wallets from using them later.

6. Why wallet signatures stay standard Ethereum signatures in 0.4.9

Spending still uses standard Ethereum signatures (secp256k1) on Robinhood Chain in 0.4.9:

  • EIP-7702 does not retire the root key: Even when an EOA delegates code with EIP-7702, the original secp256k1 private key keeps protocol authority to sign a new delegation. Moving away from secp256k1 requires a smart-contract account (such as ERC-4337) with no EOA root key.
  • Ethereum signature standards are still drafts: Protocol proposals for signature agility and post-quantum precompiles (EIP-7932, EIP-8051, EIP-8052) are not finalized, and many on-chain apps still expect ecrecover rather than ERC-1271 contract signatures.
  • Robinhood Chain's Stylus path for a later release: Robinhood Chain (4663) runs Arbitrum Nitro (ArbOS 61) with Stylus (ArbWasm version 3) active on chain. That gives Oak a practical path to evaluate lower-cost WebAssembly signature verifiers for smart accounts in a future release once Ethereum's standards and ecosystem ERC-1271 support settle, without locking users into an unaudited custom wallet contract today.