Skip to content

Commit

Permalink
add comment for verifyEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss committed Apr 13, 2024
1 parent 753d463 commit ff65800
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extendeddatacrossword.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ func (eds *ExtendedDataSquare) computeSharesRootWithRebuiltShare(shares [][]byte
return tree.Root()
}

// verifyEncoding checks the Reed-Solomon encoding of the provided data.
func (eds *ExtendedDataSquare) verifyEncoding(data [][]byte, rebuiltIndex int, rebuiltShare []byte) error {
data[rebuiltIndex] = rebuiltShare
half := len(data) / 2
Expand Down

0 comments on commit ff65800

Please sign in to comment.