Function hdk::ed25519::verify_signature_raw[][src]

pub fn verify_signature_raw<K, S>(
    key: K,
    signature: S,
    data: Vec<u8>
) -> ExternResult<bool> where
    K: Into<AgentPubKey>,
    S: Into<Signature>, 

Verify the passed signature and public key against the literal bytes input.

The data is used as-is, there is no serialization or additional processing. This is best to use if you have literal bytes from somewhere. If you pass in a Vec expecting it to be serialized here, the signature won’t verify correctly.

See verify_signature