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

Method public_key

atomic-identity/src/keypair.rs:142–144  ·  view source on GitHub ↗

Get the corresponding public key

(&self)

Source from the content-addressed store, hash-verified

140
141 /// Get the corresponding public key
142 pub fn public_key(&self) -> PublicKey {
143 PublicKey(self.0.verifying_key())
144 }
145
146 /// Sign a message
147 pub fn sign(&self, message: &[u8]) -> [u8; 64] {

Callers 4

runMethod · 0.45
generateMethod · 0.45
from_secret_keyMethod · 0.45
load_keypairMethod · 0.45

Calls 1

PublicKeyClass · 0.85

Tested by

no test coverage detected