diff --git a/Cargo.toml b/Cargo.toml index 4ce2b34..5babd51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ base58-monero = "2.0.0" byteorder = "1.5.0" crc32fast = "1.3.2" crypto = "0.5.1" -curve25519-dalek = "4.1.1" +curve25519-dalek = "4.1.3" digest = "0.10.7" hex = "0.4.3" rand = "0.8.5" diff --git a/src/blocks/nodes.rs b/src/blocks/nodes.rs index e73c2b5..feb1c88 100644 --- a/src/blocks/nodes.rs +++ b/src/blocks/nodes.rs @@ -26,15 +26,6 @@ impl DaemonNode { } } - /// Returns Stack Wallet's default node - pub fn stack_wallet_default() -> DaemonNode { - DaemonNode { - url: "monero.stackwallet.com".to_string(), - port: 18081, - tls: false - } - } - /// Creates a new DaemonNode from a given URL, port and tls flag pub fn new(url: String, port: u16, tls: bool) -> DaemonNode { DaemonNode { diff --git a/src/utils/utils.rs b/src/utils/utils.rs index e5178cb..37135bb 100644 --- a/src/utils/utils.rs +++ b/src/utils/utils.rs @@ -27,6 +27,7 @@ use regex::Regex; /// assert_eq!(result_invalid, false); /// ``` pub fn is_valid_addr(address: &str) -> bool { + // TODO: Refactor for a better Monero address validation based on eliptic curve let r = Regex::new(r"^[48][0-9AB][1-9A-HJ-NP-Za-km-z]{93}$").unwrap(); r.is_match(address) } \ No newline at end of file