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

Method save_with_keypair

atomic-identity/src/store.rs:423–430  ·  view source on GitHub ↗

Save an identity with its secret key.

(
        &self,
        identity: &Identity,
        keypair: &KeyPair,
        password: Option<&str>,
    )

Source from the content-addressed store, hash-verified

421
422 /// Save an identity with its secret key.
423 pub fn save_with_keypair(
424 &self,
425 identity: &Identity,
426 keypair: &KeyPair,
427 password: Option<&str>,
428 ) -> Result<(), IdentityError> {
429 self.save_with_secret(identity, Some((&keypair.secret, password)))
430 }
431
432 /// Save an identity with optional secret key.
433 fn save_with_secret(

Calls 1

save_with_secretMethod · 0.80