This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathindex.html
357 lines (332 loc) · 18.3 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!doctype html>
<html lang="en">
<head>
<!--
Donation Address: 1MnKnd2t7Tfpy1Cs8bm5DraC9HzrHmHoso
Notice of Copyrights and Licenses:
***********************************
The bitescrow.org project, software and embedded resources are copyright bitescrow.org.
The individual copyrights are included throughout the document along with their licenses.
Included JavaScript libraries are separated with HTML script tags.
Summary of JavaScript functions with a redistributable license:
JavaScript License
******************** ***************
Array.prototype.map Public Domain
window.Crypto BSD License
window.Crypto.Scrypt MIT License
window.SecureRandom BSD License
window.EllipticCurve BSD License
window.BigInteger BSD License
window.Bitcoin MIT License
window.Bitcoin.Escrow MIT License
Framework License
******************* **************
Boostrap Apache License
The bitescrow.org software is available under The MIT License (MIT)
Copyright (c) 2013 bitescrow.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject
to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
GitHub Repository: https://github.com/mannkind/bitescrow.org
-->
<title>Bitcoin Escrow</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.css" rel="stylesheet"></link>
<link href="css/bootstrap-responsive.css" rel="stylesheet"></link>
<link href="css/bitescrow.css" rel="stylesheet"></link>
<script src="js/array.map.js" type="text/javascript"></script>
<script src="js/crypto.js" type="text/javascript"></script>
<script src="js/crypto.hmac.js" type="text/javascript"></script>
<script src="js/crypto.sha256.js" type="text/javascript"></script>
<script src="js/crypto.pbkdf2.js" type="text/javascript"></script>
<script src="js/crypto.aes.js" type="text/javascript"></script>
<script src="js/crypto.blockmodes.js" type="text/javascript"></script>
<script src="js/crypto.ripemd160.js" type="text/javascript"></script>
<script src="js/securerandom.js" type="text/javascript"></script>
<script src="js/ellipticcurve.js" type="text/javascript"></script>
<script src="js/biginteger.js" type="text/javascript"></script>
<script src="js/bitcoinjs-lib.base58.js" type="text/javascript"></script>
<script src="js/bitcoinjs-lib.address.js" type="text/javascript"></script>
<script src="js/bitcoinjs-lib.ecdsa.js" type="text/javascript"></script>
<script src="js/bitcoinjs-lib.eckey.js" type="text/javascript"></script>
<script src="js/bitcoinjs-lib.util.js" type="text/javascript"></script>
<script src="js/bitcoin.escrow.js" type="text/javascript"></script>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
<script src="js/bitescrow.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<div class="row"> </div>
<div class="row">
<div class="alert alert-error">
<strong>Unmaintained Notice:</strong> The bitescrow.org domain expires 2015-04-19. The source will remain in the current GitHub repo, but the code nor the site wil be maintained.
</div>
</div>
<div class="row">
<div class="span12">
<h2>Bitcoin Escrow</h2>
<p>An implementation of the <a href="https://en.bitcoin.it/wiki/User:Casascius/Escrow_scheme_draft">Bitcoin Escrow</a> proposal.</p>
<p>If you're looking for Two-Factor Bitcoins (<a href="https://en.bitcoin.it/wiki/BIP_0038">BIP38</a>), checkout <a href="http://www.bit2factor.org">bit2factor.org</a>.</p>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
Escrow Agent
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
<div class="infostructions">
<p>Starting an escrow transaction is easy; click the "Generate Escrow Invitations" button.</p>
<p>Once the two codes are generated, give one to the Payee and one to the Payer.</p>
<div class="alert alert-info"><strong>Do not</strong> give either party both of the escrow invitation codes unless you are resolving a dispute/forcing the release of coins.</div>
</div>
<form class="form-horizontal">
<div class="form-actions">
<button id="generate-codepair" class="btn btn-primary" data-loading-text=" ... Generating ... ">Generate Escrow Invitations</button>
</div>
<div class="control-group">
<label class="control-label" for="gen-einva">Escrow Invitation A</label>
<div class="controls">
<input id="gen-einva" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="gen-einvb">Escrow Invitation B</label>
<div class="controls">
<input id="gen-einvb" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
</form>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
Payee (Generate Payment Invitation)
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
<div class="infostructions">
<p>Enter your escrow invitiation code below.</p>
<p>Send the resulting address and payment invitiation code to the Payer.</p>
<div class="alert alert-info"><strong>Do not</strong> send the Payer your escrow invitiation code until the transaction is complete and the coins are ready to be released.</div>
</div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="payment-code1">Escrow Invitation</label>
<div class="controls">
<input id="payment-code1" placeholder=" Enter an Escrow Invitation Code" class="span8" />
</div>
</div>
<div class="form-actions">
<button id="generate-payment" class="btn btn-primary" data-loading-text=" ... Generating ... ">Generate Payment Invitation</button>
</div>
<div class="control-group">
<label class="control-label" for="payment-address">Address</label>
<div class="controls">
<input id="payment-address" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="payment-einvp">Payment Invitiation</label>
<div class="controls">
<input id="payment-einvp" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
<div class="alert alert-info"><strong>Optional:</strong> send the Address & Payment Confirmation code to your escrow agent for verification.</div>
<div class="control-group">
<label class="control-label" for="payment-cfrmp">Payment Confirmation</label>
<div class="controls">
<input id="payment-cfrmp" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
</form>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFive">
Escrow (Verify Payment Confirmation) <small>—optional—</small>
</a>
</div>
<div id="collapseFive" class="accordion-body collapse">
<div class="accordion-inner">
<p>Enter your escrow invitiations and the payment confirmation code below.</p>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="verify-ccode1">Escrow Invitation A</label>
<div class="controls">
<input id="verify-ccode1" placeholder=" Enter an Escrow Invitation Code" class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="verify-ccode2">Escrow Invitation B</label>
<div class="controls">
<input id="verify-ccode2" placeholder=" Enter an Escrow Invitation Code" class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="verify-ccode3">Payment Confirmation</label>
<div class="controls">
<input id="verify-ccode3" placeholder=" Enter a Payment Confirmation Code" class="span8" />
</div>
</div>
<div class="form-actions">
<button id="verifyc" class="btn btn-primary" data-loading-text=" ... Verifying ... ">Verify Address & Confirmation</button>
</div>
</form>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
Payer (Verify Escrow & Payment Invitations)
</a>
</div>
<div id="collapseThree" class="accordion-body collapse">
<div class="accordion-inner">
<p>Enter your escrow invitiation and payment invitation codes below.</p>
<p>If the address and payment invitiation code you were given matches your escrow invitiation code, you can send the coins to the address.</p>
<div class="alert alert-info"><strong>Do not</strong> send coins to an address that does not belong to your escrow transaction!</div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="verify-code1">Escrow Invitation</label>
<div class="controls">
<input id="verify-code1" placeholder=" Enter an Escrow Invitation Code" class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="verify-code2">Payment Invitation</label>
<div class="controls">
<input id="verify-code2" placeholder=" Enter a Payment Invitation Code" class="span8" />
</div>
</div>
<div class="form-actions">
<button id="verify" class="btn btn-primary" data-loading-text=" ... Verifying ... ">Verify Address & Invitations</button>
</div>
</form>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
Collect Bitcoins
</a>
</div>
<div id="collapseFour" class="accordion-body collapse">
<div class="accordion-inner">
<p>Enter both escrow invitiation codes and the payment invitation code below to receive the private key in the Wallet Import Format.
</p>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="redeem-code1">Escrow Invitation</label>
<div class="controls">
<input id="redeem-code1" placeholder=" Enter an Escrow Invitation Code" class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="redeem-code2">Escrow Invitation</label>
<div class="controls">
<input id="redeem-code2" placeholder=" Enter an Escrow Invitation Code" class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="redeem-code3">Payment Invitation</label>
<div class="controls">
<input id="redeem-code3" placeholder=" Enter a Payment Invitation Code" class="span8" />
</div>
</div>
<div class="form-actions">
<button id="redeem" class="btn btn-primary" data-loading-text=" ... Redeeming ... ">Generate Private Key (WIF)</button>
</div>
<div class="control-group">
<label class="control-label" for="redeem-address">Address</label>
<div class="controls">
<input id="redeem-address" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="redeem-wif">Private Key (WIF)</label>
<div class="controls">
<input id="redeem-wif" placeholder=" ... not yet generated ... " class="span8" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="span12">
<hr />
<p><button id="run-tests" class="btn btn-primary btn-small" data-loading-text=" ... Running Tests ... ">Run Bitcoin Escrow Test Suite</button></p>
<p class="muted">The test suite does take some time to complete so please be patient.</p>
</div>
</div>
<div class="row">
<div class="span12">
<hr />
<p><small>
<span class="pull-right">
<a href="https://github.com/mannkind/bitescrow.org">View Source Code</a>
</span>
</small></p>
</div>
</div>
</div>
<div id="verify-modal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Verification Result</h3>
</div>
<div class="modal-body">
<p id="verify-verification"> ... not yet verified ... </p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
<div id="verifyc-modal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Verification Result</h3>
</div>
<div class="modal-body">
<p id="verifyc-verification"> ... not yet verified ... </p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
<div id="run-tests-modal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Bitcoin Escrow Test Results</h3>
</div>
<div class="modal-body">
<p> ... tests not yet completed ... </p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
</body>
</html>