This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
53 lines (45 loc) · 2.08 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Stellar Lumens Paper wallet generator</title>
<!-- curl https://raw.githubusercontent.com/stellar/bower-js-stellar-base/f7ed5511dc880769e96cd945e1d2b6c2151cf8b7/stellar-base.min.js | openssl dgst -sha384 -binary | openssl enc -base64 -A -->
<script type="text/javascript" src="stellar-base.min.js" integrity="sha384-wm2ZBJMcLtePR9Bp/wQebZrPUWAzO1LnGySDR4V7ILUD1G3NFTeX0Dbkf4Zr+TFg" crossorigin="anonymous"></script>
<!-- curl https://raw.githubusercontent.com/davidshimjs/qrcodejs/04f46c6a0708418cb7b96fc563eacae0fbf77674/qrcode.min.js | openssl dgst -sha384 -binary | openssl enc -base64 -A -->
<script type="text/javascript" src="qrcode.min.js" integrity="sha384-3zSEDfvllQohrq0PHL1fOXJuC/jSOO34H46t6UQfobFOmxE5BpjjaIJY5F2/bMnU" crossorigin="anonymous"></script>
<style type="text/css">
body {
font-family: monospace;
font-size: 14px;
}
div {
margin-bottom: 10px;
}
</style>
</head>
<body>
<h2>Deprecated</h2>
<p>
This project is no longer maintained.
</p>
<p>
Please use <a href="https://github.com/stellar/go/releases/tag/stellar-hd-wallet-v0.0.2"><code>stellar-hd-wallet</code></a>. It's a command line application that generates a mnemonic seed (24 words) that derives Stellar key pairs. It's much easier to store (you can just write it down) and do not require a printer.
</p>
<p>If you still want to use this tool press the button below:</p>
<button onclick="generate()">Generate</button>
<div id="public"></div>
<div id="public_qr"></div>
<div id="secret"></div>
<div id="secret_qr"></div>
<script type="text/javascript">
function generate() {
var keypair = StellarBase.Keypair.random();
document.getElementById("public").innerText = keypair.publicKey();
document.getElementById("secret").innerText = keypair.secret();
document.getElementById("public_qr").innerHTML = "";
document.getElementById("secret_qr").innerHTML = "";
new QRCode(document.getElementById("public_qr"), keypair.publicKey());
new QRCode(document.getElementById("secret_qr"), keypair.secret());
}
</script>
</body>
</html>