Skip to content

How Paypunk works ​

Paypunk is a privacy-preserving viewer for RAILGUN wallets. It never holds funds and never signs transactions. This page explains the moving parts and how your data is handled.

Components ​

  • Browser app. Runs the user interface, derives your keys, encrypts and decrypts your vault, and reassembles notes and balances locally.
  • Gateway. The HTTP API the app talks to. It stores your encrypted vault, sealed viewing keys, and encrypted notes, and it issues login sessions.
  • Enclave. A small trusted component that opens the viewing keys you register, decrypts on-chain notes, and immediately re-encrypts each note to your public key. It does not persist note plaintext.
  • Scanner. Follows the chain, collects shield/transact/nullifier events, and hands notes to the enclave for re-encryption.

Deployment modes and chains ​

A deployment runs in one of three modes: local (the Anvil harness chain), test (Sepolia), or production (Ethereum mainnet and Arbitrum One). The gateway reports the mode and the active chains at GET /tokens, and the app shows a TEST badge for local and test deployments.

Each active chain has its own RPC endpoint, Railgun contracts, and ERC-20 token list. Only ERC-20 tokens are payable; native currency is not. Balances and history are grouped by chain, and a payment request names both the chain and the token. Wallet birthdays are dates: the scanner skips events before the wallet's birthday date.

Signing in ​

  1. The app asks your wallet for an account and a signature over a fixed identity message.
  2. It derives a stable username from that signature. The Ethereum address is used only to verify the signature and is then discarded.
  3. The app signs a short-lived server challenge that contains a 6-digit code. You compare that code with the one shown in the app.
  4. The gateway verifies both signatures and returns a session token.

The username is derived from the identity signature, not from your address, so the service cannot link your login to an Ethereum account.

Your vault ​

Your wallet list and user secret are stored in an encrypted vault. The vault key is derived from your password and username, so the service only ever sees ciphertext. Unlocking happens entirely in your browser.

Because the vault is encrypted with your password, there is no password reset. If you lose the password, notes sealed to the old user secret cannot be recovered.

Viewing keys and notes ​

A RAILGUN viewing key lets a wallet decrypt its notes. You register it once per wallet. The app seals it to the enclave's public key before sending it, so the rest of the backend cannot read it.

The enclave uses the viewing key to decrypt on-chain notes and re-encrypts each note to your public key. Your browser decrypts those notes, computes balances, and matches nullifiers locally to determine which notes are spent.

What the service can and cannot see ​

The service stores ciphertext and blinded pseudonyms. It does not persist your Ethereum address, your balances, or which notes you have spent. See Privacy for the full model and Encryption for the cryptographic details.