mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
8ca2824b00
* Open wallet with BIP21 links https://i.imgur.com/IWefMKB.gifv * remove debugger; * Move to settings
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
{
|
|
public class WalletSettingsViewModel
|
|
{
|
|
public string Label { get; set; }
|
|
public string DerivationScheme { get; set; }
|
|
public string DerivationSchemeInput { get; set; }
|
|
[Display(Name = "Is signing key")]
|
|
public string SelectedSigningKey { get; set; }
|
|
public bool IsMultiSig => AccountKeys.Count > 1;
|
|
|
|
public List<WalletSettingsAccountKeyViewModel> AccountKeys { get; set; } = new List<WalletSettingsAccountKeyViewModel>();
|
|
public bool NBXSeedAvailable { get; set; }
|
|
public string StoreName { get; set; }
|
|
public string UriScheme { get; set; }
|
|
}
|
|
|
|
public class WalletSettingsAccountKeyViewModel
|
|
{
|
|
public string AccountKey { get; set; }
|
|
[Validation.HDFingerPrintValidator]
|
|
public string MasterFingerprint { get; set; }
|
|
[Validation.KeyPathValidator]
|
|
public string AccountKeyPath { get; set; }
|
|
}
|
|
}
|