Are there any examples available? I would like to verify the signature on a contract. I hope to achieve something similar to the following:
fn verify(message: &[u8; 32], sig_bytes: &[u8; 64], signer: &Pubkey) -> bool {
let signature = Signature::new(sig_bytes);
let keypair = Signer::new(signer.to_bytes());
let result = keypair.verify(message, &signature);
result.is_ok()
}