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

Method did_for_email

atomic-repository/src/repository/projection_commit.rs:104–109  ·  view source on GitHub ↗

The DID for an email: configured mapping, else the deterministic foreign `did:atomic:git: ` identity (RFC §5.5).

(&self, email: &str)

Source from the content-addressed store, hash-verified

102 /// The DID for an email: configured mapping, else the deterministic
103 /// foreign `did:atomic:git:<email-hash>` identity (RFC §5.5).
104 pub fn did_for_email(&self, email: &str) -> String {
105 if let Some(did) = self.entries.get(email) {
106 return did.clone();
107 }
108 foreign_git_did(email)
109 }
110
111 /// Whether the email has an explicit configured mapping (vs. a
112 /// synthesized foreign DID that must be flagged in provenance).

Callers 2

resolveMethod · 0.45

Calls 3

foreign_git_didFunction · 0.85
getMethod · 0.65
cloneMethod · 0.45