Coder Social home page Coder Social logo

nightfall_phase2ceremony's Introduction

Nightfall MPC ceremony (phase 2)

Contribute

We use phase1 from the perpetual powers of tau. This phase2 is circuit-specific.

To contribute to Nightfall phase 2 ceremony:

git clone [email protected]:maticnetwork/nightfall_phase2ceremony.git
cd nightfall_phase2ceremony/mpc
./mpc_contribute.sh

This contribution will download the existent MPC params from a S3 bucket, and now it is your chance to provide some randomness to it.

When asked for a random input, you may use one of the following sources of entropy (suggestions from zokrates):

  • /dev/urandom from one or more devices
  • The most recent block hash
  • Randomly mashing keys on the keyboard

After finishing, you should have your new mpc params in ./nightfall.phase2.contrib.${NAME}.tgz. Please, send this file to us so that we can continue with the next contribution.

We will post your contribution in this repository. You can verify that the contribution we post matches the b2sum hash in params/out/xxx.b2sum.

Verify

Verify contributions. You will need to retrieve a copy of the compiled circuits and copy them in ./circuits as deposit, single_transfer, double_transfer, withdraw.

To perform verification,

cd nightfall_phase2ceremony/mpc
./mpc_verify.sh

Testing

You need to install Docker first. Then, to test, just run npm t on the root folder.

Requirements

We use b2sum. Please install it if you don't have it installed on your system.

Other stuff

ceremony, verification and beacon files are to be used internally in order to start, verify and apply random beacon

nightfall_phase2ceremony's People

Contributors

druiz0992 avatar signorecello 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.