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

Method generate

atomic-identity/src/identity.rs:356–359  ·  view source on GitHub ↗

Generate a new identity with a fresh keypair.

(name: impl Into<String>)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected