Git Product home page Git Product logo

arkworks_learn's Introduction

Introduction

This is an example of using arkworks' libraries to create zksnark.

Arkworks have many great work about zksnark, including groth16, and ripp which is aggregated groth16.

The prover P has a matrix multiplication equation,

X * W = Y

where X and Y are public inputs, W is the witness (secret information only known to P).

P could generate proof about the matrix multiplication computation.

The verifier V could verify the proof.

If the result is true, then V could trust P.

Description

main.rs: it uses groth16 library to generate and verify one proof.

Cargo.toml: define all dependencies and libraries used in the project.

ripp/: contains the source code copied from ripp.

bin/batch_groth16.rs: it uses ripp library to aggregate 1024 proofs.

How to run

  1. make sure you have rust environment

  2. run the following command in arkworks_learn directory

    cargo run --bin arkworks_learn 
    cargo run --bin batch_groth16

arkworks_learn's People

Contributors

amyzx avatar

Stargazers

 avatar

Watchers

 avatar

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.