forked from Scottcjn/Rustchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
122 lines (102 loc) · 4.67 KB
/
Copy pathindex.html
File metadata and controls
122 lines (102 loc) · 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>RustChain Light Client | Secure Wallet Interface</title>
<meta name="description" content="RustChain Light Client - Secure wallet interface for RTC transactions. Sign transfers locally with your private keys.">
<meta name="keywords" content="RustChain, RTC wallet, light client, secure wallet, cryptocurrency wallet, blockchain">
<meta name="author" content="Elyan Labs">
<meta name="robots" content="index, follow">
<!-- Canonical URL -->
<link rel="canonical" href="https://rustchain.org/light-client/index.html">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://rustchain.org/light-client/index.html">
<meta property="og:title" content="RustChain Light Client | Secure Wallet Interface">
<meta property="og:description" content="Secure wallet interface for RTC transactions with local private key signing.">
<meta property="og:image" content="https://rustchain.org/elyan_logo.png">
<meta property="og:site_name" content="RustChain">
<!-- Twitter -->
<meta property="twitter:card" content="summary">
<meta property="twitter:url" content="https://rustchain.org/light-client/index.html">
<meta property="twitter:title" content="RustChain Light Client | Secure Wallet Interface">
<meta property="twitter:description" content="Secure wallet interface for RTC transactions with local private key signing.">
<meta property="twitter:image" content="https://rustchain.org/elyan_logo.png">
<link rel="stylesheet" href="/light-client/app.css" />
</head>
<body>
<main class="wrap">
<header class="top">
<div class="brand">
<div class="brand-title">RustChain</div>
<div class="brand-sub">Light Client (Signed Transfers)</div>
</div>
<div class="meta">
<div class="pill" id="nodeOriginPill"></div>
<a class="pill pill-link" href="/explorer">Explorer</a>
</div>
</header>
<section class="grid">
<section class="card">
<h2>Wallet</h2>
<div class="row">
<button id="btnGenerate">Generate 24-word Seed</button>
<button class="ghost" id="btnLock">Lock</button>
</div>
<label class="label" for="mnemonic">Mnemonic (24 words)</label>
<textarea id="mnemonic" rows="4" spellcheck="false" placeholder="paste 24 words here"></textarea>
<div class="row">
<button id="btnLoad">Load Wallet</button>
<button class="ghost" id="btnCopyAddress">Copy Address</button>
</div>
<div class="kv">
<div class="k">Address</div>
<div class="v mono" id="addr">-</div>
<div class="k">Public Key</div>
<div class="v mono" id="pub">-</div>
</div>
<p class="hint">
No private key is sent to the server. Transfers are signed locally in your browser.
</p>
</section>
<section class="card">
<h2>Balance</h2>
<div class="row">
<button id="btnBalance">Refresh</button>
<div class="pill" id="balancePill">- RTC</div>
</div>
<div class="log mono" id="balanceLog"></div>
</section>
<section class="card">
<h2>Send (Signed)</h2>
<label class="label" for="to">To Address (RTC...)</label>
<input id="to" class="mono" placeholder="RTC........................................" />
<div class="row">
<div class="col">
<label class="label" for="amount">Amount (RTC)</label>
<input id="amount" inputmode="decimal" placeholder="1" />
</div>
<div class="col">
<label class="label" for="memo">Memo (optional)</label>
<input id="memo" placeholder="hello" />
</div>
</div>
<div class="row">
<button id="btnSend">Sign & Send</button>
</div>
<div class="log mono" id="sendLog"></div>
<p class="hint">
Nonce uses current time in milliseconds to avoid replay collisions.
</p>
</section>
</section>
<footer class="foot">
<span class="muted">Route:</span> <span class="mono">/light</span>
<span class="muted">Static:</span> <span class="mono">/light-client/...</span>
</footer>
</main>
<script src="/light-client/vendor/nacl-fast.min.js"></script>
<script src="/light-client/app.js"></script>
</body>
</html>