GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - solana-foundation/solana-verifiable-build: CLI tool for deterministically building and verifying executable against on-chain programs or buffer accounts

BranchesTags
Open more actions menu

Latest commit

 

History

666 Commits
666 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docker
docker
 
 
examples
examples
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
RELEASE.md
RELEASE.md
 
 
build-all-images.sh
build-all-images.sh
 
 
doppler.yaml
doppler.yaml
 
 
generate_dockerfiles.py
generate_dockerfiles.py
 
 
pyproject.toml
pyproject.toml
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 
update_image_whitelist.py
update_image_whitelist.py
 
 
uv.lock
uv.lock
 
 
verifier-cli-install.sh
verifier-cli-install.sh
 
 

Repository files navigation

Solana Verified Builds

This repository demonstrates how to implement verified builds for Solana programs. Verified builds ensure that your deployed program matches exactly with your public source code, promoting transparency and security in the Solana ecosystem.

What are Verified Builds?

Verified builds allow developers and users to verify that a deployed Solana program matches its source code. This verification:

  • Ensures program authenticity
  • Promotes transparency
  • Builds user trust
  • Makes source code discoverable

Quick Start

  1. Install prerequisites:

    • Docker
    • Cargo
    • Solana Verify CLI (cargo install solana-verify --locked)

For production use, prefer installing from a tagged release.

  1. Build your program:
solana-verify build

Add the Solana/Agave version in your root Cargo.toml so the tool can pick the right build image (required unless you pass --base-image or use the legacy --bpf image). Older Solana 1.x programs may still resolve via Cargo.lock when solana-program matches a shipped image:

[workspace.metadata.cli]
solana = "4.2.0"
  1. Deploy and verify:
# Deploy
solana program deploy -u $NETWORK_URL target/deploy/$PROGRAM_LIB_NAME.so --program-id $PROGRAM_ID

# Verify against repository -> upload your build data on chain
solana-verify verify-from-repo -u $NETWORK_URL --program-id $PROGRAM_ID https://github.com/$REPO_PATH

# Trigger a remote job
solana-verify remote submit-job -u $NETWORK_URL --program-id $PROGRAM_ID --uploader $THE_PUBKEY_THAT_UPLOADED_YOUR_BUILD_DATA

The remote commands pick the remote verification server from the genesis hash of the -u cluster: https://verify.osec.io for mainnet and https://verify-devnet.osec.io for devnet. Pass --remote-url <URL> to use another server, which is required for any other cluster.

The legacy --remote flag on verify-from-repo has been deprecated. Upload your PDA with programs upgrade authority, then run the remote submit-job command to queue OtterSec's worker. For a full walkthrough of the PDA workflow, see the Solana verified builds guide.

Examples

  • examples/hello_world — native solana-program
  • examples/hello_world_pinocchio — Pinocchio
  • examples/hello_world_anchor — Anchor

Documentation

For detailed instructions and best practices, please refer to the official Solana documentation on verified builds.

Security Considerations

While verified builds enhance transparency, they should not be considered a complete security solution. Always:

  • Review the source code
  • Use trusted build environments
  • Consider using governance solutions for program upgrades

Current Verification Scope

  • Build images are selected by pinned digest.
  • Solana/Agave installer scripts in generated Dockerfiles are checksum pinned.
  • Post-install verification of installed toolchain/platform-tools is still follow-up work.

For responsible disclosure of bugs related to verified builds CLI, please email [email protected] with a detailed description of the attack vector.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Releasing

Use .github/workflows/release.yml (Release) as the canonical release path. Use .github/workflows/build.yml only for manual artifact builds from a specific ref.

See RELEASE.md for release steps and recovery procedures.

About

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

Resources

Readme
Activity
Custom properties

Stars

502 stars

Watchers

36 watching

Forks

259 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.