2022-07-04 06:20:08 +02:00
|
|
|
@using BTCPayServer.Controllers
|
2019-05-14 16:03:48 +00:00
|
|
|
@model SignWithSeedViewModel
|
|
|
|
@{
|
2021-12-31 08:36:38 +01:00
|
|
|
var walletId = Context.GetRouteValue("walletId").ToString();
|
2022-07-04 06:20:08 +02:00
|
|
|
var cancelUrl = Model.ReturnUrl ?? Url.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
|
|
|
|
var backUrl = Model.BackUrl != null ? $"{Model.BackUrl}?returnUrl={Model.ReturnUrl}" : null;
|
2021-07-29 15:53:10 +02:00
|
|
|
Layout = "_LayoutWizard";
|
2021-12-31 08:36:38 +01:00
|
|
|
ViewData.SetActivePage(WalletsNavPages.Send, "Sign PSBT", walletId);
|
2019-05-14 16:03:48 +00:00
|
|
|
}
|
|
|
|
|
2021-07-29 15:53:10 +02:00
|
|
|
@section Navbar {
|
2022-07-04 06:20:08 +02:00
|
|
|
@if (backUrl != null)
|
|
|
|
{
|
2023-02-02 09:42:58 +09:00
|
|
|
<a href="@Url.EnsureLocal(backUrl)" id="GoBack">
|
2022-07-04 06:20:08 +02:00
|
|
|
<vc:icon symbol="back" />
|
|
|
|
</a>
|
|
|
|
}
|
2023-02-02 09:42:58 +09:00
|
|
|
<a href="@Url.EnsureLocal(cancelUrl)" id="CancelWizard" class="cancel">
|
2021-07-29 15:53:10 +02:00
|
|
|
<vc:icon symbol="close" />
|
|
|
|
</a>
|
2021-10-05 08:52:14 +02:00
|
|
|
}
|
|
|
|
|
2021-07-29 15:53:10 +02:00
|
|
|
<header class="text-center">
|
2021-12-16 11:17:02 +01:00
|
|
|
<h1>@ViewData["Title"]</h1>
|
2021-07-29 15:53:10 +02:00
|
|
|
<p class="lead text-secondary mt-3">Using an HD private key or mnemonic seed</p>
|
|
|
|
</header>
|
2021-04-08 15:32:42 +02:00
|
|
|
|
2021-07-29 15:53:10 +02:00
|
|
|
<div class="alert alert-warning alert-dismissible my-4" role="alert">
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
|
|
|
|
<vc:icon symbol="close" />
|
|
|
|
</button>
|
|
|
|
<p>Before you proceed, please understand the following:</p>
|
|
|
|
<ol>
|
|
|
|
<li>Make sure this BTCPay Server instance <b>belongs to you</b>.</li>
|
|
|
|
<li>Use <b>Incognito mode or the Tor Browser</b> to ensure no malicious browser plugins are running that could steal your key.</li>
|
|
|
|
</ol>
|
|
|
|
<p class="mb-0">Otherwise you are exposing yourself to malicious site owners, or to malicious plugins installed in your browser.</p>
|
2019-05-14 16:03:48 +00:00
|
|
|
</div>
|
2021-07-29 15:53:10 +02:00
|
|
|
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
|
2022-07-04 06:20:08 +02:00
|
|
|
<form method="post" asp-action="SignWithSeed" asp-route-walletId="@walletId">
|
2021-07-29 15:53:10 +02:00
|
|
|
<partial name="SigningContext" for="SigningContext"/>
|
2022-07-04 06:20:08 +02:00
|
|
|
<input type="hidden" asp-for="ReturnUrl" />
|
|
|
|
<input type="hidden" asp-for="BackUrl" />
|
2021-07-29 15:53:10 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="SeedOrKey" class="form-label"></label>
|
|
|
|
<input asp-for="SeedOrKey" class="form-control" autocomplete="off" autocorrect="off" autocapitalize="off"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Passphrase" class="form-label"></label>
|
|
|
|
<input asp-for="Passphrase" class="form-control"/>
|
|
|
|
</div>
|
2022-02-17 17:58:56 +09:00
|
|
|
<button id="Submit" type="submit" class="btn btn-primary">Sign</button>
|
2021-07-29 15:53:10 +02:00
|
|
|
</form>
|