This repository is part of a homework submission of a blockchain course
- Make sure you have node and python installed on your machine
- run
npm install -g solc && npm install
- register an account at metamask and infura.io
- create a .env file, see an example at .env.example
- replace WEB3_PROVIDER in .env with an infura generated url, e.g. https://ropsten.infura.io/v3/loremipsum
- replace PRIVATE_KEY in .env with your metamask private key
- replace HASH_SECRET in .env with any secret, e.g. TaiHasBigLegs
- replace studentID in p3.sol
- run
solcjs --bin --abi p3.sol
- run
node p2.js
to finish question 2 - run
node p3.js
to finish question 3