Skip to main content

fix_node_hashes

Function fix_node_hashes 

Source
pub fn fix_node_hashes(spec_dir: &Path) -> Result<FixReport, Error>
Expand description

Fix node-side hashes by recomputing C14N hash from current spec content.

Assembles the combined document, finds each referenced spec node, serializes it, applies inclusive C14N via bergshamra, and computes SHA-256. Updates node-hash attributes on <art:spec-ref> in-place.

ยงErrors

Returns an error if spec files cannot be read or assembled.