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

Function signing_view

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

The value covered by a signature: the document minus its `proof` (the standard Data Integrity shape). `contentHash` is retained so the signature also commits to the hash. This is the single site that owns the exclusion.

(value: &Value)

Source from the content-addressed store, hash-verified

38/// standard Data Integrity shape). `contentHash` is retained so the signature
39/// also commits to the hash. This is the single site that owns the exclusion.
40pub fn signing_view(value: &Value) -> Value {
41 let mut value = value.clone();
42 if let Some(obj) = value.as_object_mut() {
43 obj.remove(PROP_PROOF);
44 }
45 value
46}
47
48/// The value covered by the content hash: excludes both `proof` and
49/// `contentHash` (you cannot hash the hash).

Callers 6

signing_valueMethod · 0.85
signing_valueMethod · 0.85
hashing_viewFunction · 0.85
attest_valueFunction · 0.85
verify_valueFunction · 0.85

Calls 2

removeMethod · 0.65
cloneMethod · 0.45