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

feat!: unify the blob.Proof and the CommitmentProof #3821

Open
wants to merge 7 commits into
base: feature_branch_blob_proof
Choose a base branch
from

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Oct 7, 2024

Closes #3516 and #3582

Note: added couple notes for reviewers concerning the error handling

@rach-id rach-id self-assigned this Oct 7, 2024
@rach-id rach-id changed the base branch from main to feature_branch_blob_proof October 7, 2024 11:07
@github-actions github-actions bot added the external Issues created by non node team members label Oct 7, 2024
go.mod Outdated Show resolved Hide resolved
blob/service_test.go Outdated Show resolved Hide resolved
blob/service_test.go Outdated Show resolved Hide resolved
@rach-id rach-id changed the title Unify proofs feat!: unify the blob.Proof and the CommitmentProof Oct 7, 2024
@rach-id rach-id marked this pull request as draft October 7, 2024 11:15
@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 63.55932% with 43 lines in your changes missing coverage. Please review.

Please upload report for BASE (feature_branch_blob_proof@52bb142). Learn more about missing BASE report.

Files with missing lines Patch % Lines
blob/blob.go 66.66% 20 Missing and 7 partials ⚠️
nodebuilder/share/share.go 0.00% 12 Missing ⚠️
blob/service.go 91.30% 1 Missing and 1 partial ⚠️
nodebuilder/share/mocks/api.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                     Coverage Diff                      @@
##             feature_branch_blob_proof    #3821   +/-   ##
============================================================
  Coverage                             ?   45.40%           
============================================================
  Files                                ?      313           
  Lines                                ?    21753           
  Branches                             ?        0           
============================================================
  Hits                                 ?     9877           
  Misses                               ?    10856           
  Partials                             ?     1020           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rach-id rach-id marked this pull request as ready for review October 7, 2024 11:47
@cristaloleg cristaloleg added the kind:feat Attached to feature PRs label Oct 7, 2024
blob/service_test.go Outdated Show resolved Hide resolved
blob/service_test.go Outdated Show resolved Hide resolved
Comment on lines +299 to +300
// Note: this method can be deprecated because it's doing processing that can
// be done locally.
Copy link
Member

Choose a reason for hiding this comment

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

Since our API operates with header's height, deprecating this method requires users to download the header to get the hash.
So, I agree that we can deprecate this method in favour of proof public validate methods but only after migration from heights to hashes.

Copy link
Member Author

Choose a reason for hiding this comment

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

cool, we can create an issue for it

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I think we had somewhere such an issue or task inside the EPIC. I will double-check and close the issue in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

blob: Unify GetProof and GetCommitmentProof
4 participants