this project is forked from danfinlay/js-eth-personal-sign-examples
It is a useful implementation of EIP-712.
这个项目实现了使用metamask对结构化的消息或者可读友好的消息进行签名。签名的消息可以直接在metamask对话框中可视化,并且可读友好。
- sign readable message with metamask
- sign structured data with metamask
note : both of the 2 above are readable.
add app.js to make this really runnable, maybe more friendly for beginners.
- clone this project and import dependencies:
npm install- enter the folder and run:
npm start- open your browser(chrome recommended) and just type in:
localhost:8080
and just help yourself.
- translate and explain eip191
- translate and explain eip712
- translate and explain eip155