-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
171 lines (161 loc) · 6.12 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html>
<head>
<title>sign btc addresses</title>
<link rel="stylesheet" type="text/css" href="./src/style.css">
<link href="https://fonts.googleapis.com/css?family=Share+Tech+Mono" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="header">
<div class="row pt-3 pb-3">
<div class="col-2">
<img src="./assets/CryptoProof.png" height="75" alt="" class="ml-2 mr-2">
</div>
<div class="col-8 align-self-center text-center">
<h1 class="no-margin">CryptoProof</h1>
</div>
</div>
</div>
<div class="container mb-5">
<div class="row">
<div class="col-12 col-lg-6 thin">
<div class="row mt-3 text-center">
<div class='col-12'>
<h1 class="text-center">Generate signature</h1>
</div>
</div>
<div class="row">
<div class='col-12'>
<h4>Enter Private Key:</h4>
</div>
</div>
<div class="row">
<div class='col-12'>
<textarea
class="inputTextArea areaMd"
type="text"
id="WIFinput"
placeholder="KyrijJDC3Aer78Z2nzRA3NAKMdMVwthMpH7fSyTQVBAj1KDBwiXa"></textarea>
</div>
</div>
<div class="row">
<div class='col-12'>
<h4>Enter Message:</h4>
</div>
</div>
<div class="row">
<div class='col-12'>
<input
class="inputTextArea"
type="text"
id="messageInput"
placeholder=" I, Satoshi, own this wallet">
</div>
</div>
<div class="row">
<div class='col-12'>
<h4>Signature</h4>
</div>
</div>
<div class="row">
<div class='col-12'>
<p id="signature" class="generatedOutput outputSm"></p>
</div>
</div>
<div class="row mt-3 mb-3">
<div class="col-6 offset-3">
<button class="btn btn-lg btn-block" type="button" id="generate">generate</button>
</div>
</div>
<div class="row mt-3">
<div class="col-12">
<p>
CryptoProof is an easy way to generate proof you own a specific bitcoin wallet by signing a message with the wallet's private key. When you sign a message with a private key it generates a signature.
</p>
</div>
</div>
</div>
<div class="col-12 col-lg-6 thin">
<div class="row mt-3 text-center">
<div class="col-12">
<h1 class="text-center">Verify signature</h1>
</div>
</div>
<div class="row">
<div class="col-12">
<h4>Enter Public Key:</h4>
</div>
</div>
<div class="row">
<div class="col-12">
<textarea
class="inputTextArea"
type="text"
id="walletInput"
placeholder="17Tbeu1VTRB4nMPNJQGC4b6561YwhXdufG"></textarea>
</div>
</div>
<div class="row">
<div class="col-12">
<h4>Enter Signature:</h4>
</div>
</div>
<div class="row">
<div class="col-12">
<textarea
class="inputTextArea areaLg"
type="text"
id="signatureInput"
placeholder="H/UjQd4DeaIfT8C5GW5ByTD9Goiu0P6y2VTRcwkpE1wcWIxqCHrEsd7JoOO76avxP6Sqpm2zBSulrazt8WczEuc="></textarea>
</div>
</div>
<div class="row">
<div class="col-12">
<h4>Enter Message:</h4>
</div>
</div>
<div class="row">
<div class="col-12">
<input
class="inputTextArea"
type="text"
id="verifyMessageInput"
placeholder=" I, Satoshi, own this wallet">
</div>
</div>
<div class="row mt-3 mb-3">
<div class="col-12 col-xl-6">
<button class="btn btn-lg btn-block" type="button" id="verify">verify</button>
</div>
<div class="col-12 col-xl-6 align-self-center text-center mt-3 mb-3">
<h5 class="no-margin">Verified?
<span id="verified" class="generatedOutput">unknown</span>
</h4>
</div>
</div>
<div class="row">
<div class="col-12">
<p>
You can also use CryptoProof to verify someone else's ownership of a specific wallet address. You can combine a wallet address (aka a public key), the message, and compare it to a signature supplied by the individual in question. The verifier will return either true or false (verified or unverified, respectively).
</p>
</div>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-12">
<p>
If someone proves ownership to me by giving me a wallet address, a message, and a signature, can't I turn around and go "prove" to someone else I own that wallet address?
<br><br>
Yes, you could try, but they would correctly not accept it as proof if they understands how hashing works. The verifying party should always supply their own unique message when asking for proof of ownership.
</p>
</div>
</div>
</div>
<script src="./dist/bundle.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>