Function hotshot_types::traits::block_contents::precompute_vid_commitment
source · pub fn precompute_vid_commitment(
encoded_transactions: &[u8],
num_storage_nodes: usize,
) -> (<VidSchemeType as VidScheme>::Commit, <VidSchemeType as Precomputable>::PrecomputeData)
Expand description
Compute the VID payload commitment along with precompute data reducing time in VID Disperse
§Panics
If the VID computation fails.