pub fn wrap_node_data<T>(block: T) -> Result<NodeData<T>, Error>where
    T: AsRef<[u8]>,
Expand description

Creates a wrapper around the given block representation which does not consume the block representation but allows accessing the dag-pb node Data.