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

Method save_with_keypair

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

442
443 /// Save an identity with its secret key.
444 pub fn save_with_keypair(
445 &self,
446 identity: &Identity,
447 keypair: &KeyPair,
448 password: Option<&str>,
449 ) -> Result<(), IdentityError> {
450 self.save_with_secret(identity, Some((&keypair.secret, password)))
451 }
452
453 /// Save an identity with optional secret key.
454 fn save_with_secret(

Calls 1

save_with_secretMethod · 0.80