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)
| 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. |
| 40 | pub 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). |