Is there any way to ecrecover something twice? (I.e. something signed by two different people)

by AlwaysQuestioning   Last Updated March 24, 2019 09:28 AM

I have a signature. That signature was then signed by someone else.

If I pass this doubly-signed message as an argument to my function, is there a way to recover both signers?



Answers 1


Depends on how you structure this but I am assuming you have an initial message, and the second signature's message hash is the first signature itself.

If this is the case, you would have to know the dynamically created signature which I presume you pass as the message hash of the second message; then you would have to know the message hash of the first message.

You do this to recover two addresses...but "double signing" would be a bit redundant at that point when you could simply have a function that takes and ecrecover's two separate signatures and get the same result with less complexity.

ReyHaynes
ReyHaynes
June 10, 2018 15:56 PM

Related Questions


Updated June 12, 2019 04:28 AM

Updated September 14, 2018 22:28 PM

Updated August 28, 2017 00:28 AM

Updated May 09, 2019 09:28 AM

Updated September 16, 2018 13:28 PM