btcpayserver/BTCPayServer/Models/StoreViewModels/RecoverySeedBackupViewModel.cs
2023-02-02 09:42:58 +09:00

23 lines
707 B
C#

using System;
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) ?? Array.Empty<string>();
}
}
}