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: godoc for computeRowProof #228

Closed
wants to merge 3 commits into from

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Jul 5, 2023

Closes #212

@rootulp rootulp self-assigned this Jul 5, 2023
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@b54cb5a). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #228   +/-   ##
=======================================
  Coverage        ?   78.26%           
=======================================
  Files           ?        7           
  Lines           ?      529           
  Branches        ?        0           
=======================================
  Hits            ?      414           
  Misses          ?       69           
  Partials        ?       46           

@@ -418,6 +418,9 @@ func BenchmarkEDSRoots(b *testing.B) {
}
}

// computeRowProof returns the merkle root, proof, proofIndex, and numLeaves for
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not immediately clear as what "proof" and "proof index" mean or refer to. It would be great to explain them further.

Copy link
Collaborator Author

@rootulp rootulp Jul 6, 2023

Choose a reason for hiding this comment

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

I just read the implementation in https://github.com/celestiaorg/merkletree/blob/c33506a7aa26be568fbb9714b3a6f66c1b60d2aa/tree.go#L95-L99 and TBH I don't understand it so closing this PR as unresolved b/c idk how to explain proof or proof index further.

evan-forbes
evan-forbes previously approved these changes Jul 6, 2023
@rootulp rootulp closed this Jul 6, 2023
@rootulp rootulp deleted the rp/godoc-compute-row-proof branch July 6, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants