Read the website for more info.
Solmate's ERC721 is used alongside snarkjs PlonkVerifier. EllipticCurve.sol is used for verifying NZ COVID Pass signatures.
- Create
.env
file in the root directory of the project - Populate it env variables
- Use
.env.example
as a reference.
- Use
- Run
yarn
make
npx hardhat test
make
- Either
npx hardhat run scripts/deployLive.ts --network <network>
ornpx hardhat run scripts/deployExample.ts --network <network>
npx hardhat verify --network <network> <plonk_address>
npx hardhat verify --network <network> <nzcb_address> "NZ COVID Badge" "NZCP" <plonk_address>
- PlonkVerifier - https://polygonscan.com/address/0x69972e8fc3d0582748c8af359632812640357392
- NZCOVIDBadge - https://polygonscan.com/address/0x14ffb19a685bb8ec4b925604280f7e441a343af9
- PlonkVerifier - https://mumbai.polygonscan.com/address/0x69972e8fc3d0582748c8af359632812640357392
- NZCOVIDBadge - https://mumbai.polygonscan.com/address/0x14ffb19a685bb8ec4b925604280f7e441a343af9
- PlonkVerifier - https://rinkeby.etherscan.io/address/0x46f1d10566037532074ef3f4b3d812be4bc67689
- NZCOVIDBadge - https://rinkeby.etherscan.io/address/0xd9f461702019a63318f5acb9cea63bcbdc186446
- PlonkVerifier - https://rinkeby.etherscan.io/address/0xa63202d6f8c260da83ca3ef35d209b9af5ff7fea
- NZCOVIDBadge - https://rinkeby.etherscan.io/address/0xba9104c6220310582bc6f7b8dcde445934f1bd5a
MIT License