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

fix!: update the implementation to correctly reflect the Verify and Validate roles for ShareProof and RowProof #1357

Merged
merged 10 commits into from
Jun 4, 2024

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented May 13, 2024

Description

Closes #1356

… `Validate` roles for `ShareProof` and `RowProof`
@rach-id rach-id self-assigned this May 13, 2024
@rach-id rach-id requested a review from a team as a code owner May 13, 2024 07:43
@rach-id rach-id requested review from rootulp and cmwaters and removed request for a team May 13, 2024 07:43
rootulp
rootulp previously approved these changes May 13, 2024
light/rpc/client.go Outdated Show resolved Hide resolved
types/share_proof.go Show resolved Hide resolved
types/share_proof_test.go Outdated Show resolved Hide resolved
types/share_proof_test.go Outdated Show resolved Hide resolved
Co-authored-by: Rootul P <rootulp@gmail.com>
rach-id and others added 3 commits May 13, 2024 15:27
Co-authored-by: Rootul P <rootulp@gmail.com>
…oof-methods

# Conflicts:
#	types/share_proof_test.go
light/rpc/client.go Show resolved Hide resolved
@rootulp rootulp requested review from evan-forbes and removed request for cmwaters May 13, 2024 14:50
Comment on lines 26 to 27
// HACKHACK performing subtraction with unsigned integers is unsafe.
if int(rp.EndRow-rp.StartRow+1) != len(rp.RowRoots) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we check this? i.e. rp.EndRow > rp.StartRow. If not, do we want to check this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we do. Will open a subsequent PR. thanks

@rach-id rach-id enabled auto-merge (squash) June 4, 2024 09:49
@rach-id rach-id merged commit e33c03c into main Jun 4, 2024
18 checks passed
@rach-id rach-id deleted the fix-proof-methods branch June 4, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Difference between Validate and Verify in ShareProof and RowProof
3 participants