Skip to main content

Module hash

Module hash 

Source
Expand description

Hash computation for v0.2 proof types

This module provides SHA-256 hash computation functions for all proof types. All hashes are formatted as sha256:<64 lowercase hex chars>.

Enums§

HashError
Error returned when hash computation fails

Functions§

compute_identity_root
Computes the identity root.
compute_method_shape_hash
Computes hash of a method shape manifest.
compute_method_shape_root
Computes the method shape root from a sorted list of span shape hashes.
compute_sha256
Computes SHA-256 hash from a canonical string.
compute_span_commitment_hash
Computes the span commitment hash.
compute_span_shape_hash
Computes the span shape hash.
compute_trace_hash
Computes hash of a trace.
compute_trace_roots_hash
Computes hash of trace roots.
compute_trace_seq_root
Computes the trace sequence root (optional).
compute_trace_set_root
Computes the trace set root from a sorted list of span commitment hashes.