btcpayserver/BTCPayServer/Models/StoreViewModels/RecoverySeedBackupViewModel.cs
2020-09-03 23:59:54 +09:00

23 lines
667 B
C#

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; }
public bool IsStored { get; set; }
public bool RequireConfirm { get; set; } = true;
public string[] Words
{
get => Mnemonic.Split((char[])null, System.StringSplitOptions.RemoveEmptyEntries);
}
}
}