The DID out of a ` #fragment` verification method string.
(vm: &str)
| 52 | |
| 53 | /// The DID out of a `<did>#fragment` verification method string. |
| 54 | pub fn did_from_verification_method(vm: &str) -> &str { |
| 55 | vm.split('#').next().unwrap_or(vm) |
| 56 | } |
| 57 | |
| 58 | /// Does this DID correspond to the given public key? Accepts either the |
| 59 | /// in-tree `did:atomic` fingerprint or the standard `did:key` form. |