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

Method verify

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

Verify a signature against a message

(&self, message: &[u8], signature: &[u8; 64])

Source from the content-addressed store, hash-verified

42
43 /// Verify a signature against a message
44 pub fn verify(&self, message: &[u8], signature: &[u8; 64]) -> Result<(), IdentityError> {
45 let sig = Signature::from_bytes(signature);
46 self.0
47 .verify(message, &sig)
48 .map_err(|e| IdentityError::VerificationFailed(e.to_string()))
49 }
50
51 /// Encode the public key as base32
52 pub fn to_base32(&self) -> String {

Callers 4

verifyFunction · 0.45
parse_remote_manifestFunction · 0.45
record_attestationMethod · 0.45
authenticatesFunction · 0.45

Calls

no outgoing calls

Tested by 1

authenticatesFunction · 0.36