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