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

Function hashing_view

atomic-canonical/src/proof.rs:50–56  ·  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

48/// The value covered by the content hash: excludes both `proof` and
49/// `contentHash` (you cannot hash the hash).
50pub fn hashing_view(value: &Value) -> Value {
51 let mut value = signing_view(value);
52 if let Some(obj) = value.as_object_mut() {
53 obj.remove(PROP_CONTENT_HASH);
54 }
55 value
56}
57
58/// Generic attest over a JSON-LD value — the *one* canonicalization/signing
59/// path all typed nodes share. Fills `attributedTo` (from the identity's

Callers 4

hashing_valueMethod · 0.85
hashing_valueMethod · 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