Wallet & PSBT: Sign with seed or key (#840)

* Allow signing a PSBT with an extkey/wif or mnemonic seed

* reword things

* small text
This commit is contained in:
Andrew Camilleri
2019-05-14 16:03:48 +00:00
committed by Nicolas Dorier
parent cf436e11ae
commit eb54a18fcd
6 changed files with 190 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Models.WalletViewModels
{
public class SignWithSeedViewModel
{
[Required]
public string PSBT { get; set; }
[Required][Display(Name = "Seed(12/24 word mnemonic seed) Or HD private key(xprv...)")]
public string SeedOrKey { get; set; }
[Display(Name = "Optional seed passphrase")]
public string Passphrase { get; set; }
public bool Send { get; set; }
}
}