vplasencia / semaphorev4-generate-zk-artifacts

Generate artifacts for all depths of the Semaphore v4 circuit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate Semaphore v4 zk artifacts

This is a project to generate all the zk-artifacts for Semaphore v4.

Warning

These zk-artifacts are just for testing. Do not use them in production applications.

Run Locally

Clone the Repository

git clone https://github.com/vplasencia/semaphorev4-generate-zk-artifacts.git

Install dependencies

yarn

Generate the zk artifacts for tree depth 1 - 32

yarn run:all

The command will take some minutes (around 10 min in a MacBook Pro, Apple M2 Pro, 16 GB).

The zk-artifacts needed to use Semaphore will be inside a folder named artifacts with the following structure.

├── artifacts
│   ├── 1
│   │   ├── semaphore.wasm
│   │   ├── semaphore.zkey
│   │   ├── semaphore.json
│   ├── 2
│   │   ├── semaphore.wasm
│   │   ├── semaphore.zkey
│   │   ├── semaphore.json
│   ├── 3
│   │   ├── semaphore.wasm
│   │   ├── semaphore.zkey
│   │   ├── semaphore.json

        ...

│   ├── 32
│   │   ├── semaphore.wasm
│   │   ├── semaphore.zkey
│   │   ├── semaphore.json

About

Generate artifacts for all depths of the Semaphore v4 circuit


Languages

Language:Shell 53.8%Language:TypeScript 28.5%Language:Circom 17.7%