pub trait Sign<'s, S: SOP<'s>, Keys: Load<'s, S>, Sigs: Save> {
// Required methods
fn mode(
self: Box<Self>,
mode: SignAs,
) -> Box<dyn Sign<'s, S, Keys, Sigs> + 's>;
fn keys(
self: Box<Self>,
keys: &Keys,
) -> Result<Box<dyn Sign<'s, S, Keys, Sigs> + 's>>;
fn with_key_password(
self: Box<Self>,
password: Password,
) -> Result<Box<dyn Sign<'s, S, Keys, Sigs> + 's>>;
fn data(
self: Box<Self>,
data: &mut (dyn Read + Send + Sync),
) -> Result<(Micalg, Sigs)>;
}Expand description
Builder for SOP::sign.
Required Methods§
Sourcefn mode(self: Box<Self>, mode: SignAs) -> Box<dyn Sign<'s, S, Keys, Sigs> + 's>
fn mode(self: Box<Self>, mode: SignAs) -> Box<dyn Sign<'s, S, Keys, Sigs> + 's>
Sets signature mode.
Sourcefn keys(
self: Box<Self>,
keys: &Keys,
) -> Result<Box<dyn Sign<'s, S, Keys, Sigs> + 's>>
fn keys( self: Box<Self>, keys: &Keys, ) -> Result<Box<dyn Sign<'s, S, Keys, Sigs> + 's>>
Adds the signer keys.