The value covered by the content hash: excludes both `proof` and `contentHash` (you cannot hash the hash).
(value: &Value)
| 48 | /// The value covered by the content hash: excludes both `proof` and |
| 49 | /// `contentHash` (you cannot hash the hash). |
| 50 | pub fn hashing_view(value: &Value) -> Value { |
| 51 | let mut value = signing_view(value); |
| 52 | if let Some(obj) = value.as_object_mut() { |
| 53 | obj.remove(PROP_CONTENT_HASH); |
| 54 | } |
| 55 | value |
| 56 | } |
| 57 | |
| 58 | /// Generic attest over a JSON-LD value — the *one* canonicalization/signing |
| 59 | /// path all typed nodes share. Fills `attributedTo` (from the identity's |
no test coverage detected