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 - otter-sec/solana-verified-programs-api

BranchesTags
Open more actions menu

Latest commit

 

History

374 Commits
374 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets @ 8095ddc
assets @ 8095ddc
 
 
assets-stubs/landing
assets-stubs/landing
 
 
docs/plans
docs/plans
 
 
migrations
migrations
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
install-verify.sh
install-verify.sh
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 

Repository files navigation

Solana Verified Programs API

This is a hosted wrapper over solana-verifiable-build.

API Endpoints

Verification

Asynchronous Verification

Submit a program for asynchronous verification:

curl -X POST https://verify.osec.io/verify \
  -H "Content-Type: application/json" \
  -d '{
    "repository": "https://github.com/your-org/your-program",
    "program_id": "PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY",
    "commit_hash": "abc123...",
    "lib_name": "your_program"
  }'

Synchronous Verification (Legacy)

To verify a program, simply add --remote to your verification arguments:

solana-verify verify-from-repo --remote -um --program-id PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY https://github.com/Ellipsis-Labs/phoenix-v1

Verification with Specific Signer

Submit verification with a specific signer:

curl -X POST https://verify.osec.io/verify-with-signer \
  -H "Content-Type: application/json" \
  -d '{
    "signer": "9VWiUUhgNoRwTH5NVehYJEDwcotwYX3VgW4MChiHPAqU",
    "program_id": "PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY"
  }'

Status Checking

Program Verification Status

Check the verification status of a specific program:

curl https://verify.osec.io/status/PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY | jq

Response format:

{
  "is_verified": true,
  "message": "On chain program verified",
  "on_chain_hash": "5bdb733d10c170fbe08912d258bca0bd15dc52ae4919b7db162f44fa0608516b",
  "executable_hash": "5bdb733d10c170fbe08912d258bca0bd15dc52ae4919b7db162f44fa0608516b",
  "last_verified_at": "2024-02-06T11:36:03.547955",
  "repo_url": "https://github.com/Squads-Protocol/v4/commit/3742e5521a3e833f24a4c6bc024dd1aa5385d010"
}

Job Status

Check the status of an asynchronous verification job:

curl https://verify.osec.io/job/f65e0e70-d258-4091-94c1-c039de3734fc | jq

Build Logs

Retrieve build logs for a program verification:

curl https://verify.osec.io/logs/f65e0e70-d258-4091-94c1-c039de3734fc | jq

Verified Programs Lists

Get All Verified Programs

curl https://verify.osec.io/verified-programs | jq

Get Verified Programs (Paginated)

curl https://verify.osec.io/verified-programs/1 | jq

Get Verified Programs Status

curl https://verify.osec.io/verified-programs-status | jq

Resolve Executable Hash

Content-addressed lookup. Given an executable hash, returns every completed build that produced it, with a matches_deployed flag indicating whether that hash is what's currently deployed on its program.

curl https://verify.osec.io/resolve-hash/29e7713aa3c48e242e2847bc031fe2a03eb61aae5ecaec8728131e16934de465 | jq

Rate Limits

  • Verification endpoints: 5 requests/second globally, 1 request per 30 seconds per IP
  • Status/query endpoints: 10,000 requests/second globally, ~100 requests/second per IP (burst 200)
  • Webhook endpoints (/pda, /unverify): not rate limited; require a valid AUTHORIZATION header instead

Security

To mitigate against false verification results (matches_deployed being incorrect), program upgrades are listened for via a Helius webhook to keep on_chain_hash in sync. All programs are also fetched every ~5 minutes in case a webhook is missed or a program is closed.

Otter Verify PDA Worker

The Otter Verify PDA Worker is a service that monitors and processes Program Derived Address (PDA) updates and creations from the Otter Verify program. It automatically updates the database with new PDAs and initiates verification jobs if needed.

Setup Requirements

  1. Helius Webhook Configuration
    • Set up a enhanced Helius webhook to monitor all transactions (Select Any in the transaction type filter).
    • Configure the webhook to listen to the Otter Verify program address: verifycLy8mB96wd9wqq3WDXQwM4oU6r42Th37Db9fC
    • The webhook should forward transactions to: https://verify.osec.io/pda

Monitor Program upgrades

Monitor program upgrades, and unverify the program if it is upgraded.

Setup

  1. Helius Webhook Configuration
    • Set up a enhanced Helius webhook to monitor transactions of type UPGRADE_PROGRAM_INSTRUCTION.
    • Configure the webhook to listen to the BPF Loader program address: BPFLoaderUpgradeab1e11111111111111111111111
    • The webhook should forward transactions to: https://verify.osec.io/unverify

Security

To ensure that only legitimate requests from our Helius webhook are processed, we add a secret key (defined in .env) as a authentication header in the webhook requests.

Deployment

cp .env.example .env
# update values in .env
docker compose up --build

Contact

For responsible disclosure of security issues or any other questions, please reach out to [email protected]

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

49 stars

Watchers

0 watching

Forks

24 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — 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.