2021-02-11 11:48:54 +01:00
|
|
|
|
@model WalletSetupViewModel
|
|
|
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
|
|
|
@{
|
|
|
|
|
Layout = "_LayoutWalletSetup";
|
2021-04-08 15:32:42 +02:00
|
|
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Wallet, "Scan QR code", Context.GetStoreData().StoreName);
|
2021-02-11 11:48:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@section Navbar {
|
|
|
|
|
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="">
|
|
|
|
|
<vc:icon symbol="back" />
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<header class="text-center">
|
|
|
|
|
<h1>@ViewData["Title"]</h1>
|
|
|
|
|
<p class="lead text-secondary mt-3">Scan the extended public key, also called "xpub", shown on your wallet's display.</p>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
|
{
|
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="my-5">
|
|
|
|
|
<partial name="CameraScanner"/>
|
|
|
|
|
<form id="qr-import-form" method="post">
|
|
|
|
|
<input asp-for="WalletFileContent" type="hidden" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<p class="mt-5">
|
|
|
|
|
Generate a QR code of the extended public key in your wallet (see instructions for supported wallets below).
|
|
|
|
|
Allow the browser access to your camera and hold the code to the camera when the scan prompt appears.
|
|
|
|
|
</p>
|
|
|
|
|
|
2021-08-20 14:59:31 +02:00
|
|
|
|
<table class="table table-hover">
|
2021-02-11 11:48:54 +01:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Wallet</th>
|
|
|
|
|
<th>Instructions</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-nowrap">Cobo Vault</td>
|
|
|
|
|
<td>Open Wallet Settings ❯ Show/Export XPUB</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>BlueWallet</td>
|
|
|
|
|
<td>Open Wallet Settings ❯ Show Wallet XPUB</td>
|
|
|
|
|
</tr>
|
2021-10-10 07:54:46 +01:00
|
|
|
|
<tr>
|
|
|
|
|
<td>Passport</td>
|
|
|
|
|
<td>Pair Wallet ❯ BTCPay ❯ QR Code</td>
|
|
|
|
|
</tr>
|
2021-02-11 11:48:54 +01:00
|
|
|
|
<tr>
|
|
|
|
|
<td>Specter DIY</td>
|
|
|
|
|
<td>Master public keys ❯ Select key ❯ Disable "Show derivation path"</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
|
@section PageHeadContent {
|
|
|
|
|
<link href="~/vendor/vue-qrcode-reader/vue-qrcode-reader.css" rel="stylesheet" asp-append-version="true"/>
|
|
|
|
|
}
|
2021-02-11 11:48:54 +01:00
|
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
|
@section PageFootContent {
|
2021-04-08 15:32:42 +02:00
|
|
|
|
<partial name="_ValidationScriptsPartial" />
|
2021-02-11 11:48:54 +01:00
|
|
|
|
<bundle name="wwwroot/bundles/camera-bundle.min.js"></bundle>
|
2021-05-19 04:39:27 +02:00
|
|
|
|
<script>
|
2021-02-11 11:48:54 +01:00
|
|
|
|
window.coinName = "@Model.Network.DisplayName.ToLowerInvariant()";
|
2021-10-21 15:02:25 +02:00
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
2021-02-11 11:48:54 +01:00
|
|
|
|
initCameraScanningApp("Scan wallet QR", data => {
|
|
|
|
|
document.getElementById("WalletFileContent").value = data;
|
|
|
|
|
document.getElementById("qr-import-form").submit();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
}
|