core: Add VerifyFactory
This commit is contained in:
parent
f2b5da3582
commit
809c4b04e4
|
@ -37,6 +37,12 @@ pub trait Verify {
|
|||
fn verify(&self, signing_string: &str, signature: &str) -> Result<bool, Self::Error>;
|
||||
}
|
||||
|
||||
/// Describes a marker type that is associated with a specific verifier
|
||||
pub trait VerifyFactory {
|
||||
/// The Verify type associated with this factory
|
||||
type Verify: Verify + VerifyBuilder;
|
||||
}
|
||||
|
||||
/// Describes creating Verifiers
|
||||
pub trait VerifyBuilder: Verify {
|
||||
/// Build a verifier from a given public key in pem format
|
||||
|
|
Loading…
Reference in a new issue