summaryrefslogtreecommitdiff
path: root/impls/monero.rs/src
diff options
context:
space:
mode:
authorsneurlax <sneurlax@gmail.com>2024-10-29 14:23:05 -0500
committersneurlax <sneurlax@gmail.com>2024-10-29 14:23:09 -0500
commit510cb144207c71dd8cc78c2fb54075aa90574158 (patch)
treed6ab396f06d42e99b50cb926ff4e4694d439213a /impls/monero.rs/src
parenta66f82b03e9652abc3fe93b64c0f25dffe16a0b8 (diff)
add watch only (viewkey only) generate_from_keys integration test
and update docs
Diffstat (limited to 'impls/monero.rs/src')
-rw-r--r--impls/monero.rs/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/impls/monero.rs/src/lib.rs b/impls/monero.rs/src/lib.rs
index 0dd30d1..56373da 100644
--- a/impls/monero.rs/src/lib.rs
+++ b/impls/monero.rs/src/lib.rs
@@ -473,14 +473,14 @@ impl WalletManager {
/// let manager = WalletManager::new().unwrap();
/// let wallet = manager.generate_from_keys(
/// wallet_str.to_string(),
- /// "45wsWad9EwZgF3VpxQumrUCRaEtdyyh6NG8sVD3YRVVJbK1jkpJ3zq8WHLijVzodQ22LxwkdWx7fS2a6JzaRGzkNU8K2Dhi".to_string(), // Replace with a valid address
- /// "29adefc8f67515b4b4bf48031780ab9d071d24f8a674b879ce7f245c37523807".to_string(),
+ /// "45wsWad9EwZgF3VpxQumrUCRaEtdyyh6NG8sVD3YRVVJbK1jkpJ3zq8WHLijVzodQ22LxwkdWx7fS2a6JzaRGzkNU8K2Dhi".to_string(),
+ /// "".to_string(), // Spend key optional: you can pass either the spend key or the view key.
/// "3bc0b202cde92fe5719c3cc0a16aa94f88a5d19f8c515d4e35fae361f6f2120e".to_string(),
- /// 0,
+ /// 0, // Restore from the beginning of the blockchain.
/// "password".to_string(),
/// "English".to_string(),
/// NetworkType::Mainnet,
- /// 1, // Default KDF rounds
+ /// 1, // Default KDF rounds.
/// );
/// assert!(wallet.is_ok(), "Failed to generate wallet from keys: {:?}", wallet.err());
///