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

Method save_with_keypair

atomic-identity/src/store.rs:415–422  ·  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

413
414 /// Save an identity with its secret key.
415 pub fn save_with_keypair(
416 &self,
417 identity: &Identity,
418 keypair: &KeyPair,
419 password: Option<&str>,
420 ) -> Result<(), IdentityError> {
421 self.save_with_secret(identity, Some((&keypair.secret, password)))
422 }
423
424 /// Save an identity with optional secret key.
425 fn save_with_secret(

Callers 3

runMethod · 0.80
create_default_identityFunction · 0.80

Calls 1

save_with_secretMethod · 0.80

Tested by 2

create_default_identityFunction · 0.64