Generate a new identity with a fresh keypair.
(name: impl Into<String>)
| 354 | |
| 355 | /// Generate a new identity with a fresh keypair. |
| 356 | pub fn generate(name: impl Into<String>) -> Self { |
| 357 | let keypair = KeyPair::generate(); |
| 358 | Self::new(name, &keypair) |
| 359 | } |
| 360 | |
| 361 | /// Get the public key as a base32 string. |
| 362 | pub fn public_key_base32(&self) -> String { |
nothing calls this directly
no outgoing calls
no test coverage detected