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

docs: clarify rowRoots to Repair #240

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Jul 7, 2023

Closes #220

@rootulp rootulp self-assigned this Jul 7, 2023
@rootulp rootulp enabled auto-merge (squash) July 7, 2023 14:55
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #240 (16462a9) into main (6042512) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #240   +/-   ##
=======================================
  Coverage   77.96%   77.96%           
=======================================
  Files           7        7           
  Lines         531      531           
=======================================
  Hits          414      414           
  Misses         71       71           
  Partials       46       46           
Impacted Files Coverage Δ
extendeddatacrossword.go 69.65% <ø> (ø)

Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

👍

Copy link

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +59 to +62
// Repair attempts to repair an incomplete extended data square (EDS). The
// parameters rowRoots and colRoots are the expected Merkle roots for each row
// and column. rowRoots and colRoots are used to verify that a repaired row or
// column is correct. Prior to the repair process, if a row or column is already

Choose a reason for hiding this comment

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

Q: you can technically repair an EDS without the rowRoots and colRoots right?

Copy link
Collaborator Author

@rootulp rootulp Jul 10, 2023

Choose a reason for hiding this comment

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

Yes it is possible. I'm pretty confident it is because the underlying library (klauspost/reedsolomon) doesn't have a notion of verifying the repaired data against a row root or col root.

@rootulp rootulp merged commit 14c9be4 into celestiaorg:main Jul 10, 2023
5 checks passed
@rootulp rootulp deleted the rp/docs-rowRoots branch July 10, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarification around rowRoots provided to Repair
3 participants