Is indexing into the `rebuiltExtendedShares` necessary?
rootulp opened this issue · 1 comments
rootulp commented
Context
rsmt2d/extendeddatacrossword.go
Lines 266 to 270 in f166196
Question
Is indexing into rebuiltExtendedShares
necessary? It appears to only contain the parity shares so I would expect this to be sufficient:
- startIndex := len(rebuiltExtendedShares) - int(eds.originalDataWidth)
- rebuiltShares = append(
- rebuiltShares[0:eds.originalDataWidth],
- rebuiltExtendedShares[startIndex:]...,
- )
+ rebuiltShares = append(rebuiltShares[0:eds.originalDataWidth], rebuiltExtendedShares...)