geth 1.5 eth.sign - ecrecover possible problem #60
Comments
This worked as expected before geth 1.5 |
@kenshyx do I understand correctly that geth <1.5 output works with ethereumjs-util, while geth 1.5 does not? |
yes |
@kenshyx have you reported it to go-ethereum? Would you be able to run the same command, with the same keys and inputs on an old and current geth version to see if the output differs? |
Don't know if its because of geth or because of |
I didnt report to go-ethereum |
If you can, please paste here the entire command and the output you're getting from geth. It would be easier to figure out if it is a bug here. |
Only the signed message was missing from my description: |
@kenshyx can you recover the signature with other tools to the address you're looking for? |
From https://github.com/ethereum/go-ethereum/releases/tag/v1.5.0:
|
Hello @axic, I get the same result when using the |
It seems to be fixed in |
Never mind, it doesn't work >_> |
Is there any ETA on the the resolution of this issue? |
@mchlmicy can you please confirm that the message includes the header added by Geth?
|
I was able to work through it using the |
Hello, I've tested
ecrecover
func with the latest geth version and it's giving me an unexpected result.Description:
0x0bf46433510ca9ac7b2203e5477163cfa1f72679cecf71c03a454e3313477bad
I signed it using web3.eth.sign from address0xc7fea2aa9b1475e09f6325e3f6586170f3a1c470
and obtained the vrs usginfromRpcSig
bufferToHex(ecrecover(toBuffer(message), v, r, s))
I obtain this public key0xb94b0ad2c1bab5a27c1b74fb477024b44585fe5cc0da2c1091e4c01bb9adc9dff4cf831b649caacdcce38f749c031d29342adf643aac719a640c90f5e4c26e26
0x19e8c0753dd4a51903241be7ad6d32d02ea7c6a5
which is different from the one used to sign the message.The text was updated successfully, but these errors were encountered: