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

Method as_bytes

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

Get the raw bytes of the public key

(&self)

Source from the content-addressed store, hash-verified

31
32 /// Get the raw bytes of the public key
33 pub fn as_bytes(&self) -> &[u8; 32] {
34 self.0.as_bytes()
35 }
36
37 /// Verify a signature against a message
38 pub fn verify(&self, message: &[u8], signature: &[u8; 64]) -> Result<(), IdentityError> {

Callers 6

to_base32Method · 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