-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange buffer hex post signature #36
Comments
Hello @woywoy123 I'm glad you liked the project. Please, give me some time to investigate this thing. Also, It would be great if you sent me the code, not a screenshot :) Thank you! |
bro can u provide full code sample please? |
Apologies for the delay, here is a minimal example as shown in the screenshot =)
|
Also another thing that caught my attention was the chainid when one uses it for v. It seems that eth_account yields a different result, not sure why this is. In my usecase, I just subtract 28 - sign_data.v, which seems to be somewhat consistent with what they have. |
sorry i don't understand what u say. And using the above code my result is little bit different. the output i got is
|
Apologies for the very delayed response, I have been rather busy. I have created a simple example of what I am suggesting to be inconsistent:
If you insert the same UUID into the above, you may notice that the signature produced by eth_account is slightly different than what is being generated with libethc. Specifically, "v" is the issue. |
Hello there,
First off, absolutely amazing project. I am trying to compare the output of the library to something like eth_account for python and Web3. I found this strange offset
f842a0
after signing a simple message. The full source code is given in the screenshot below. Notice I am using the private key as was given in the Examples section of the docs.The above code, seems to return the following signature:
f842a0
40911813bd523b3dbc83f5eb06d024fb43d09609068842dba37c53527fabc33e
a0
3ec391e743b820de01600842f7b23af1b19786e5778766f7e94798bfe500807a
With input keccak hash being:
85f11dc9d9ca7c444897e464dcc1bf1b936931cba10fe3b7b4e58b516a6851a8
What I find relatively interesting is that doing the exact same operation using eth_account, one yields the following signature;
0x40911813bd523b3dbc83f5eb06d024fb43d09609068842dba37c53527fabc33e
3ec391e743b820de01600842f7b23af1b19786e5778766f7e94798bfe500807a
1c
Notice how there are two intermediate hex strings within the signatures (f842a0 and a0). I am not quite sure where these are originating from.
The text was updated successfully, but these errors were encountered: