Skip to content

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

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