Giter VIP home page Giter VIP logo

noir-storage-proofs-demo's Introduction

Noir Storage Proofs Demo

Short and easy source code demonstrating how to perform storage proofs in noir. An accompanying node script is included to fetch proofs from an ethereum node.

Getting Started

Required Tools

  • Nargo

  • Node

  • You will first need to have noir and nargo installed, you can find installation instructions here. (Alternatively the github repo lives here)

  • The typescript portion of this code uses the alchemy sdk (I yoinked the get proof code from their docs, its useful as it also includes the state root in one call), so you will require an alchemy key to run it. Alternatively the code can be refactored it use your own node.

  • This circuit was tested with noir version @ commit f3800c52c81a27d3b52cfe23f45e764234b1c268

Building To run the typescript to get the proof you can run:

cd ts
npm install
ts-node index.ts

To create proofs:

# assuming you are already in the root of the repo
# generates a file "p.proof"
nargo prove p

# create a solidity verifier using
nargo codegen-verifier

Acknowledgements

Disclaimer

This code is provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the circuits or smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.

noir-storage-proofs-demo's People

Contributors

maddiaa0 avatar

Stargazers

 avatar porco avatar nullity avatar Ginika Chinonso avatar Harvey Specter avatar  avatar Etch avatar sam avatar 0xKitetsu avatar  avatar Shun Kakinoki avatar josh crites avatar

Watchers

 avatar  avatar

Forkers

jrocco2

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.