Skip to content
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

RLP - wrong length prefix #11

Open
TbLtzk opened this issue Jul 13, 2018 · 0 comments
Open

RLP - wrong length prefix #11

TbLtzk opened this issue Jul 13, 2018 · 0 comments

Comments

@TbLtzk
Copy link

TbLtzk commented Jul 13, 2018

There is a wrong length calculation in the RlpEncodeWholeHeaderWithVector method:

consider this payload:
"0xa9059cbb00000000000000000000000081aed945a46f8542d72cd207b1a2d2934eda71b50000000000000000000000000000000000000000000000000000065dd0837000"

This should give
b8 44 a9 05 9c bb 00 00 00 00 00 00 00 00 00 00 00 00 81 ae d9 45 a4 6f 85 42 d7 2c d2 07 b1 a2 d2 93 4e da 71 b5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 5d d0 83 70 00

but currently returns
b9 44 a9 05 9c bb 00 00 00 00 00 00 00 00 00 00 00 00 81 ae d9 45 a4 6f 85 42 d7 2c d2 07 b1 a2 d2 93 4e da 71 b5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 5d d0 83 70 00

with everything correct except the first byte b9 where it should be b8

TbLtzk pushed a commit to TbLtzk/web3-arduino that referenced this issue Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant