About

I'm trenbonole, and I built revrsly.

I wanted to read Solana programs I didn't have the source for, and I wanted the tool to be honest about what it actually knows. revrsly is that tool. It's free, it has no accounts, and every decompilation goes into a public library.

My work on GitHubgithub.com/trenbonole

What it's built with

Analyzer · RustParses and relocates sBPF, builds the call graph, structures control flow and reconstructs Anchor interfaces.
Sandbox · WebAssemblyThe analyzer is compiled to WebAssembly and runs in its own process with no network, no files, an empty environment, and memory and time limits.
Front end · Next.jsThis site: the library, the program pages and the decompile box. Behind it, Postgres holds the library and the queue, and a separate worker runs each decompile.

How well it works

I measure inference against programs whose source is verified. On once, an Anchor options protocol, comparing what revrsly inferred with the verified source:

Account names79 / 79
Account types73 / 79
Account checks164 / 173none invented
PDA seeds24 / 24
Errors26 / 26
Events9 / 9

On Orca Whirlpool: all 70 errors, with names and messages.

The limitsThese numbers are for two programs, not a guarantee. On once, 6 of 79 account types and 9 of 173 account checks didn't match the source, and no check was invented. Names that the bytes don't carry can't be recovered, and the shape of reconstructed code is mine, not the author's.That's why every fact is marked observed ■, derived ●, inferred ◇ or published ❝ — so you can decide how much to trust it. How it works →

Links