disable temporarily the ODs for HW and WatchOnly wallets
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletInfoViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletInfoViewModel.cs
@@ -40,14 +40,15 @@ public partial class WalletInfoViewModel : RoutableViewModel
ExtendedAccountPrivateKey = secret.Derive(wallet.KeyManager.AccountKeyPath).GetWif(network).ToWif();
ExtendedMasterZprv = secret.ToZPrv(network);
ExtendedAccountZprv = secret.Derive(wallet.KeyManager.AccountKeyPath).ToZPrv(network);
+
+ // TODO: Should work for every type of wallet, temporarily disabling it.
+ WpkhOutputDescriptors = wallet.KeyManager.GetOutputDescriptors(wallet.Kitchen.SaltSoup(), network);
}
ExtendedAccountPublicKey = wallet.KeyManager.ExtPubKey.ToString(network);
ExtendedAccountZpub = wallet.KeyManager.ExtPubKey.ToZpub(network);
AccountKeyPath = $"m/{wallet.KeyManager.AccountKeyPath}";
MasterKeyFingerprint = wallet.KeyManager.MasterFingerprint.ToString();
-
- WpkhOutputDescriptors = wallet.KeyManager.GetOutputDescriptors(wallet.Kitchen.SaltSoup(), network);
}
public string ExtendedAccountPublicKey { get; }
@@ -66,7 +67,7 @@ public partial class WalletInfoViewModel : RoutableViewModel
public string? ExtendedAccountZprv { get; }
- public WpkhDescriptors WpkhOutputDescriptors { get; }
+ public WpkhDescriptors? WpkhOutputDescriptors { get; }
public bool IsHardwareWallet { get; }
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletInfoView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletInfoView.axaml
</c:PreviewItem>
<Separator IsVisible="{Binding !!ExtendedAccountZprv}" />
+ <StackPanel Spacing="10" IsVisible="{Binding WpkhOutputDescriptors, Converter={x:Static ObjectConverters.IsNotNull}}">
<c:PreviewItem Icon="{StaticResource key_regular}"
Label="Public External Output descriptor"
TextValue="{Binding WpkhOutputDescriptors.PublicExternal}">
TextValue="{Binding WpkhOutputDescriptors.PrivateInternal}">
<c:PrivacyContentControl Classes="monoSpaced" Content="{Binding WpkhOutputDescriptors.PrivateInternal}" ForceShow="{Binding ShowSensitiveData}" NumberOfPrivacyChars="38" />
</c:PreviewItem>
+ </StackPanel>
<c:PreviewItem Icon="{StaticResource key_regular}"
Label="Extended Account Public Key"

disable temporarily the ODs for HW and WatchOnly wallets