You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// let mut wallet = Wallet::new(P2TR(key_external), P2TR(key_internal), Network::Testnet)?;
193
+
/// let mut wallet = Wallet::new(
194
+
/// P2TR(key_external),
195
+
/// Some(P2TR(key_internal)),
196
+
/// Network::Testnet,
197
+
/// )?;
186
198
///
187
199
/// assert_eq!(
188
200
/// wallet
@@ -217,7 +229,7 @@ impl<K: IntoDescriptorKey<Tap>> DescriptorTemplate for P2TR<K> {
217
229
/// let key = bitcoin::bip32::Xpriv::from_str("tprv8ZgxMBicQKsPeZRHk4rTG6orPS2CRNFX3njhUXx5vj9qGog5ZMH4uGReDWN5kCkY3jmWEtWause41CDvBRXD1shKknAMKxT99o9qUTRVC6m")?;
218
230
/// let mut wallet = Wallet::new(
219
231
/// Bip44(key.clone(), KeychainKind::External),
220
-
/// Bip44(key, KeychainKind::Internal),
232
+
/// Some(Bip44(key, KeychainKind::Internal)),
221
233
/// Network::Testnet,
222
234
/// )?;
223
235
///
@@ -254,7 +266,7 @@ impl<K: DerivableKey<Legacy>> DescriptorTemplate for Bip44<K> {
254
266
/// let fingerprint = bitcoin::bip32::Fingerprint::from_str("c55b303f")?;
@@ -290,7 +302,7 @@ impl<K: DerivableKey<Legacy>> DescriptorTemplate for Bip44Public<K> {
290
302
/// let key = bitcoin::bip32::Xpriv::from_str("tprv8ZgxMBicQKsPeZRHk4rTG6orPS2CRNFX3njhUXx5vj9qGog5ZMH4uGReDWN5kCkY3jmWEtWause41CDvBRXD1shKknAMKxT99o9qUTRVC6m")?;
291
303
/// let mut wallet = Wallet::new(
292
304
/// Bip49(key.clone(), KeychainKind::External),
293
-
/// Bip49(key, KeychainKind::Internal),
305
+
/// Some(Bip49(key, KeychainKind::Internal)),
294
306
/// Network::Testnet,
295
307
/// )?;
296
308
///
@@ -327,7 +339,7 @@ impl<K: DerivableKey<Segwitv0>> DescriptorTemplate for Bip49<K> {
327
339
/// let fingerprint = bitcoin::bip32::Fingerprint::from_str("c55b303f")?;
@@ -363,7 +375,7 @@ impl<K: DerivableKey<Segwitv0>> DescriptorTemplate for Bip49Public<K> {
363
375
/// let key = bitcoin::bip32::Xpriv::from_str("tprv8ZgxMBicQKsPeZRHk4rTG6orPS2CRNFX3njhUXx5vj9qGog5ZMH4uGReDWN5kCkY3jmWEtWause41CDvBRXD1shKknAMKxT99o9qUTRVC6m")?;
364
376
/// let mut wallet = Wallet::new(
365
377
/// Bip84(key.clone(), KeychainKind::External),
366
-
/// Bip84(key, KeychainKind::Internal),
378
+
/// Some(Bip84(key, KeychainKind::Internal)),
367
379
/// Network::Testnet,
368
380
/// )?;
369
381
///
@@ -400,7 +412,7 @@ impl<K: DerivableKey<Segwitv0>> DescriptorTemplate for Bip84<K> {
400
412
/// let fingerprint = bitcoin::bip32::Fingerprint::from_str("c55b303f")?;
@@ -436,7 +448,7 @@ impl<K: DerivableKey<Segwitv0>> DescriptorTemplate for Bip84Public<K> {
436
448
/// let key = bitcoin::bip32::Xpriv::from_str("tprv8ZgxMBicQKsPeZRHk4rTG6orPS2CRNFX3njhUXx5vj9qGog5ZMH4uGReDWN5kCkY3jmWEtWause41CDvBRXD1shKknAMKxT99o9qUTRVC6m")?;
437
449
/// let mut wallet = Wallet::new(
438
450
/// Bip86(key.clone(), KeychainKind::External),
439
-
/// Bip86(key, KeychainKind::Internal),
451
+
/// Some(Bip86(key, KeychainKind::Internal)),
440
452
/// Network::Testnet,
441
453
/// )?;
442
454
///
@@ -473,7 +485,7 @@ impl<K: DerivableKey<Tap>> DescriptorTemplate for Bip86<K> {
473
485
/// let fingerprint = bitcoin::bip32::Fingerprint::from_str("c55b303f")?;
/// let descriptor = "wpkh(tprv8ZgxMBicQKsPe73PBRSmNbTfbcsZnwWhz5eVmhHpi31HW29Z7mc9B4cWGRQzopNUzZUT391DeDJxL2PefNunWyLgqCKRMDkU1s2s8bAfoSk/84'/1'/0'/0/*)";
1015
1015
/// let change_descriptor = "wpkh(tprv8ZgxMBicQKsPe73PBRSmNbTfbcsZnwWhz5eVmhHpi31HW29Z7mc9B4cWGRQzopNUzZUT391DeDJxL2PefNunWyLgqCKRMDkU1s2s8bAfoSk/84'/1'/0'/1/*)";
1016
-
/// let wallet = Wallet::new(descriptor, change_descriptor, Network::Testnet)?;
1016
+
/// let wallet = Wallet::new(descriptor, Some(change_descriptor), Network::Testnet)?;
1017
1017
/// for secret_key in wallet.get_signers(KeychainKind::External).signers().iter().filter_map(|s| s.descriptor_secret_key()) {
Copy file name to clipboardExpand all lines: crates/wallet/src/wallet/signer.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@
69
69
//!
70
70
//! let descriptor = "wpkh(tpubD6NzVbkrYhZ4Xferm7Pz4VnjdcDPFyjVu5K4iZXQ4pVN8Cks4pHVowTBXBKRhX64pkRyJZJN5xAKj4UDNnLPb5p2sSKXhewoYx5GbTdUFWq/0/*)";
71
71
//! let change_descriptor = "wpkh(tpubD6NzVbkrYhZ4Xferm7Pz4VnjdcDPFyjVu5K4iZXQ4pVN8Cks4pHVowTBXBKRhX64pkRyJZJN5xAKj4UDNnLPb5p2sSKXhewoYx5GbTdUFWq/1/*)";
72
-
//! let mut wallet = Wallet::new(descriptor, change_descriptor, Network::Testnet)?;
72
+
//! let mut wallet = Wallet::new(descriptor, Some(change_descriptor), Network::Testnet)?;
0 commit comments