Skip to content

NethermindEth/stellar-risc0-verifier

Important

This project has not been audited.

Stellar RISC Zero Verifier

License Docs Build Lint Coverage Dependencies UB

On-chain RISC Zero proof verification for Stellar. The contract architecture mirrors the version-management pattern from risc0-ethereum.

Getting started

More in the docs index.

Architecture

                    ┌─────────────────────┐
                    │  TimelockController │──── proposer / executor / canceller
                    │   (owns the router) │
                    └──────────┬──────────┘
                               │ owner
                    ┌──────────▼──────────┐
                    │   VerifierRouter    │──── routes verify() by 4-byte selector
                    └──────────┬──────────┘
                               │ selector lookup
              ┌──────────────────────────────────┐
              │                                  │
   ┌──────────▼──────────┐            ┌──────────▼──────────┐
   │   EmergencyStop     │            │   EmergencyStop     │
   │  (wraps verifier)   │            │  (wraps verifier)   │
   └──────────┬──────────┘            └──────────┬──────────┘
              │                                  │
   ┌──────────▼──────────┐            ┌──────────▼──────────┐
   │  Groth16Verifier    │            │  (other verifiers)  │
   └─────────────────────┘            └─────────────────────┘
  • TimelockController: governance; all router mutations go through a delay
  • VerifierRouter: routes verify() by the first 4 bytes of the proof seal
  • EmergencyStop: per-verifier circuit breaker, permanently disables a verifier
  • Groth16Verifier: verifies RISC Zero Groth16 (BN254) proofs

See architecture for the full design.

Contributing

Please read CONTRIBUTING.md before opening a PR.

Security

To report a vulnerability, see SECURITY.md.

License

Apache 2.0

About

Implementation of the Risc0 verifier for Stellar blockchain

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors