Introducing a new way to review your PRs.

Read the announcement

solana-foundation / solana-verifiable-build

CLI tool for deterministically building and verifying executable against on-chain programs or buffer accounts

View on GitHub

18 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Solana Verifiable Build

Orientation

Solana Verifiable Build is a Rust CLI for rebuilding Solana programs in controlled container images and comparing the resulting artifacts with expected program binaries.

The main CLI coordinates verification, Solana artifact handling, build-image selection, and communication with the verified-programs service. Versioned Dockerfiles and supporting scripts provide reproducible toolchain environments.

Repository automation validates Rust changes, generates and publishes Dockerfile environments, and maintains approved image references. Example programs exercise conventional Solana, Anchor, and Pinocchio verification paths.

Architecture

flowchart TD
  User[CLI user] --> CLI[src/main.rs verifier CLI]
  CLI --> Verify[Build verification execution]
  CLI --> Artifacts[Solana program artifacts]
  CLI --> API[Verified programs API client]
  CLI --> Image[Build image configuration]
  Verify --> Docker[Versioned Docker build environments]
  Image --> Docker
  Docker --> Catalog[Dockerfile catalog]
  Docker --> Generator[Dockerfile generation]
  Docker --> Install[Image build and CLI installation]
  API --> Service[Verified-programs service]
  Examples[Example programs] --> Verify
  Automation[Repository automation and releases] --> Workflows[GitHub workflow orchestration]
  Workflows --> Publishing[Dockerfile publishing and releases]
  Workflows --> Whitelist[Image whitelist maintenance]
  Publishing --> Docker

Glossary

  • Verifier: The Rust command-line application that rebuilds and checks Solana programs.
  • Verified programs API: The external service interface used to exchange verified-program information.
  • Build image: A container environment selected to reproduce a program's historical toolchain.
  • Dockerfile catalog: The versioned collection of supported Solana build-environment definitions.
  • Image whitelist: Approved container-image references and checksums maintained by repository tooling.

Invariants

  • CLI command handling remains the integration point for verification, artifact, API, and image modules (src/main.rs).
  • Verified-program service requests and responses are isolated behind the API module boundary (src/api/**).
  • Deterministic builds depend on versioned container definitions rather than an unpinned host toolchain (docker/**/Dockerfile*).
  • Published build images must be represented by approved image references/checksums (**/*whitelist*).
  • Examples retain their framework-specific project configuration so they continue to exercise distinct verification paths (examples/**).

Routing table