pub enum Account {
New {
seed: Option<u64>,
write: bool,
discreet: bool,
network: NetworkName,
endpoint: String,
},
Import {
private_key: Option<String>,
write: bool,
discreet: bool,
network: NetworkName,
endpoint: String,
},
Sign {
private_key: Option<String>,
private_key_file: Option<String>,
message: String,
raw: bool,
network: NetworkName,
},
Verify {
address: String,
signature: String,
message: String,
raw: bool,
network: NetworkName,
},
Decrypt {
key: Option<String>,
key_file: Option<String>,
ciphertext: String,
network: NetworkName,
},
}Expand description
Commands to manage Aleo accounts.
Variants§
New
Generates a new Aleo account
Fields
§
network: NetworkNameImport
Derive an Aleo account from a private key.
Fields
§
network: NetworkNameSign
Sign a message using your Aleo private key.
Fields
§
network: NetworkNameVerify
Verify a message from an Aleo address.
Fields
§
network: NetworkNameDecrypt
Decrupt record ciphertext using your Aleo private key or view key.
Trait Implementations§
Source§impl Command for Account
impl Command for Account
Source§type Input = ()
type Input = ()
If the current command requires running another command beforehand
and needs its output result, this is where the result type is defined.
Example: type Input: ::Out
Source§type Output = ()
type Output = ()
Defines the output of this command, which may be used as
Input for another
command. If this command is not used as a prelude for another command,
this field may be left empty.Source§fn prelude(&self, _: Context) -> Result<Self::Input>where
Self: Sized,
fn prelude(&self, _: Context) -> Result<Self::Input>where
Self: Sized,
Runs the prelude and returns the Input of the current command.
Source§fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>where
Self: Sized,
fn apply(self, ctx: Context, _: Self::Input) -> Result<Self::Output>where
Self: Sized,
Runs the main operation of this command. This function is run within
context of ‘execute’ function, which sets logging and timers.
Source§fn log_span(&self) -> Span
fn log_span(&self) -> Span
Adds a span to the logger via
tracing::span.
Because of the specifics of the macro implementation, it is not possible
to set the span name with a non-literal i.e. a dynamic variable even if this
variable is a &’static str.Source§impl FromArgMatches for Account
impl FromArgMatches for Account
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Account
impl Parser for Account
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Source§impl Subcommand for Account
impl Subcommand for Account
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more