Skip to content

Commit

Permalink
docs: nextLeafRange docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Jul 8, 2024
1 parent 12ec563 commit 3ad98af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ func ToLeafRanges(proofStart, proofEnd, subtreeWidth int) ([]LeafRange, error) {
// Check ToLeafRanges() for more information on the algorithm used.
// The subtreeWidth is calculated using SubTreeWidth() method
// in celestiaorg/go-square/inclusion package.
// The subtreeWidth is a power of two.
// Also, the LeafRange values, i.e., the range size, are all powers of two.
// Note: This method is Celestia specific.
func nextLeafRange(currentStart, currentEnd, subtreeWidth int) (LeafRange, error) {
currentLeafRange := currentEnd - currentStart
Expand Down

0 comments on commit 3ad98af

Please sign in to comment.