Skip to content
PlutoDocs

Security

The app assumes the API could be compromised. Here's what it checks, and what it never does.

The transaction guard

Before any transaction reaches your wallet, the app checks where it goes. Try to trick it:

The transaction guardLive demo, running the app's own codePick what the app is about to send and where the API pointed it.
Purpose
API says send to
Approval spender
Sent
Every combination
Pluto routerOrders contractPrivacy entrypointThe token you sellUnknown address
Swap
Cancel on-chain
Shield
Approval
Source: src/lib/config/tx-guard.ts → assertTxAllowed()
PurposeMust target
SwapThe Pluto router
Cancel on-chainThe orders contract
ShieldThe privacy entrypoint
ApprovalThe token you sell, with Permit2 or the privacy entrypoint as spender

Signatures get the same check: the EIP-712 domain must name this chain and the expected contract (Permit2 for permits, the orders contract for orders).

Private mode

Where your secrets live
Page (main thread)Public results only: balances, progress
Never crosses this line
SDK workerKeys, notes, nullifiers. Encrypted at rest.
Pluto API /private/*Sees proofs. Never your wallet or cookies.
WalletUsed twice only: derive the key, send the shield deposit.
Source: src/features/private/sdk/
RuleHow
No identifiers on /private/*Requests send no cookies, no API key and no wallet address.
No private reads through the wallet RPCThe SDK reads only from the Pluto API.
Secrets clear on lock, account switch and closeThe SDK is locked on each of them.
No analyticsNone anywhere at launch.

Phishing

Real screen, captured from the app
  1. 1Before you sign: the exact amounts, and the least you receive
  2. 2Nothing is signed until you confirm here
  3. 3Your wallet then shows the same request; reject it if anything differs