Function verify [src]
Verify the signature against a message and public key.
Return IdentityElement or NonCanonical if the public key or signature are not in the expected range,
or SignatureVerificationError if the signature is invalid for the given message and key.
Prototype
pub fn verify(sig: Signature, msg: []const u8, public_key: PublicKey) VerifyError!void
Parameters
sig: Signature
msg: []const u8
public_key: PublicKey
Possible Errors
Source
pub fn verify(sig: Signature, msg: []const u8, public_key: PublicKey) VerifyError!void {
var st = try sig.verifier(public_key);
st.update(msg);
try st.verify();
}