pango

Trust

Verification

What we ran, what it printed, and how to rerun it.

Everything here is reproducible from the repository. Nothing was deployed to mainnet and no mainnet transaction was sent.

1. The real runtime, the real programs

node --test tests-chain/guard.test.mjs starts a local Surfpool network (the real Solana runtime) with the real SPL Token program, and runs each trap as a real transaction. 14 scenarios:

SOL drain, no promise ........................ WatchFailed   0 SOL moved
SOL drain, promise too small ................. CheckFailed   0 SOL moved
token drain to a stranger .................... WatchFailed
SetAuthority, new owner of the token account . AuthorityChanged
Approve, hidden delegate ..................... DelegateNotDeclared
close authority set .......................... CloseAuthority
System Assign on the wallet .................. ProgramChanged
close a watched token account ................ AccountClosed
three tricks in one transaction .............. refused at the first
an instruction appended after End ............ NotLast
End without its Begin, stale snapshot ........ NoBegin
the owner did not sign ....................... refused by the network
receiving tokens or SOL, declared spends, revoking, moves between your own accounts: accepted

Every refused transaction is checked to leave every watched account exactly as it was.

2. Differential test

STEPS=500 node --test tests-chain/differential.test.mjs builds random transactions (SOL and token transfers both ways, mints, approvals, revokes, owner and close-authority changes, Assign, closing an account, random checks), runs the instructions on the runtime, predicts the verdict in JavaScript from the final accounts, and compares it with what the program really says. Recorded: 1,360 random transactions, 1,360 identical.

3. Site scenarios

node --test tests-js: the five scenarios on this site, hostile and honest, plain and guarded.

4. Cost

A guard around three watched accounts adds about 6,735 compute units.

5. The build

Program size 31,624 bytes, built with cargo build-sbf (Pinocchio 0.11). SHA-256 of the program bytes: 49a812fb2cda62fc5ff0601dc64e64b316516b202dad2cd651a09ae01c0f8f60

6. Not done

A deployment on devnet or mainnet, and an independent audit.