Skip to content

range of elements for decoding is too narrow

as can be seen in this NOTE and this FIXME, the reconstruction of shards currently can't handle less than (k - 1) \rho + 1 nor more than k \rho bytes, where \rho is the curve number of bytes per scalar field element, e.g. 31 for BLS-12-381.

this is obviously not scalable and should be fixed 🤔

errors

  • when too few bytes
could not encode shards (62 bytes): IncompatibleMatrixShapes(1, 2, 3, 5)
  • when too many bytes
could not build source shard matrix (94 bytes): InvalidMatrixElements("expected rows to be of same length 3, found 1 at row 1")