Giter Club home page Giter Club logo

circuits's Introduction

circuits Tests

Circuits used by the iden3 core protocol.

The circuits of this repository are compatible with the go-iden3-core implementation

Building and trusted setup

First install the npm dependencies:

npm ci

Then build the circuit and do the "trusted" setup:

./compile-circuit.sh CIRCUIT_PATH PTAU_FILE_PATH

Examples:

./compile-circuit.sh circuits/auth.circom build/powersOfTau28_hez_final_16.ptau
./compile-circuit.sh circuits/stateTransition.circom build/powersOfTau28_hez_final_16.ptau

Work with s3_util.js script

Note: Run npm i and ensure that environment ACCESS_KEY_ID and SECRET_ACCESS_KEY variables are defined. Script works with ./build folder which is located in project.

export ACCESS_KEY_ID=...
export SECRET_ACCESS_KEY=...

s3_util.js was written for:

  • Uploading circuits which are located in./build folder to S3 bucket in zip file. Next example uploads to S3 bucket (default bucket is iden3-circuits-bucket) with name v1.zip.
node s3_util.js add v1
  • Compressing circuits from ./build folder to zip and save it to root project folder with name v1.zip. Example:
node s3_util.js zip v1
  • Removing zip file from S3 bucket (default bucket iden3-circuits-bucket) Example:
node s3_util.js rm v1

Push docker container to github packages

  1. Create PAT;
  2. Login to github registry:
    echo <PAT> | docker login ghcr.io -u <GITHUB_NAME> --password-stdin
  3. Build docker image with tag:
    docker build -t ghcr.io/iden3/circom:<version> .
  4. Push docker image:
    docker push ghcr.io/iden3/circom:<version>
  5. Update .github/workflows/main.yaml to the new image:
    ...
        container:
          image: ghcr.io/iden3/circom:<version>
    ...

circuits's People

Contributors

demonsh avatar obrezhniev avatar tronch0 avatar arnaucube avatar vmidyllic avatar ilya-korotya avatar olomix avatar kolezhniuk avatar ed255 avatar andriianchestnykh avatar dependabot[bot] avatar jbaylina 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.