Skip to main content
Sigvex

Leo (Aleo) Program Analysis

Single-file Leo analyzer with an embedded editor, compile-and-analyze workflow, and two supported checks.

What it is

A single-file Leo analyzer built on the shared ZK analyze layout. It renders a Monaco-based editor, runs compile-and-analyze, lists findings, and links to the full ZK Studio. The Supported Checks panel lists the detectors that run against Leo input.

Why it exists

Aleo / Leo programs manage private state via records and transitions; the common failure modes are record-privacy leaks and unused inputs. This page gives those checks a dedicated entry point for a single file.

Who uses it

  • Leo author — checks a transition before deploying.
  • Auditor — reviews a Leo file from an audit engagement.

How to open it

  1. Sidebar → Library → Leo (Aleo).
  2. /libraryLeo (Aleo) card.
  3. Direct URL — /leo-analyze.

Using the page

  1. Editor — paste or type Leo source.

  2. Analyze — findings populate below.

  3. Launch ZK Studio — opens /zk-studio?lang=leo.

  4. Supported Checks — lists the two detectors that run against the file:

    Severity Detector
    High Record Privacy Leaks
    Medium Unused Inputs

Inputs and outputs

Input Source Required
Leo source Editor yes
Output Format Destination
Findings In-page list Editor section

Controls reference

  • Editor — Monaco editor with Leo syntax highlighting.
  • Launch ZK Studio — opens the full studio at /zk-studio?lang=leo.

Limits

  • Requires a signed-in account.
  • Single-file only. Multi-file projects need ZK Studio.

Troubleshooting

Symptom or error Cause Action
“Compile error” Leo source fails to compile Fix syntax and retry.
No findings on a known issue Issue is outside the two supported checks Open the file in ZK Studio.