Simple Signature Verification Model
- Clone repo
git clone https://github.com/IntelMin/signature-verification-model.git
- Install yarn packages
cd signature-verification-model
yarn install
- Rename
.env.example
to.env
and paste your mnemonic and bscscan api key. They will be used for deploying and verifying contracts on live networks
BSCSCAN_API=<YOUR-BSCSCAN-API-KEY>
DEPLOYER_PRIVATE_KEY=<YOUR-PRIVATE-KEY>
CMC_APIKEY=<YOUR-COINMARKETCAP-API-KEY>
BSCTEST_RPC_URL=https://data-seed-prebsc-1-s1.binance.org:8545/
SIGNER_PRIVATE_KEY=<SIGNER-PRIVATE-KEY>
SIGNER_ADDRESS=<SIGNER-ADDRESS>
- Test the model You have to run the server before running tests.
yarn server
yarn test
- Deploy the contract
yarn deploy
- Verify the contract
npx hardhat verify --network bsctest <YOUR_DEPLOYED_ADDRESS> "0x0000000000000000000000000000000000000000"