Skip to content

Verify inclusion proof should not be fallible - #5787

Merged
mergify[bot] merged 2 commits into
sigp:unstablefrom
dapplion:blob-inclusion-fallible
Jun 17, 2024
Merged

Verify inclusion proof should not be fallible#5787
mergify[bot] merged 2 commits into
sigp:unstablefrom
dapplion:blob-inclusion-fallible

Conversation

@dapplion

Copy link
Copy Markdown
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

@realbigsean realbigsean left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to me

@jimmygchen jimmygchen left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

@mergify queue

@mergify

mergify Bot commented Jun 17, 2024

Copy link
Copy Markdown

queue

✅ The pull request has been merged automatically

Details

The pull request has been merged automatically at 474c1b4

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