0

As stated in the question, I have the v, r and s values of a signature given and am trying to find the belonging address. All questions similar to this solved it by either using a solidity smart contract or web.js. Is there a way to do this without using these two resources, and preferably, any other external resources?

  • You will need at least a library that implements Elliptic Curve Cryptography and Keccak-256 hashing function. Then it is matter to implement ECDSA recover algorithm from Ethereum Yellow Paper. – Ismael Apr 20 at 6:32
1

Any package that supports eliptic curve will do as log as you have: s,v,r, and the message. The recovery will return the publickey and the address is the first 20 bytes of the hash of the public key.

See this answer for more details on how the recovery is done and how the values s,r, and v are used. (https://bitcoin.stackexchange.com/questions/38351/ecdsa-v-r-s-what-is-v)

Hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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