Skip to main content

compute_bundle_hash

Function compute_bundle_hash 

Source
pub fn compute_bundle_hash(canonical_bytes: &[u8]) -> [u8; 32]
Expand description

Computes the bundle hash from canonical manifest bytes.

bundleHash = sha256(canonical_manifest_bytes)

§Arguments

  • canonical_bytes - The RFC 8785 canonical manifest bytes (without signature)

§Returns

The 32-byte SHA-256 hash