Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cleanpegasus/zero-knowledge-puzzles
Solutions to my homework from rareskills circom bootcamp
https://github.com/cleanpegasus/zero-knowledge-puzzles
Last synced: 18 days ago
JSON representation
Solutions to my homework from rareskills circom bootcamp
- Host: GitHub
- URL: https://github.com/cleanpegasus/zero-knowledge-puzzles
- Owner: CleanPegasus
- License: gpl-3.0
- Created: 2024-07-19T08:49:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T06:39:36.000Z (5 months ago)
- Last Synced: 2024-07-26T07:55:16.806Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 337 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zero knowledge puzzles
Zero knowledge puzzles to learn writing circuits in [circom](https://docs.circom.io/) lang.
## Installation
### Rust
Circom compiler requires rust .
For MacOs and Linux users,
```
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh```
### Circom compiler
Clone the circom repository
```
git clone https://github.com/iden3/circom.git
```Enter the repository
```
cargo build --release
```Install
```
cargo install --path circom
```### Libraries
```
npm install
```## Solving puzzles.
Write your solution .
Then run the following command
```
yarn test ./test/.js
```## Suggested Order for the Puzzles.
- [Addition](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Addition)
- [Equality](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Equality)
- [NotEqual](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/NotEqual)
- [Poseidon](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Poseidon)
- [ForLoop](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/ForLoop)
- [Power](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Power)
- [Range](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Range)
- [Salt](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Salt)
- [QuadraticEquation](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/QuadraticEquation)
- [Compile](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Compile)
- [Sudoku](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Sudoku)
- [Sujiko](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Sujiko)## Relevant links
- [CircomLib](https://github.com/iden3/circomlib )
- [Quickly compile circuits using this online browser compiler - Zkrepl](https://zkrepl.dev)
## Play Sujiko Game using circom proofs
Congrats on completing all the challenges, you can play Sujiko Game .
- Go to [Frontend](https://github.com/RareSkills/zero-knowledge-puzzles/tree/main/Sujiko/Frontend) directory
- Install libraries using```bash
npm install
```- Then, start the front end:-
```
npm run dev
```## Troubleshoot
Mac users getting this error on circom installation
```
error: linking with `cc` failed: exit status: 1
```Install xcode , then restart your mac .
```
xcode-select --install
```## Contributors
- [supernova](https://github.com/supernovahs)
- [tanim0la](https://github.com/tanim0la)
- [AymericRT](https://github.com/AymericRT)