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

Function hashing_view

atomic-canonical/src/proof.rs:65–71  ·  view source on GitHub ↗

The value covered by the content hash: excludes both `proof` and `contentHash` (you cannot hash the hash).

(value: &Value)

Source from the content-addressed store, hash-verified

63/// The value covered by the content hash: excludes both `proof` and
64/// `contentHash` (you cannot hash the hash).
65pub fn hashing_view(value: &Value) -> Value {
66 let mut value = signing_view(value);
67 if let Some(obj) = value.as_object_mut() {
68 obj.remove(PROP_CONTENT_HASH);
69 }
70 value
71}
72
73/// The value covered by the *substance* hash (`intentSubstanceHash`): the
74/// reviewable definition of an intent, with all review **state** and

Callers 5

hashing_valueMethod · 0.85
hashing_valueMethod · 0.85
substance_viewFunction · 0.85
attest_valueFunction · 0.85
verify_valueFunction · 0.85

Calls 2

signing_viewFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected