Skip to main content

compute_method_shape_root

Function compute_method_shape_root 

Source
pub fn compute_method_shape_root(
    span_shapes: &[Sha256],
) -> Result<Sha256, HashError>
Expand description

Computes the method shape root from a sorted list of span shape hashes.

method_shape_root = sha256(join_sorted(span_shape_hash_i, "|"))

The span shape hashes must be sorted lexicographically before joining.