Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vplasencia/semaphorev4-generate-zk-artifacts
Generate artifacts for all depths of the Semaphore v4 circuit
https://github.com/vplasencia/semaphorev4-generate-zk-artifacts
Last synced: about 1 month ago
JSON representation
Generate artifacts for all depths of the Semaphore v4 circuit
- Host: GitHub
- URL: https://github.com/vplasencia/semaphorev4-generate-zk-artifacts
- Owner: vplasencia
- Created: 2024-01-10T15:50:36.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-19T14:44:44.000Z (5 months ago)
- Last Synced: 2024-06-20T01:34:00.911Z (5 months ago)
- Language: Shell
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/vplasencia/semaphorev4-generate-zk-artifacts.git
```### Install dependencies
```bash
yarn
```### Generate the zk artifacts for tree depth 1 - 32
```bash
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.
```text
├── 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
```## Versions used to generate the zk artifacts for Semaphore v4
```bash
circom compiler 2.1.7
``````bash
[email protected]
```