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

Function signing_view

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

53/// standard Data Integrity shape). `contentHash` is retained so the signature
54/// also commits to the hash. This is the single site that owns the exclusion.
55pub fn signing_view(value: &Value) -> Value {
56 let mut value = value.clone();
57 if let Some(obj) = value.as_object_mut() {
58 obj.remove(PROP_PROOF);
59 }
60 value
61}
62
63/// The value covered by the content hash: excludes both `proof` and
64/// `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