The `did:atomic` identifier for this identity. The id is already `blake3(public_key)`, which is exactly what the `did:atomic` method specifies, so the DID is a rendering of the id rather than a second derivation that could drift from it. Note this is a *fingerprint*: the public key cannot be recovered from it. Where a verifier needs the key itself, carry [`PublicKey::to_did_key`] alongside.
(&self)
| 106 | /// it. Where a verifier needs the key itself, carry |
| 107 | /// [`PublicKey::to_did_key`] alongside. |
| 108 | pub fn to_did(&self) -> String { |
| 109 | format!("{}{}", DID_ATOMIC_PREFIX, self.to_base32()) |
| 110 | } |
| 111 | |
| 112 | /// Parse a `did:atomic:` identifier back into an id. |
| 113 | pub fn from_did(did: &str) -> Result<Self, IdentityError> { |
no outgoing calls
no test coverage detected