-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
42 lines (32 loc) · 857 Bytes
/
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
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<div class="content">
<h1> Secp256k1 Signature Verifier </h1>
<br>
Public key:<br>
<textarea id="publicTextbox" rows="4" cols="60"></textarea>
<br><br>
Message: <input type="text" id="msgTextbox" size="10"><br>
<br>
Signature:
<br>
<textarea id="sigTextbox" rows="3" cols="60"></textarea>
<br>
<br>
<button id="verifyButton" class="button" onclick="verify()">Verify</button>
<span id="resultText"></span>
<br><br><br>
<p>
<b>Notes: </b><br>
Public key must be uncompressed ('04' + hex string) <br>
Message is hashed with sha256 before signing <br>
Signature format: DER-encoded as hex-string <br>
</p>
<script src="./bundle.js" charset="utf-8" >
</script>
</div>
</body>
</html>