Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
detherminal committed Jul 1, 2024
1 parent 00618de commit d133e9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 0 additions & 9 deletions src/blocks/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit d133e9e

Please sign in to comment.