Coder Social home page Coder Social logo

noway / nzcb Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 415 KB

NZ COVID Badge - Contract repo

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

License: MIT License

Shell 0.48% JavaScript 1.21% Solidity 58.79% TypeScript 38.62% Makefile 0.90%
circom covid-19 erc721 newzealand nzcp snarkjs solmate vaccine vaccine-passports zk

nzcb's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.