evolutionlandorg / id

👽contracts and scripts of evolution land id
9 stars 2 forks source link

Improve the signed data format according to EIPs #5

Open hackfisher opened 6 years ago

hackfisher commented 6 years ago

https://github.com/ethereum/EIPs/blob/master/EIPS/eip-191.md

And according to design, network_id may need to added too.

消息签名格式, nonce主要是为了replay attack和防止服务器端Amount有变化后可以检测同一个nonce的多次签名。

[(Network ID, Ethereum Address, Nonce, Amount, Timestamp) , sig]