GitHub - RareSkills/零知识谜题

  • GitHub
  • 发布于 2024-08-22 15:49
  • 阅读 19

该项目提供了一系列练习以帮助用户学习Circom语法,并创建与以太坊虚拟机(EVM)兼容的零知识程序。它包含了多种零知识难题和使用文档,能有效支持学习和测试各类算法和程序。项目提供结构清晰,步骤明确的安装和使用说明,适合加密技术与区块链技术的学习者使用。

通过练习学习 Circom 的语法,并创建与 EVM 兼容的零知识程序。

https://github.com/RareSkills/zero-knowledge-puzzles

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

yarn install 

Using Docker for testing

Ensure you have docker installed and running in your system

Then to run a test against the circuit, please pass the relative path to the Javascript test file

yarn run docker:test test/Add.js  

Solving puzzles.

Write your solution .

Then run the following command

yarn test ./test/<TestName>.js

Suggested Order for the Puzzles.

Relevant links

Play Sujiko Game using circom proofs

Congrats on completing all the challenges, you can play Sujiko Game .

  • Go to Frontend directory
  • Install libraries using
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

点赞 0
收藏 0
分享
本文参与登链社区写作激励计划 ,好文好收益,欢迎正在阅读的你也加入。

0 条评论

请先 登录 后评论
GitHub
GitHub
江湖只有他的大名,没有他的介绍。