Function polkadot_erasure_coding::reconstruct_v1
source · pub fn reconstruct_v1<'a, I>(
n_validators: usize,
chunks: I,
) -> Result<AvailableData, Error>
Expand description
Reconstruct the v1 available data from a set of chunks.
Provide an iterator containing chunk data and the corresponding index. The indices of the present chunks must be indicated. If too few chunks are provided, recovery is not possible.
Works only up to 65536 validators, and n_validators
must be non-zero.