2019-05-13 00:13:55 +09:00
|
|
|
using System.Collections.Generic;
|
2020-08-03 10:12:21 +02:00
|
|
|
using System.ComponentModel;
|
2019-05-13 00:30:28 +09:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-10-21 14:03:11 +02:00
|
|
|
using Newtonsoft.Json;
|
2019-05-13 00:13:55 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
|
|
{
|
|
|
|
public class WalletSettingsViewModel
|
|
|
|
{
|
|
|
|
public string Label { get; set; }
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Derivation scheme")]
|
2019-05-13 00:13:55 +09:00
|
|
|
public string DerivationScheme { get; set; }
|
|
|
|
public string DerivationSchemeInput { get; set; }
|
2019-05-13 00:30:28 +09:00
|
|
|
[Display(Name = "Is signing key")]
|
|
|
|
public string SelectedSigningKey { get; set; }
|
|
|
|
public bool IsMultiSig => AccountKeys.Count > 1;
|
2019-05-13 00:13:55 +09:00
|
|
|
|
|
|
|
public List<WalletSettingsAccountKeyViewModel> AccountKeys { get; set; } = new List<WalletSettingsAccountKeyViewModel>();
|
2020-04-29 08:28:13 +02:00
|
|
|
public bool NBXSeedAvailable { get; set; }
|
2020-05-12 15:32:33 +02:00
|
|
|
public string StoreName { get; set; }
|
|
|
|
public string UriScheme { get; set; }
|
2019-05-13 00:13:55 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
public class WalletSettingsAccountKeyViewModel
|
|
|
|
{
|
2020-10-21 14:03:11 +02:00
|
|
|
[JsonProperty("ExtPubKey")]
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Account key")]
|
2019-05-13 00:13:55 +09:00
|
|
|
public string AccountKey { get; set; }
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Master fingerprint")]
|
2019-05-13 00:13:55 +09:00
|
|
|
[Validation.HDFingerPrintValidator]
|
|
|
|
public string MasterFingerprint { get; set; }
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Account key path")]
|
2019-05-13 00:13:55 +09:00
|
|
|
[Validation.KeyPathValidator]
|
|
|
|
public string AccountKeyPath { get; set; }
|
|
|
|
}
|
|
|
|
}
|