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
- src/main.rs -> docs/verifier-cli.md
src/verify/**-> docs/build-verification-execution.mdsrc/solana/**-> docs/solana-program-artifacts.mdsrc/api/**-> docs/verified-programs-api.mdsrc/image/**-> docs/image-configuration.mddocker/**-> docs/container-build-environments.mddocker/**/Dockerfile*-> docs/dockerfile-catalog.mdscripts/**/generate*-> docs/dockerfile-generation.mdscripts/**/{build,install}*-> docs/image-build-and-installation.md.github/**-> docs/repository-automation.md.github/workflows/**-> docs/github-workflow-orchestration.md- README.md -> docs/dockerfile-publishing-and-releases.md
scripts/**/whitelist*-> docs/image-whitelist-maintenance.mdexamples/**-> docs/example-programs.mdexamples/hello-world/**-> docs/hello-world-example.mdexamples/anchor-hello-world/**-> docs/anchor-hello-world-example.mdexamples/pinocchio-hello-world/**-> docs/pinocchio-hello-world-example.md