Canon Wallet

Private Ethereum wallet: RAILGUN balance, Anon-RPC reads, an address per dapp, a DIY hardware signer

Canon Wallet

Created At

ETHGlobal Mumbai

Project Description

Canon Wallet is a Chrome extension wallet built so that using Ethereum doesn't leak who you are.

  • Private balance: funds live in RAILGUN's shielded pool. One Send screen works out from who you pay whether it is a public send, make private, send privately or make public. Proofs are built on your device.
  • Private reads: every RPC call goes through Anon-RPC's Nox mixnet by default, so no RPC provider can tie your addresses to your IP. A Privacy screen counts what went through Nox and what didn't.
  • One address per dapp: each site, over the injected EIP-6963 provider or WalletConnect, gets its own fresh address, so dapps can't link you by comparing addresses. Each site also gets its own network, and dapp network switches are accepted.
  • Gasless dapp calls: site addresses become Calibur smart accounts with EIP-7702, with EIP-5792 batches, and a sponsor pays the gas. A site address can be funded straight from the private balance.
  • Private swaps on Uniswap v4: one RAILGUN cross-contract call unshields, swaps and re-shields, so the swap never touches your public address.
  • Free ENS names: claim <name>.canon.eth (ENSv2, Sepolia). Its org.railgun record holds your private address, so anyone can pay you privately by name. The sponsor's control is renounced after issue.
  • Onboarding: new phrase with a word check, restore, a passkey (WebAuthn PRF) wallet with no phrase at all, or a hardware wallet.
  • Hardware wallet: Buddy, an ESP32-S3 running BuddyOS, signs over USB or Bluetooth and clear-signs RAILGUN private transactions on its screen. Nothing that can spend leaves the device.

How it's Made

Bun monorepo: the MV3 extension (React, Tailwind, esbuild), a sponsor service, and a mock hardware device.

  • The wallet core (vault, RAILGUN engine, WalletConnect WalletKit, an encrypted account book) runs in the extension's offscreen document. The popup, side panel and onboarding tab only render pushed state and send whitelisted commands.
  • Anon-RPC: the harness runs in PageWorker mode inside that same offscreen document, framing the null-origin sandbox page. One ethers.FetchRequest.registerGetUrl hook catches every JSON-RPC call. Hacky bit: RAILGUN require()s ethers while our code imports it, so the bundle had two ethers copies and one missed the hook. We alias ethers and axios to a single copy and install a fetch forwarder at the top of the bundle, because RAILGUN's GraphQL client grabs fetch at load. Proof-of-innocence lookups go through Nox too. If Nox is down, reads fail closed.
  • RAILGUN (wallet SDK 11.3, engine 9.9.1): shield, private send, unshield, and cross-contract calls through Relay Adapt. Per-dapp addresses use RAILGUN's app-path derivation, keyed by the site's origin. The wallet submits its own proof-of-innocence proofs, as a broadcaster does, so funds are spendable again in minutes.
  • Uniswap v4: RelayAdapt unwrapBase, then UniversalRouter V4_SWAP (exact-in single), then wrapBase and re-shield. Quotes come from the v4 Quoter through Nox.
  • ENSv2 on Sepolia: we registered canon.eth with its own UserRegistry, then renounced the power to swap it. The sponsor issues subnames that set org.railgun to the user's 0zk address. Resolution goes through the Universal Resolver.
  • Sponsor: a Cloudflare Worker with a Durable Object queueing a single nonce. It relays RAILGUN transactions, including RAILGUN's EIP-7702 type-4 unshields, and executes Calibur batches (EIP-712 SignedBatchedCall plus a 7702 authorization).
  • Passkeys: WebAuthn PRF output, run through HKDF, becomes the wallet seed and the vault keys.
  • Hardware: our own framed JSON protocol over Web Serial and Web Bluetooth (GATT, encrypted and MITM-paired). RAILGUN clear-signing follows Ledger's clear-sign contract; the device computes commitments, encrypted notes and the EdDSA-Poseidon signature. A JS reference device built from RAILGUN's own primitives produces test vectors the C firmware matches byte for byte.
  • Tests: Puppeteer end-to-end suites on real Sepolia and an anvil fork.
background image mobile

Join the mailing list

Get the latest news and updates

Canon Wallet | ETHGlobal