Skip to content

IntelMin/signature-verification-model

Repository files navigation

Signature Verification Model

Simple Signature Verification Model

  1. Clone repo
git clone https://github.com/IntelMin/signature-verification-model.git
  1. Install yarn packages
cd signature-verification-model
yarn install
  1. 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>
  1. Test the model You have to run the server before running tests.
yarn server
yarn test
  1. Deploy the contract
yarn deploy
  1. Verify the contract
npx hardhat verify --network bsctest <YOUR_DEPLOYED_ADDRESS> "0x0000000000000000000000000000000000000000"

About

Basic flow of ECDSA signature verification model using Solidity and Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published