The DID for an email: configured mapping, else the deterministic foreign `did:atomic:git: ` identity (RFC §5.5).
(&self, email: &str)
| 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). |