Function polkadot_erasure_coding::obtain_chunks
source · pub fn obtain_chunks<T: Encode>(
n_validators: usize,
data: &T,
) -> Result<Vec<Vec<u8>>, Error>
Expand description
Obtain erasure-coded chunks, one for each validator.
Works only up to 65536 validators, and n_validators
must be non-zero.