├── .env.example ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── aztec_logo.png ├── battlezips.png ├── battlezips_board_example.png ├── circuits ├── board │ ├── Nargo.toml │ └── src │ │ └── main.nr └── shot │ ├── Nargo.toml │ └── src │ └── main.nr ├── contracts ├── BattleshipGame.sol ├── BoardVerifier.sol ├── Forwarder.sol ├── IBattleshipGame.sol ├── IVerifier.sol └── ShotVerifier.sol ├── hardhat.config.ts ├── modules.d.ts ├── package.json ├── scripts ├── deploy.ts ├── generateBoardWitness.ts ├── generateContracts.ts ├── generateFrontendData.ts ├── generateShotWitness.ts └── verify.ts ├── test ├── circuit.ts ├── game.ts └── utils │ └── index.ts ├── tsconfig.json ├── utils ├── index.ts ├── safeGenerateContract.sh └── safeGenerateProof.sh └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.nr linguist-language=rust -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/README.md -------------------------------------------------------------------------------- /aztec_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/aztec_logo.png -------------------------------------------------------------------------------- /battlezips.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/battlezips.png -------------------------------------------------------------------------------- /battlezips_board_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/battlezips_board_example.png -------------------------------------------------------------------------------- /circuits/board/Nargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/circuits/board/Nargo.toml -------------------------------------------------------------------------------- /circuits/board/src/main.nr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/circuits/board/src/main.nr -------------------------------------------------------------------------------- /circuits/shot/Nargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | authors = [""] 3 | compiler_version = "0.1" 4 | 5 | [dependencies] -------------------------------------------------------------------------------- /circuits/shot/src/main.nr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/circuits/shot/src/main.nr -------------------------------------------------------------------------------- /contracts/BattleshipGame.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/contracts/BattleshipGame.sol -------------------------------------------------------------------------------- /contracts/BoardVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/contracts/BoardVerifier.sol -------------------------------------------------------------------------------- /contracts/Forwarder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/contracts/Forwarder.sol -------------------------------------------------------------------------------- /contracts/IBattleshipGame.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/contracts/IBattleshipGame.sol -------------------------------------------------------------------------------- /contracts/IVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/contracts/IVerifier.sol -------------------------------------------------------------------------------- /contracts/ShotVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/contracts/ShotVerifier.sol -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /modules.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'circomlibjs' -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/package.json -------------------------------------------------------------------------------- /scripts/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/scripts/deploy.ts -------------------------------------------------------------------------------- /scripts/generateBoardWitness.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/scripts/generateBoardWitness.ts -------------------------------------------------------------------------------- /scripts/generateContracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/scripts/generateContracts.ts -------------------------------------------------------------------------------- /scripts/generateFrontendData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/scripts/generateFrontendData.ts -------------------------------------------------------------------------------- /scripts/generateShotWitness.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/scripts/generateShotWitness.ts -------------------------------------------------------------------------------- /scripts/verify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/scripts/verify.ts -------------------------------------------------------------------------------- /test/circuit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/test/circuit.ts -------------------------------------------------------------------------------- /test/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/test/game.ts -------------------------------------------------------------------------------- /test/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/test/utils/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/utils/index.ts -------------------------------------------------------------------------------- /utils/safeGenerateContract.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/utils/safeGenerateContract.sh -------------------------------------------------------------------------------- /utils/safeGenerateProof.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/utils/safeGenerateProof.sh -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BattleZips/BattleZips-Noir/HEAD/yarn.lock --------------------------------------------------------------------------------