Skip to content

Commit

Permalink
ref: logically group Export WIF with Wallet and Send Memo with Send
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Aug 17, 2024
1 parent b09a41d commit b87ecba
Showing 1 changed file with 50 additions and 51 deletions.
101 changes: 50 additions & 51 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,21 @@ <h1>Digital Cash Wallet</h1>
disabled
/>
</label>

<label
>Address for WIF Export
<small>base58check-encoded pkh</small>
<input
type="text"
data-id="export-address"
placeholder="ex: ybLxVb3aspSHFgxM1qTyuBSXnjAqLFEG8P"
/>
</label>
<pre><code data-id="export-wif"><em>output: private key as wif</em></code></pre>
<button type="submit" onclick="App.exportWif(event)">
Export WIF
</button>

<hr />
<label
>Coins (<code data-id="total-balance">0.0000</code>)
Expand Down Expand Up @@ -241,6 +256,41 @@ <h1>Digital Cash Wallet</h1>
</label>

<button type="submit" onclick="App.sendDash(event)">Send DASH</button>
<hr />
<label
>Send Memo
<small>hex-encoded op_return</small>
<br />
<label style="display: inline-block"
><input
type="radio"
name="memo-encoding"
value="hex"
onchange="document.querySelector('[name=memo]').placeholder = 'ex: 48656c6c6f2c20576f726c6421'"
checked="checked"
/>
hex
</label>
<label style="display: inline-block"
><input
type="radio"
name="memo-encoding"
value="string"
onchange="document.querySelector('[name=memo]').placeholder = 'ex: Hello, World!'"
/>
string (utf-8)
</label>
<input
type="text"
name="memo"
placeholder="ex: 48656c6c6f2c20576f726c6421"
/>
</label>
<small
>Share: <a href="" data-id="memo-link" target="_blank"></a
></small>
<pre><code data-id="memo-txid"><em>output: txid</em></code></pre>
<button type="button" onclick="App.sendMemo(event)">Send Memo</button>

<hr />
<label
Expand Down Expand Up @@ -427,57 +477,6 @@ <h1>Digital Cash Wallet</h1>
<button type="button" onclick="App.denominateCoins(event)">
Denominate Coins
</button>

<hr />
<label
>Send Memo
<small>hex-encoded op_return</small>
<br />
<label style="display: inline-block"
><input
type="radio"
name="memo-encoding"
value="hex"
onchange="document.querySelector('[name=memo]').placeholder = 'ex: 48656c6c6f2c20576f726c6421'"
checked="checked"
/>
hex
</label>
<label style="display: inline-block"
><input
type="radio"
name="memo-encoding"
value="string"
onchange="document.querySelector('[name=memo]').placeholder = 'ex: Hello, World!'"
/>
string (utf-8)
</label>
<input
type="text"
name="memo"
placeholder="ex: 48656c6c6f2c20576f726c6421"
/>
</label>
<small
>Share: <a href="" data-id="memo-link" target="_blank"></a
></small>
<pre><code data-id="memo-txid"><em>output: txid</em></code></pre>
<button type="button" onclick="App.sendMemo(event)">Send Memo</button>

<hr />
<label
>Address for WIF Export
<small>base58check-encoded pkh</small>
<input
type="text"
data-id="export-address"
placeholder="ex: ybLxVb3aspSHFgxM1qTyuBSXnjAqLFEG8P"
/>
</label>
<pre><code data-id="export-wif"><em>output: private key as wif</em></code></pre>
<button type="submit" onclick="App.exportWif(event)">
Export WIF
</button>
</form>
</section>
<br />
Expand Down

0 comments on commit b87ecba

Please sign in to comment.