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

update (Des|S)erializeProof to the electra proof format #324

Merged
merged 6 commits into from
Mar 29, 2023

Conversation

gballet
Copy link
Member

@gballet gballet commented Feb 3, 2023

This is a first attempt at using the new electra proof format.

It still uses the intermediate Proof structure, which was used to deserialize the binary proof format. The final version of this code should remove this intermediate step entirely. But this change is already complex enough to warrant an intermediate step. Nonetheless, it this new proof format would simplify TreeFromProof as there is no longer a need to go over multiple keys with the same stem.

* fix: add custom JSON serializers

* move marshallers to their own file
#331)

* fix stem serialization

* add a 0x prefix to hex strings

* fix: set currentValue to null for a missing key

* fix: lowercase for  IPAProof in json payload
Copy link
Member Author

@gballet gballet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's ready to go, but in order to be merged, the block replay code has to be successfully rebased on top of beverly-hills-head otherwise a lot of things are going to break and it will become a maintenance nightmare.

@gballet gballet merged commit 6b398b7 into master Mar 29, 2023
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