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

Method as_bytes

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

Get the raw bytes of the public key

(&self)

Source from the content-addressed store, hash-verified

37
38 /// Get the raw bytes of the public key
39 pub fn as_bytes(&self) -> &[u8; 32] {
40 self.0.as_bytes()
41 }
42
43 /// Verify a signature against a message
44 pub fn verify(&self, message: &[u8], signature: &[u8; 64]) -> Result<(), IdentityError> {

Callers 7

to_base32Method · 0.45
to_did_keyMethod · 0.45
from_base32Method · 0.45
serializeMethod · 0.45
save_secret_keyMethod · 0.45
load_secret_keyMethod · 0.45

Calls

no outgoing calls

Tested by 1