2020-07-15 19:51:01 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
|
|
{
|
|
|
|
public class RecoverySeedBackupViewModel
|
|
|
|
{
|
|
|
|
public string CryptoCode { get; set; }
|
|
|
|
public string Mnemonic { get; set; }
|
|
|
|
public string Passphrase { get; set; }
|
|
|
|
public string ReturnUrl { get; set; }
|
2020-08-05 11:20:34 +02:00
|
|
|
public bool IsStored { get; set; }
|
|
|
|
public bool RequireConfirm { get; set; } = true;
|
2020-07-15 19:51:01 +02:00
|
|
|
|
|
|
|
public string[] Words
|
|
|
|
{
|
2020-09-03 16:59:38 +02:00
|
|
|
get => Mnemonic.Split((char[])null, System.StringSplitOptions.RemoveEmptyEntries);
|
2020-07-15 19:51:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|