Skip to content

succinctlabs/sp1-contract-call

Repository files navigation

SP1 Contract Calls

Generates zero-knowledge proofs of Ethereum smart contract execution.

Documentation

Caution

This repository is not meant for production usage.

Overview

This library (sp1-contract-call, or sp1-cc for short), provides developers with a simple interface to efficiently generate a ZKP of Ethereum smart contract execution offchain, that can be verified cheaply onchain for ~280k gas. This enables developers to verifiably run very expensive Solidity smart contract calls and be able to use this information in their onchain applications. Developers simply specify their Solidity function interface in Rust using the alloy_sol_macro library and can write an SP1 program to generate these proofs. Let's check out an example below:

Acknowledgments

  • Unstable.Money: Developed the smart contract featured in the multiplexer example.
  • SP1: A fast, feature-complete zkVM for developers that can prove the execution of arbitrary Rust (or any LLVM-compiled) program.

About

Generates zero-knowledge proofs of Ethereum smart contract execution.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6