The simple signature verification process was completed during the experiment of the paper before. After a long time and the computer was reinstalled, I recalled it again today.
overall
This demo uses ganache's local Ethereum account, uses remix to write smart contracts and uses metamask to connect remix and ganache and deploy smart contracts and signatures. Use vscode to build a vue framework and display it on the front end.
Ganache
Ganache is a tool for local development and testing of Ethereum applications. It can simulate Ethereum networks and transactions, and provides a visual user interface to facilitate developers to debug and test.
Note the port number here.
metamask
Little Fox creates a new local connection
account is the account in ganache
remix
Remix connects to metamask and selects the corresponding account
to realize the identity registration function, part of the code
vscode
The front-end interface
calls the little fox signature
signature script:
need to quote web3 and replace abi: