MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / intent_substance_hash

Function intent_substance_hash

atomic-canonical/src/node.rs:388–390  ·  view source on GitHub ↗

The `intentSubstanceHash` — a `blake3: ` hash of the intent's reviewable definition ([`CanonicalNode::substance_value`]), stable across review activity. Mirrors the [`content_hash`] path exactly (JCS + BLAKE3), so the two can never drift; the difference is only *what* is hashed.

(node: &CanonicalNode)

Source from the content-addressed store, hash-verified

386/// activity. Mirrors the [`content_hash`] path exactly (JCS + BLAKE3), so the
387/// two can never drift; the difference is only *what* is hashed.
388pub fn intent_substance_hash(node: &CanonicalNode) -> String {
389 content_hash(&node.substance_value())
390}
391
392#[cfg(test)]
393mod tests {

Callers 9

context_from_inputsFunction · 0.85
replay_bytesFunction · 0.85
contextFunction · 0.85
build_reportFunction · 0.85
vault_intent_updateMethod · 0.85

Calls 2

content_hashFunction · 0.85
substance_valueMethod · 0.80