pub trait InlineSign<'s, S: SOP<'s>, Keys: Load<'s, S>> {
// Required methods
fn no_armor(self: Box<Self>) -> Box<dyn InlineSign<'s, S, Keys> + 's>;
fn mode(
self: Box<Self>,
mode: InlineSignAs,
) -> Box<dyn InlineSign<'s, S, Keys> + 's>;
fn keys(
self: Box<Self>,
keys: &Keys,
) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>;
fn with_key_password(
self: Box<Self>,
password: Password,
) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>;
fn data<'d>(
self: Box<Self>,
data: &'d mut (dyn Read + Send + Sync),
) -> Result<Box<dyn Ready + 'd>>
where 's: 'd;
}Expand description
Builder for SOP::inline_sign.
Required Methods§
Sourcefn no_armor(self: Box<Self>) -> Box<dyn InlineSign<'s, S, Keys> + 's>
fn no_armor(self: Box<Self>) -> Box<dyn InlineSign<'s, S, Keys> + 's>
Disables armor encoding.
Sourcefn mode(
self: Box<Self>,
mode: InlineSignAs,
) -> Box<dyn InlineSign<'s, S, Keys> + 's>
fn mode( self: Box<Self>, mode: InlineSignAs, ) -> Box<dyn InlineSign<'s, S, Keys> + 's>
Sets signature mode.
Sourcefn keys(
self: Box<Self>,
keys: &Keys,
) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>
fn keys( self: Box<Self>, keys: &Keys, ) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>
Adds the signer keys.
Sourcefn with_key_password(
self: Box<Self>,
password: Password,
) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>
fn with_key_password( self: Box<Self>, password: Password, ) -> Result<Box<dyn InlineSign<'s, S, Keys> + 's>>
Adds a password to unlock the signing keys with.
All supplied passwords will be used to try to unlock all signing keys.