MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / did_from_verification_method

Function did_from_verification_method

atomic-canonical/src/did.rs:54–56  ·  view source on GitHub ↗

The DID out of a ` #fragment` verification method string.

(vm: &str)

Source from the content-addressed store, hash-verified

52
53/// The DID out of a `<did>#fragment` verification method string.
54pub 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.

Callers 1

verify_valueFunction · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected