Rn I have an rlp encoded signed transaction. I already have extracted the v r and s values. Now I just need to know what to pass in the ecrecover as the hash so i get the correct sender address

May 27, 2022, 4:43 PM
You need to find out what tx format you're using and then encode and hash the data accordingly
I.e. whether you're using a legacy tx or a type 2 tx
Check out the EIP I linked to earlier for this: https://eips.ethereum.org/EIPS/eip-2718
May 27, 2022, 4:47 PM

© 2024 Draquery.com All rights reserved.