Refactor common data structure for wallet into SigningContext

This commit is contained in:
nicolas.dorier
2020-05-25 06:27:01 +09:00
parent 25e6f82aa3
commit 35432d919c
15 changed files with 129 additions and 126 deletions

View File

@@ -7,11 +7,10 @@ namespace BTCPayServer.Models.WalletViewModels
{
public class SignWithSeedViewModel
{
public string OriginalPSBT { get; set; }
public SigningContextModel SigningContext { get; set; } = new SigningContextModel();
[Required]
public string PSBT { get; set; }
[Required][Display(Name = "BIP39 Seed (12/24 word mnemonic phrase) or HD private key (xprv...)")]
[Display(Name = "BIP39 Seed (12/24 word mnemonic phrase) or HD private key (xprv...)")]
public string SeedOrKey { get; set; }
[Display(Name = "Optional seed passphrase")]