该项目提供了一系列练习以帮助用户学习Circom语法,并创建与以太坊虚拟机(EVM)兼容的零知识程序。它包含了多种零知识难题和使用文档,能有效支持学习和测试各类算法和程序。项目提供结构清晰,步骤明确的安装和使用说明,适合加密技术与区块链技术的学习者使用。
通过练习学习 Circom 的语法,并创建与 EVM 兼容的零知识程序。
https://github.com/RareSkills/zero-knowledge-puzzles
Circom compiler requires rust . For MacOs and Linux users,
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | shClone the circom repository
git clone https://github.com/iden3/circom.gitEnter the repository
cargo build --releaseInstall
cargo install --path circomyarn install 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  Write your solution .
Then run the following command
yarn test ./test/<TestName>.jsCongrats on completing all the challenges, you can play Sujiko Game .
npm installnpm run devMac users getting this error on circom installation
error: linking with `cc` failed: exit status: 1Install xcode , then restart your mac .
xcode-select --install 
                如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!