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

Function verification_method_roundtrips_to_did

atomic-canonical/src/did.rs:103–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101
102 #[test]
103 fn verification_method_roundtrips_to_did() {
104 let kp = KeyPair::generate();
105 let did = did_for_public_key(&kp.public);
106 let vm = verification_method(&did);
107 assert_eq!(did_from_verification_method(&vm), did);
108 }
109}

Callers

nothing calls this directly

Calls 2

did_for_public_keyFunction · 0.85
verification_methodFunction · 0.85

Tested by

no test coverage detected