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

Method public_key

atomic-identity/src/identity.rs:495–498  ·  view source on GitHub ↗

Use an existing public key (verification-only identity).

(mut self, public_key: PublicKey)

Source from the content-addressed store, hash-verified

493
494 /// Use an existing public key (verification-only identity).
495 pub fn public_key(mut self, public_key: PublicKey) -> Self {
496 self.public_key = Some(public_key);
497 self
498 }
499
500 /// Build the identity, generating a keypair if needed.
501 pub fn build(self) -> Result<Identity, IdentityError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected