pub fn verify_embedded_hash(dr: &DataRef) -> Result<(), AcdpError>Expand description
Verify a DataRef’s declared content_hash against its embedded payload.
Does nothing if the ref has no content_hash or no embedded.
BUG-02: a mismatch is a data-reference-level integrity failure
(AcdpError::DataRefHashMismatch, wire code data_ref_hash_mismatch)
— the embedded bytes diverged from the producer-declared hash, but the
body’s own content_hash / signature are unaffected. It is NOT the
body-level AcdpError::HashMismatch (RFC-ACDP-0007 §5, data-ref-007).