pub trait SignatureVerify {
    type Error: ResponseError;
    type Future: Future<Output = Result<bool, Self::Error>>;

    // Required method
    fn signature_verify(
        &mut self,
        algorithm: Option<Algorithm>,
        key_id: String,
        signature: String,
        signing_string: String
    ) -> Self::Future;
}
Expand description

A trait for verifying signatures

Required Associated Types§

source

type Error: ResponseError

An error produced while attempting to verify the signature. This can be anything implementing ResponseError

source

type Future: Future<Output = Result<bool, Self::Error>>

The future that resolves to the verification state of the signature

Required Methods§

source

fn signature_verify( &mut self, algorithm: Option<Algorithm>, key_id: String, signature: String, signing_string: String ) -> Self::Future

Given the algorithm, key_id, signature, and signing_string, produce a future that resulves to a the verification status

Implementors§