0

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 1

1

When designing the signature scheme, include in the signed data part enough information to uniquely identify what the user is signing.

1
  • Thank you! It just clicked and everything works as expected now :)
    – hextet
    Feb 8, 2018 at 1:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.