A program's bytecode is public. revrsly reads it carefully.
Anyone can fetch a deployed program with solana program dump. What comes back is compiled sBPF — correct, but unreadable. revrsly decompiles it and reconstructs as much structure as the bytes support, and marks how sure it is about each piece. The authors' original source does not come back.
The pipeline
- 1networkfetch
Read the program account (and, for an upgradeable program, its program data account) and take the ELF bytes as deployed, without the account's zero padding. Record the deploy slot and the bytecode's SHA-256, and look up what the authors published: a verified build, an IDL.
- 2sandboxedanalyze
The analyzer runs in a sandbox with no network and no files, under memory and time limits. Typically well under two seconds.
- 3librarypublish
Store the report and every view in the public library, keyed by network, address and the bytecode's SHA-256, with the deploy slot recorded. An upgrade is a new entry; the old one stays. The program page opens.
Before any of this, the address is checked: the account must exist, belong to one of the BPF loaders and hold an sBPF program. Missing accounts, native programs, closed programs, plain data accounts, a program's data account and deploy buffers are each named for what they are. A program that's already in the library opens immediately. Everyone shares one queue, and fair-use limits keep it moving: 5 new decompiles per visitor per hour, 120 an hour for the whole site, and at most 50 waiting at once. An address that is already queued joins the request in progress. Reading the library is unlimited.
What the analyzer recovers, and how
The sandbox
revrsly never runs the program it decompiles; it only reads the bytes. The risk is different: a crafted file built to trip a bug in the analyzer. So the analyzer itself is treated as untrusted while it works.
It's written in Rust and compiled to WebAssembly with no imports, so its code can reach nothing but its own memory; a module that declares any import is refused. Each run gets its own process with an empty environment, a memory ceiling, a kill timer and a cap on its output. It's given the bytecode, and the instruction names and discriminators from a published IDL when there is one, and it can return only its report.
- runtime
- WebAssembly with no imports
- process
- its own, with an empty environment
- input
- the bytecode, plus a published IDL's instruction names and discriminators
- network
- none
- files
- none
- limits
- a memory ceiling and a kill timer
- output
- one report under a size cap, or a failure
Certainty
Every fact on every page is one of four kinds, marked the same way in prose, tables, code and chips. Colour is paired with a glyph and a line style so the marks survive greyscale and colour-blindness.
Each program also gets a tier: Disassembled (instructions recovered and annotated), Reconstructed (control flow and higher-level structure recovered) or Partial (only parts recovered; the gaps are listed). The tier is always shown.