-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
108 lines (100 loc) · 4.43 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dogecoin Signature Tool</title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; max-width: 600px; min-width: 200px; margin-right: auto; margin-left: auto; color: #333">
<style>
input, button{
width: 100%;
border-radius: 8px;
padding: 12px;
}
button{
border-color: gray;
background-color: #f5f5f5;
}
label {
margin: 8px;
}
.form{
display: flex;
flex-direction: column;
}
</style>
<div id="main" style="margin: 8px; padding-bottom: 100px;">
<h1>Dogecoin signature tool</h1>
<h2>Safety</h2>
This tool is open source and entierly executed on client side. Signing a message requires a secret phrase, it will never be sent to any server.
Using this tool should be safe, however don't trust, verify. Here are some safety measures you should take:
<ul>
<li> Download, verify and execute <a href="https://github.com/Dogenano-xdg/dogecoin-signature-tool">source code</a> locally</li>
<li> Withdraw your Dogecoin to a new wallet before using it</li>
<li> Enable plane mode and disable your internet connection while using it</li>
</ul>
<h2>Sign message</h2>
<div class="form">
<label>Key Format</label>
<div style="display: flex; align-items: center; margin-bottom: 16px;">
<div>
<label for="format-bip39">BIP39</label>
<input type="radio" name="format" value="bip39" checked id="format-bip39" style="width: 30px;">
</div>
<div>
<label for="format-privkey">WIF</label>
<input type="radio" name="format" value="privkey" id="format-privkey" style="width: 30px;">
</div>
</div>
<div id="bip39-words">
<div>
<label>12 or 24 words secret phrase (BIP39):</label>
<input id="words" placeholder="12 or 24 words secret"/>
</div>
<div style="margin-top: 8px;">
<label>(Advanced) Index: </label>
<input id="index" type="number" placeholder="Index" value="0"/>
</div>
</div>
<div id="privkey-key" style="display: none;">
<label>Private key: (51 or 52 char.)</label>
<input id="wif" placeholder="Private key (WIF)"/>
</div>
<label>Message to sign:</label>
<input id="message" placeholder="Message to sign" />
<label>Dogecoin address:</label>
<input id="dogecoin-address" placeholder="Dogecoin address" disabled/>
<div style="display: flex;">
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="setExampleSign">Example</button>
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="resetSign" >Reset</button>
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="sign">Sign</button>
</div>
<label>Signature result:</label>
<textarea style="margin-top: 8px;" id="signature-result" placeholder="Signature result" ></textarea>
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="copy">Copy signature</button>
</div>
<h2>Verify message</h2>
<div class="form">
<label>Message Dogecoin address:</label>
<input id="message-dogecoin-address" placeholder="Dogecoin address"/>
<label>Message to verify:</label>
<input id="message-to-verify" placeholder="Message to verify" />
<label>Message signature:</label>
<input id="message-signature" placeholder="Message Signature" />
<div style="display: flex;">
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="setExampleVerify">Example</button>
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="resetVerify" >Reset</button>
<button style="width: 125px; margin-top: 8px; margin-right: 4px;" id="verify">Verify</button>
</div>
<div style="margin-top: 8px;" id="signature-isvalid"></div>
<div id="signature-error"></div>
</div>
<h3>About</h3>
This tool was created for <a href="https://dogenano.io/distribution">Dogenano distribution</a><br/>
<a href="https://github.com/Dogenano-xdg/dogecoin-signature-tool">Git Repo</a> <a href="https://github.com/Dogenano-xdg/dogecoin-signature-tool/archive/refs/heads/main.zip">Download ZIP</a>
</div>
<script src="bundle.js"></script>
</body>
</html>