From 428863026466e0f581dcbb4bbbd932d0e417c121 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:19:01 -0500 Subject: [PATCH] Remove unused bin/secret --- cmd/soroban-cli/Cargo.toml | 4 ---- cmd/soroban-cli/src/bin/secret.rs | 17 ----------------- 2 files changed, 21 deletions(-) delete mode 100644 cmd/soroban-cli/src/bin/secret.rs diff --git a/cmd/soroban-cli/Cargo.toml b/cmd/soroban-cli/Cargo.toml index 0d6da167d..3d366464b 100644 --- a/cmd/soroban-cli/Cargo.toml +++ b/cmd/soroban-cli/Cargo.toml @@ -20,10 +20,6 @@ path = "src/bin/stellar.rs" name = "soroban" path = "src/bin/soroban.rs" -[[bin]] -name = "secret" -path = "src/bin/secret.rs" - [package.metadata.binstall] pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }{ archive-suffix }" bin-dir = "{ bin }{ binary-ext }" diff --git a/cmd/soroban-cli/src/bin/secret.rs b/cmd/soroban-cli/src/bin/secret.rs deleted file mode 100644 index 4fc43ec6e..000000000 --- a/cmd/soroban-cli/src/bin/secret.rs +++ /dev/null @@ -1,17 +0,0 @@ -use soroban_cli::signer::keyring::StellarEntry; - -fn main() { - let entry = StellarEntry::new("test").unwrap(); - if let Ok(key) = entry.get_public_key() { - println!("{key}"); - return; - }; - - let secret = soroban_cli::config::secret::Secret::from_seed(None).unwrap(); - let pub_key = secret.public_key(None).unwrap(); - let key_pair = secret.key_pair(None).unwrap(); - entry.set_password(key_pair.as_bytes()).unwrap(); - let pub_key_2 = entry.get_public_key().unwrap(); - assert_eq!(pub_key, pub_key_2); - println!("{pub_key} == {pub_key_2}"); -}