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";
2024-10-25 15:48:53 +02:00
ViewData.SetActivePage(WalletsNavPages.Send, StringLocalizer["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-04-05 10:55:35 +09:00
<a href="@Url.EnsureLocal(backUrl, Context.Request)" id="GoBack">
2022-07-04 06:20:08 +02:00
<vc:icon symbol="back" />
</a>
}
2023-04-05 10:55:35 +09:00
<a href="@Url.EnsureLocal(cancelUrl, Context.Request)" 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>
2024-10-25 15:48:53 +02:00
<p class="lead text-secondary mt-3" text-translate="true">Using an HD private key or mnemonic seed</p>
2021-07-29 15:53:10 +02:00
</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">
2024-10-25 15:48:53 +02:00
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="@StringLocalizer["Close"]">
2021-07-29 15:53:10 +02:00
<vc:icon symbol="close" />
</button>
2024-10-25 15:48:53 +02:00
<p text-translate="true">Before you proceed, please understand the following:</p>
2021-07-29 15:53:10 +02:00
<ol>
2024-10-25 15:48:53 +02:00
<li text-translate="true">Make sure this BTCPay Server instance belongs to you.</li>
<li text-translate="true">Use Incognito mode or the Tor Browser to ensure no malicious browser plugins are running that could steal your key.</li>
2021-07-29 15:53:10 +02:00
</ol>
2024-10-25 15:48:53 +02:00
<p class="mb-0" text-translate="true">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
2024-06-19 15:23:10 +02:00
@if (!ViewContext.ModelState.IsValid)
{
<div asp-validation-summary="All"></div>
}
2021-07-29 15:53:10 +02:00
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>
2024-10-17 15:51:40 +02:00
<button id="Submit" type="submit" class="btn btn-primary" text-translate="true">Sign</button>
2021-07-29 15:53:10 +02:00
</form>