noway / nzcb

NZ COVID Badge - Contract repo

Home Page:https://nzcb.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NZ COVID Badge - Contract repo

Info & FAQ

Read the website for more info.

Technical info

Solmate's ERC721 is used alongside snarkjs PlonkVerifier. EllipticCurve.sol is used for verifying NZ COVID Pass signatures.

Develop

  • Create .env file in the root directory of the project
  • Populate it env variables
    • Use .env.example as a reference.
  • Run yarn

Test

  • make
  • npx hardhat test

Deploy

  • make
  • Either npx hardhat run scripts/deployLive.ts --network <network> or npx hardhat run scripts/deployExample.ts --network <network>

Verify on Etherscan

  • npx hardhat verify --network <network> <plonk_address>
  • npx hardhat verify --network <network> <nzcb_address> "NZ COVID Badge" "NZCP" <plonk_address>

Deployed addresses

Live passes

Polygon Mainnet

Polygon Mumbai

Ethereum Rinkeby

Example passes

Ethereum Rinkeby

Tech Spec

Related repos

License

MIT License

About

NZ COVID Badge - Contract repo

https://nzcb.netlify.app

License:MIT License


Languages

Language:Solidity 58.8%Language:TypeScript 38.6%Language:JavaScript 1.2%Language:Makefile 0.9%Language:Shell 0.5%