Struct forc_wallet::sign::Sign
source · pub struct Sign {
pub account: Option<usize>,
pub private_key: bool,
pub private_key_non_interactive: Option<SecretKey>,
pub password_non_interactive: Option<String>,
pub data: Data,
}Expand description
Sign some data (e.g. a transaction ID, a file, a string, or a hex-string) using either a wallet account or a private key.
Fields§
§account: Option<usize>Sign using the wallet account at the given index. Uses a discrete interactive prompt for password input.
private_key: boolSign using a private key. Uses a discrete interactive prompt for collecting the private key.
private_key_non_interactive: Option<SecretKey>Sign by passing the private key directly.
WARNING: This is primarily provided for non-interactive testing. Using this flag is prone to leaving your private key exposed in your shell command history!
password_non_interactive: Option<String>Directly provide the wallet password when signing with an account.
WARNING: This is primarily provided for non-interactive testing. Using this flag is prone to leaving your password exposed in your shell command history!
data: DataTrait Implementations§
source§impl Args for Sign
impl Args for Sign
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl FromArgMatches for Sign
impl FromArgMatches for Sign
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl RefUnwindSafe for Sign
impl Send for Sign
impl Sync for Sign
impl Unpin for Sign
impl UnwindSafe for Sign
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more