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

Implement new ssz spec encoding and cli tool #2

Merged
merged 6 commits into from
Jun 8, 2022
Merged

Implement new ssz spec encoding and cli tool #2

merged 6 commits into from
Jun 8, 2022

Conversation

henridf
Copy link
Owner

@henridf henridf commented Jun 8, 2022

No description provided.

This change adds support to read RLP with/without receipts, likewise
for writing RLP. Along with this change, re-do the command name and flags.
Separate BlockArchive into two top-level structures: a header and
body.

The resulting file is now the concatenation of the encodings of the
two structs.

This format has two benefits:
- Supports reading a header separately, without having to stream
in the entire file in order to decode the entire container.
- Facilitates computing  the hash tree root over the blocks only.
-hash computes the hash_tree_root over the block list and prints it
-info reads the header and prints it
@henridf henridf merged commit feea23f into master Jun 8, 2022
@henridf henridf deleted the wip-v2 branch June 8, 2022 15:53
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.

None yet

1 participant