I'm attempting to play around with signature verification in solidity through the use of ecrecover
and have gotten to the point of being able to verify the address which was used to sign a particular message. However, the part where I am getting stuck is verifying the validity of the data that was signed, so that I can ensure that a particular piece of data was signed and submitted, and that another incorrect piece of data which was signed by the same person wasn't submitted instead?
1 Answer
When designing the signature scheme, include in the signed data part enough information to uniquely identify what the user is signing.