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

Merged
merged 2 commits into from
Jun 17, 2024

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
@realbigsean
Copy link
Member

@mergify queue

Copy link

mergify bot commented Jun 17, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 474c1b4

mergify bot added a commit that referenced this pull request Jun 17, 2024
@mergify mergify bot merged commit 474c1b4 into sigp:unstable Jun 17, 2024
28 checks passed
@dapplion dapplion deleted the blob-inclusion-fallible branch June 18, 2024 13:26
This pull request was closed.
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.

3 participants