The value covered by the content hash: excludes both `proof` and `contentHash` (you cannot hash the hash).
(value: &Value)
| 63 | /// The value covered by the content hash: excludes both `proof` and |
| 64 | /// `contentHash` (you cannot hash the hash). |
| 65 | pub fn hashing_view(value: &Value) -> Value { |
| 66 | let mut value = signing_view(value); |
| 67 | if let Some(obj) = value.as_object_mut() { |
| 68 | obj.remove(PROP_CONTENT_HASH); |
| 69 | } |
| 70 | value |
| 71 | } |
| 72 | |
| 73 | /// The value covered by the *substance* hash (`intentSubstanceHash`): the |
| 74 | /// reviewable definition of an intent, with all review **state** and |
no test coverage detected