Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Dec 13, 2024
1 parent 8431632 commit 3c49813
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 6 deletions.
7 changes: 4 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@

<p>
This page was hosting a <a href="https://github.com/blockstream/lwk">LWK</a> WASM proof of concept which is no
longer maintained ( <a href="index_old.html">old version</a>).
longer maintained (<a href="index_old.html">old version</a>).
</p>
<p>
For an LWK WASM app we suggest to have a look at the <a href="https://liquidwebwallet.org/">liquid web wallet</a>
For an LWK WASM app we suggest to have a look at the <a href="https://liquidwebwallet.org/">Liquid Web Wallet</a>
(<a href="https://github.com/RCasatta/liquid-web-wallet">source</a>).
</p>
<p>
Or the LWK react native <a href="https://liquidwebwallet.org/">repo</a>
Or the LWK react native <a href="https://liquidwebwallet.org/">repo</a>.
</p>

</body>
Expand Down
72 changes: 72 additions & 0 deletions docs/index_old.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en-us">

<head>
<title>Liquid Wallet Kit in the browser</title>
<meta name="description" content="A proof of concept of the LWK (Liquid Wallet Kit) running in the browser.">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon"
href="https://d2y5h3osumboay.cloudfront.net/8bjx2lpmkubsx5vodqpcdt7tqm20?=4064512645361149302" />
</head>

<body>
<noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
<script src="./bootstrap.js"></script>

<p>
This is a proof of concept of <a href="https://github.com/blockstream/lwk">LWK</a> (Liquid Wallet Kit) running in
the browser via WASM.
</p>
<p>
Scan a confidential transaction descriptor
<a href="https://github.com/ElementsProject/ELIPs/blob/main/elip-0150.mediawiki">[ELIP150]</a> and prints the
balance.
</p>

<p>
Works on Liquid Mainnet and Liquid Testnet.
</p>

<div>
<label for="descriptor">CT descriptor:</label>
<br />
<textarea id="descriptor" name="descriptor" rows="4"
cols="80">ct(slip77(0371e66dde8ab9f3cb19d2c20c8fa2d7bd1ddc73454e6b7ef15f0c5f624d4a86),elsh(wpkh([75ea4a43/49'/1'/0']tpubDDRMQzj8FGnDXxAhr8zgM22VT7BT2H2cPUdCRDSi3ima15TRUZEkT32zExr1feVReMYvBEm21drG1qKryjHf3cD6iD4j1nkPkbPDuQxCJG4/<0;1>/*)))#utnwh7dr</textarea>
</div>

<button disabled id="scan-button" type="button">Scan</button>

<p>
Balance:

<div id="balance" style="word-break: break-word;"></div>
</p>

<br /><br /><br />
<p>
Known issues:
<ul>
<li>WASM file size is huge (the scan button is disabled until it is fully loaded)</li>
<li>The scan takes time, network calls to <a href="https://github.com/Blockstream/esplora">esplora</a> are
sequential but
concurrent requests would hit rate limiting</li>
<li>Some more calls than the needed gap limit size (20) are made</li>
</ul>
</p>

<p>
Jade
</p>
<label for="network-select">Liquid network:</label>

<select name="network-select" id="network-select">
<option value="mainnet">Mainnet</option>
<option value="testnet" selected>Testnet</option>
</select>
<button disabled id="jade-button" type="button">Ask Jade master xpub</button>
<div id="jade-text"></div>

</body>

</html>
7 changes: 4 additions & 3 deletions lwk_wasm/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@

<p>
This page was hosting a <a href="https://github.com/blockstream/lwk">LWK</a> WASM proof of concept which is no
longer maintained ( <a href="index_old.html">old version</a>).
longer maintained (<a href="index_old.html">old version</a>).
</p>
<p>
For an LWK WASM app we suggest to have a look at the <a href="https://liquidwebwallet.org/">liquid web wallet</a>
For an LWK WASM app we suggest to have a look at the <a href="https://liquidwebwallet.org/">Liquid Web Wallet</a>
(<a href="https://github.com/RCasatta/liquid-web-wallet">source</a>).
</p>
<p>
Or the LWK react native <a href="https://liquidwebwallet.org/">repo</a>
Or the LWK react native <a href="https://liquidwebwallet.org/">repo</a>.
</p>

</body>
Expand Down

0 comments on commit 3c49813

Please sign in to comment.