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

Verify inclusion proof should not be fallible #5787

Open
wants to merge 2 commits into
base: unstable
Choose a base branch
from

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Adding the verify inclusion proof function for data columns I noticed that verify_blob_sidecar_inclusion_proof is fallible due to the need to do math with the EthSpec variables.

Proposed Changes

Since the EthSpec values are non-configurable and properly chosen, it's not necessary to make verify_blob_sidecar_inclusion_proof fallible. A unit test in EthSpec ensures that the values are correctly chosen and then we can safely expect.

@dapplion dapplion added the ready-for-review The code is ready for review label May 24, 2024
Copy link
Member

@realbigsean realbigsean left a comment

Choose a reason for hiding this comment

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

Makes sense to me

Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

Looks good! I think this is a low risk change if tested (as things would just blow up if this is doesn't work) and should be good to merge.

I wrote some tests here and they pass on your branch:
dapplion#33

@jimmygchen jimmygchen added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels May 29, 2024
* Add blob sidecar inclusion test.

* Fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants