Skip to content

Commit

Permalink
Hide hex signing and verification commands
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist committed Feb 6, 2024
1 parent 85e2151 commit a3ce031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wallet/wallet-cli-lib/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ pub enum ColdWalletCommand {

/// Signs a challenge with a private key corresponding to the provided address destination.
#[clap(name = "account-sign-challenge-hex")]
#[clap(hide = true)]
SignChallegeHex {
/// Hex encoded message to be signed
message: String,
Expand All @@ -218,6 +219,7 @@ pub enum ColdWalletCommand {

/// Verifies a signed challenge against an address destination
#[clap(name = "verify-challenge-hex")]
#[clap(hide = true)]
VerifyChallengeHex {
/// The hex encoded message that was signed
message: String,
Expand Down
1 change: 1 addition & 0 deletions wallet/wallet-cli-lib/src/repl/interactive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ fn create_line_editor<N: NodeInterface>(
) -> Result<Reedline, WalletCliError<N>> {
let commands = repl_command
.get_subcommands()
.filter(|command| !command.is_hide_set())
.map(|command| command.get_name().to_owned())
.chain(std::iter::once("help".to_owned()))
.collect::<Vec<_>>();
Expand Down

0 comments on commit a3ce031

Please sign in to comment.