Module utils

Source

Functions§

check_condition
Helper: check a condition is true and return an error if not
compute_leaf
Helper: compute a leaf from a segment id, chunk id, and chunk
compute_recall_chunk
compute_recall_segment
compute_recall_tape
from_name
Helper: convert a name to a string
padded_array
Helper: convert a slice to a fixed-size array padded with zeros
to_name
Helper: convert a name to a fixed-size array
write_chunks
Helper: write chunks to the Merkle tree