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