MCPcopy Index your code
hub / github.com/boundless-xyz/risc0-solana

github.com/boundless-xyz/risc0-solana @v3.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.0 ↗ · + Follow
372 symbols 818 edges 95 files 34 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

[!IMPORTANT] main is the development branch. Application developers should use the latest release instead.

RISC Zero Solana

RISC Zero is a zero-knowledge verifiable general computing platform, with Solana integration. This repository contains our Solana verifier infrastructure and supporting code.

Components

Verifier Router

Our core verifier infrastructure allows secure on-chain verification of RISC Zero zkVM proofs. The router provides:

  • On-chain verification of Groth16 proofs from the RISC Zero zkVM
  • Dynamic verifier routing and management
  • Emergency stop functionality for security

[!IMPORTANT] If you want to verify RISC Zero proofs in your Solana program the Verifier Router is what you want to integrate with. See the list of verifier router deployments to find the existing deployment for your chain. Do not deploy your own copies of the Groth16 verifier or Verifier Router unless you know what you are doing.

Supporting Components

We provide several supporting libraries to help developers integrate with the verifier:

Getting Started

Full documentation for using RISC Zero, including guides for writing zkVM programs, and more can be found at our Developer Documentation.

Quick Links

Audits

An audit was completed by Veridise as of commit 84a1929 with suggested fixes applied in 5d7f7f9.

See the full audit report

Extension points exported contracts — how you extend this code

DeploymentOutput (Interface)
(no doc)
solana-verifier/scripts/utils/deploy.ts
FireblocksConfig (Interface)
(no doc)
solana-verifier/scripts/utils/fireblocksSigner.ts
SendTransactionParams (Interface)
(no doc)
solana-verifier/scripts/utils/utils.ts
PDA (Interface)
(no doc)
solana-verifier/scripts/utils/utils.ts
SolanaRpcInformation (Interface)
(no doc)
solana-verifier/scripts/utils/utils.ts

Core symbols most depended-on inside this repo

getAccountMetaFactory
called by 14
solana-verifier/scripts/verify-router/shared/index.ts
createLogger
called by 12
solana-verifier/scripts/utils/utils.ts
getRouterPda
called by 11
solana-verifier/scripts/utils/utils.ts
transferOwnership
called by 10
solana-ownable/test-program/tests/test-program.ts
sendTransaction
called by 9
solana-verifier/scripts/utils/utils.ts
expectError
called by 8
solana-ownable/test-program/tests/test-program.ts
getNextAccount
called by 8
solana-verifier/scripts/loaderV3/instructions/deployWithMaxDataLen.ts
getAccountMetaFactory
called by 8
solana-verifier/scripts/loaderV3/shared/index.ts

Shape

Function 321
Class 23
Method 12
Enum 11
Interface 5

Languages

TypeScript73%
Rust27%

Modules by API surface

solana-verifier/scripts/utils/utils.ts29 symbols
solana-verifier/programs/groth_16_verifier/src/lib.rs26 symbols
solana-verifier/scripts/verify-router/accounts/verifierEntry.ts10 symbols
solana-verifier/programs/groth_16_verifier/src/client.rs10 symbols
solana-verifier/scripts/verify-router/accounts/verifierRouter.ts9 symbols
solana-verifier/programs/verifier_router/src/lib.rs9 symbols
solana-ownable/test-program/tests/test-program.ts9 symbols
solana-ownable/ownable/src/lib.rs9 symbols
solana-verifier/scripts/verify-router/instructions/verify.ts8 symbols
solana-verifier/scripts/verify-router/instructions/initialize.ts8 symbols
solana-verifier/scripts/verify-router/instructions/emergencyStopWithProof.ts8 symbols
solana-verifier/scripts/verify-router/instructions/emergencyStop.ts8 symbols

For agents

$ claude mcp add risc0-solana \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page