Code Monkey home page Code Monkey logo

sp1-proof's Introduction

SP1-Proof

sp1 SP1 is a performant, open-source zero-knowledge virtual machine (zkVM) that verifies the execution of arbitrary Rust (or any LLVM-compiled language) programs.

Genrating ZK Proof with Succinct SP1

Install dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install cmake pkg-config libssl-dev build-essential -y

# install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"

# install SP1
curl -L https://sp1.succinct.xyz | bash
source /root/.bashrc
sp1up

# check version
cargo +succinct --version

Create an SP1 Project

cargo prove new fibonacci
cd fibonacci/script
  1. execute the program without proof
    RUST_LOG=info cargo run --release -- --execute
    
Screenshot 2024-08-09 at 11 59 46 AM
  1. execut the program with proof
    RUST_LOG=info cargo run --release -- --prove
    
    Screenshot 2024-08-09 at 12 02 45 PM

sp1-proof's People

Contributors

sarox0987 avatar

Watchers

 avatar

Forkers

theshaho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.