This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the ecosystem.
The project comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts. It also comes with a variety of other tools, preconfigured to work with the project code.
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
/* Signature Verification
How to Sign and Verify
- Create message to sign
- Hash the message
- Sign the hash (off chain, keep your private key secret)
- Recreate hash from the original message
- Recover signer from signature and hash
- Compare recovered signer to claimed signer
- return true if it correct */