Skip to content

sekisamu/js-eth-personal-sign-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Signed message

this project is forked from danfinlay/js-eth-personal-sign-examples

Description

It is a useful implementation of EIP-712.

这个项目实现了使用metamask对结构化的消息或者可读友好的消息进行签名。签名的消息可以直接在metamask对话框中可视化,并且可读友好。

Specification

  1. sign readable message with metamask
  2. sign structured data with metamask

note : both of the 2 above are readable.

New-Added

add app.js to make this really runnable, maybe more friendly for beginners.

How to use

  1. clone this project and import dependencies:
npm install
  1. enter the folder and run:
npm start
  1. open your browser(chrome recommended) and just type in:
localhost:8080

and just help yourself.

TODO List

  • translate and explain eip191
  • translate and explain eip712
  • translate and explain eip155

About

用metamask签名可读的、结构化的消息并在页面展示

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 99.9%
  • HTML 0.1%