A secure and efficient implementation of the
├── lib: Contains dependencies managed as Git submodules. ├── src: Main directory containing smart contracts. ├── test: Test files for Commit-Reveal^2 implementations. │ ├── shared: Utility contracts, including quick sorting library.
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --version
and you see a response likeforge 0.2.0 (75fc63b 2024-12-05T00:23:16.738603000Z)
- You'll know you did it right if you can run
make install
make build
make test
Test results will be logged to the console. Alternatively, you can review the results in the following JSON files:
- commitreveal2hybrid.json
- commitreveal2onchain.json