pub trait Signing: Debug{
type Signature;
// Required methods
fn sign(
&self,
data: impl Read,
t: Timestamp,
) -> Result<Self::Signature, Error>;
fn algorithm(&self) -> AlgorithmType;
}
Expand description
Signing trait to be implement for RPM signing.
Required Associated Types§
Required Methods§
fn sign(&self, data: impl Read, t: Timestamp) -> Result<Self::Signature, Error>
fn algorithm(&self) -> AlgorithmType
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<T> Signing for PhantomData<T>
impl<T> Signing for PhantomData<T>
Implement unreachable signer for empty tuple ()