三十六: 验证签名
三十六: 验证签名
验证签名步骤:
1:得到一个消息: message:2:把消息进行keccak256得到hash: hash(message)3: 把消息进行keccak256得到hash进行链上签名: sign(hash(message), private key)|offchain4:使用recover验证:ecrecover(hash(message)1:得到一个消息: message:2:把消息进行keccak256得到hash: hash(message)3: 把消息进行keccak256得到hash进行链上签名: sign(hash(message), private key)|offchain4:使用recover验证:ecrecover(hash(message)