pub fn translate<H: Hasher>(
total: u16,
min: u16,
data: Vec<u8>,
) -> Result<(H::Digest, Data<H>), Error>Expand description
Translate data into a single proof over all data shards.
§Parameters
total: The total number of chunks to generate.min: The minimum number of chunks required to decode the data.data: The data to encode.
§Returns
root: The root of the bmt.data: All data shards from the encoded object (and a range proof that they are part of theroot).