From 3ad98af20ba715d54aab08441e0129406161f49b Mon Sep 17 00:00:00 2001 From: sweexordious Date: Mon, 8 Jul 2024 21:29:37 +0100 Subject: [PATCH] docs: nextLeafRange docs --- proof.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proof.go b/proof.go index 289fc41..f8fae0e 100644 --- a/proof.go +++ b/proof.go @@ -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