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

fix long list serialization #23

Merged
merged 2 commits into from
Mar 7, 2024
Merged

fix long list serialization #23

merged 2 commits into from
Mar 7, 2024

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Mar 6, 2024

From the docs:

If the total payload of a list is more than 55 bytes long, the RLP encoding consists of a single byte with value 0xf7 plus the length in bytes of the length of the payload in binary form, followed by the length of the payload, followed by the concatenation of the RLP encodings of the items. The range of the first byte is thus [0xf8, 0xff] (dec. [248, 255]).

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign jsign marked this pull request as ready for review March 6, 2024 18:44
@jsign jsign requested a review from gballet March 6, 2024 18:44
src/main.zig Show resolved Hide resolved
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@gballet gballet merged commit 155275c into master Mar 7, 2024
4 checks passed
@jsign jsign deleted the jsign-fzl branch March 12, 2024 12:48
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

Successfully merging this pull request may close these issues.

2 participants