-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
1367 lines (1336 loc) · 66.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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>OpenBazaar Contract Tools</title>
<meta name="description" content="Client-side contract tools for viewing and creating OpenBazaar contracts. Compatibility with CommonAccord API for the creation of legally enforceable contracts." />
<!-- Twitter Card data -->
<meta name="twitter:card" value="summary">
<meta name="twitter:site" content="@openbazaar">
<meta name="twitter:title" content="OpenBazaar Contract Tools">
<meta name="twitter:description" content="Client-side contract tools for viewing and creating OpenBazaar contracts. Compatibility with CommonAccord API for the creation of legally enforceable contracts.">
<meta name="twitter:creator" content="@drwasho">
<meta name="twitter:image" content="http://s21.postimg.org/4x6gx7lyv/twitter.png">
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="OpenBazaar Contract Tools">
<meta itemprop="description" content="Client-side contract tools for viewing and creating OpenBazaar contracts. Compatibility with CommonAccord API for the creation of legally enforceable contracts.">
<meta itemprop="image" content="http://s21.postimg.org/4x6gx7lyv/twitter.png">
<!-- Open Graph data -->
<meta property="og:title" content="OpenBazaar Contract Tools" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://drwasho.github.io/OB-Common-Accord/" />
<meta property="og:image" content="http://s21.postimg.org/4x6gx7lyv/twitter.png" />
<meta property="og:description" content="Client-side contract tools for viewing and creating OpenBazaar contracts. Compatibility with CommonAccord API for the creation of legally enforceable contracts." />
<link rel="shortcut icon" href="assets/img/favicon.png">
<link rel="stylesheet" href="assets/css/bootstrap.css" />
<link rel="stylesheet" href="assets/css/fonts.css" />
</head>
<body>
<!-- Style data -->
<style>
.strokeme
{
color: black;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
.wordwrap {
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Firefox */
white-space: -pre-wrap; /* Opera 7 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE */
}
.sample-show-hide {
padding:10px;
border:1px solid black;
background:white;
}
.
{
cursor: auto;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QsPDhss3LcOZQAAAU5JREFUOMvdkzFLA0EQhd/bO7iIYmklaCUopLAQA6KNaawt9BeIgnUwLHPJRchfEBR7CyGWgiDY2SlIQBT/gDaCoGDudiy8SLwkBiwz1c7y+GZ25i0wnFEqlSZFZKGdi8iiiOR7aU32QkR2c7ncPcljAARAkgckb8IwrGf1fg/oJ8lRAHkR2VDVmOQ8AKjqY1bMHgCGYXhFchnAg6omJGcBXEZRtNoXYK2dMsaMt1qtD9/3p40x5yS9tHICYF1Vn0mOxXH8Uq/Xb389wff9PQDbQRB0t/QNOiPZ1h4B2MoO0fxnYz8dOOcOVbWhqq8kJzzPa3RAXZIkawCenHMjJN/+GiIqlcoFgKKq3pEMAMwAuCa5VK1W3SAfbAIopum+cy5KzwXn3M5AI6XVYlVt1mq1U8/zTlS1CeC9j2+6o1wuz1lrVzpWXLDWTg3pz/0CQnd2Jos49xUAAAAASUVORK5CYII=);
background-attachment: scroll;
background-position: 100% 50%;
background-repeat: no-repeat;
}
</style>
<!-- App and Controller -->
<div ng-app="part1" ng-controller="Working">
<!-- Navbar -->
<div class="navbar navbar-default">
<a href="https://github.com/drwasho/OB-Common-Accord"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" ></a>
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://openbazaar.org" target="_blank">OpenBazaar</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li><a href="#" ng-click="home()">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Physical Goods Contract <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-header">Stages</li>
<li><a href="#" ng-click="toggle1()">1. <b>Merchant:</b> Create contract</a></li>
<li><a href="#" ng-click="toggle2()">2. <b>Buyer:</b> Buy contract</a></li>
<li><a href="#" ng-click="toggle3()">3. <b>Notary:</b> Notarise contract</a></li>
<li><a href="#" ng-click="toggle4()">4. <b>Buyer:</b> Fund escrow</a></li>
<li><a href="#" ng-click="toggle5()">5. <b>Merchant:</b> Ship item</a></li>
<li><a href="#" ng-click="toggle6()">6. <b>Buyer:</b> Release funds to merchant</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Bounded Futures<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://gist.github.com/drwasho/04dbaf19da4f4a8ae512" target="_blank">What is this?</a></li>
<li class="divider"></li>
<li class="dropdown-header">Stages</li>
<li><a href="#" ng-click="toggle1()">1. <b>Merchant:</b> Create futures contract</a></li>
<li><a href="#" ng-click="toggle2()">2. <b>Buyer:</b> Buy futures contract</a></li>
<li><a href="#" ng-click="toggle3()">3. <b>Notary:</b> Notarise futures contract</a></li>
<li><a href="#" ng-click="toggle4()">4. <b>Buyer:</b> Fund escrow</a></li>
<li><a href="#" ng-click="toggle5()">5. <b>Merchant:</b> Ship item</a></li>
<li><a href="#" ng-click="toggle6()">6. <b>Buyer:</b> Release funds to merchant</a></li>
</ul>
</li>
</ul>
</div>
</div>
<!-- Div containers -->
<div class="container">
<div class="container">
<!-- Jumbotron -->
<div class="row">
<div class="jumbotron" style="background: url('assets/img/background4.jpg') no-repeat center center;">
<h1 class="strokeme" style="color:white;">OpenBazaar Contract Tools</h1>
<h3 class="strokeme" style="color:white;">A Beautiful Tool to View and Create <i>OpenBazaar</i> Ricardian Contracts.</h3>
<h4 class="strokeme" style="color:white;">For testing purposes only!</h4>
<br />
<br />
<br />
</div>
</div>
<!-- Introduction for Tools -->
<div ng-show="peek">
<!-- Introduction: General -->
<div class="row">
<h1 style="font-size:48px"><i>OpenBazaar</i> Contract Tools</h1>
<br />
<h2 >What is this?</h2>
<hr>
<p>Client-side tools created with AngularJS to parse <i>OpenBazaar</i> Ricardian Contracts formatted in JSON, displaying them in stylish HTML (twitter bootstrap, responsive design), and also automagically populate the fields of <i>CommonAccord's</i> legally enforceable escrow contract template.</p>
<p>Please note that this is for <b>testing only</b>, using a yet unimplemented version of the <i>OpenBazaar</i> contract schema. It is also an unfinished tool, so do not expect that anything your create here is legally enforceable... neither is it legal advice. Always consult legal experts.</p>
<br />
</div>
</div>
<!-- ############################## -->
<!-- ## Contract Generator Tools ## -->
<!-- ############################## -->
<!-- # 1. Create Contract # -->
<div ng-show="peek1">
<!-- Introduction: Create Contract -->
<div class="row">
<h1 style="font-size:48px"><i>OpenBazaar</i> Contract Tools</h1>
<br />
<h2>How to use</h2>
<hr>
<p>Profound stuff here.</p>
<br />
</div>
<div class="row">
<h2>Create an <i>OpenBazaar</i> Ricardian Contract</h2>
<hr>
</div>
<!-- START() -->
<div ng-keyup="start()">
<div class="row">
<div class="well bs-component col-lg-12">
<form class="form-horizontal">
<fieldset>
<h3>Stage 01: The Merchant</h3>
<hr />
<h4>Item Details</h4>
<!-- Item Title -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Title:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="item_title" ng-model="item_title" autocomplete="off" placeholder="What is your item called?" >
</div>
</div>
<!-- Item Description -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Description:</label>
</div>
<div class="col-lg-9">
<textarea type="text" class="form-control " id="item_description" ng-model="item_description" autocomplete="off" placeholder="Tell us about your item" rows="4"></textarea>
</div>
</div>
<!-- Item Price -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Price (BTC):</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="item_price" ng-model="item_price" autocomplete="off" placeholder="Price of the item in Bitcoin" >
</div>
</div>
<!-- Item Price Fiat -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Price (fiat):</label>
</div>
<div class="col-lg-6">
<input type="text" class="form-control" id="item_fiat_price" ng-model="item_fiat_price" autocomplete="off" placeholder="Price in fiat?" >
</div>
<div class="col-lg-3">
<input type="text" class="form-control" id="item_fiat_xe" ng-model="item_fiat_xe" autocomplete="off" placeholder="What is the currency code?" >
</div>
</div>
<br />
<!-- Item Image1 -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Item Image 1:</label>
</div>
<div class="col-lg-4">
<input type="text" class="form-control " id="item_image1" ng-model="item_image1" autocomplete="off" placeholder="Enter direct URL here" >
</div>
<div class="col-lg-5">
<input type="text" class="form-control " id="item_image_hash1" ng-model="item_image_hash1" autocomplete="off" placeholder="Enter SHA256 hash of the image" >
</div>
</div>
<!-- Item Image2 -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Item Image 2:</label>
</div>
<div class="col-lg-4">
<input type="text" class="form-control " id="item_image2" ng-model="item_image2" autocomplete="off" placeholder="Enter direct URL here" >
</div>
<div class="col-lg-5">
<input type="text" class="form-control " id="item_image_hash2" ng-model="item_image_hash2" autocomplete="off" placeholder="Enter SHA256 hash of the image" >
</div>
</div>
<!-- Item Image3 -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Item Image 3:</label>
</div>
<div class="col-lg-4">
<input type="text" class="form-control " id="item_image3" ng-model="item_image3" autocomplete="off" placeholder="Enter direct URL here" >
</div>
<div class="col-lg-5">
<input type="text" class="form-control " id="item_image_hash3" ng-model="item_image_hash3" autocomplete="off" placeholder="Enter SHA256 hash of the image" >
</div>
</div>
<!-- Item Image4 -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Item Image 4:</label>
</div>
<div class="col-lg-4">
<input type="text" class="form-control " id="item_image4" ng-model="item_image4" autocomplete="off" placeholder="Enter direct URL here" >
</div>
<div class="col-lg-5">
<input type="text" class="form-control " id="item_image_hash4" ng-model="item_image_hash4" autocomplete="off" placeholder="Enter SHA256 hash of the image" >
</div>
</div>
<!-- Item Image5 -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Item Image 5:</label>
</div>
<div class="col-lg-4">
<input type="text" class="form-control " id="item_image5" ng-model="item_image5" autocomplete="off" placeholder="Enter direct URL here" >
</div>
<div class="col-lg-5">
<input type="text" class="form-control " id="item_image_hash5" ng-model="item_image_hash5" autocomplete="off" placeholder="Enter SHA256 hash of the image" >
</div>
</div>
<br />
<!-- Item Condition -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Item Condition:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="item_condition" ng-model="item_condition" autocomplete="off" placeholder="What is the item's condition?" >
</div>
</div>
<!-- Item Quantity -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Quantity:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="item_quantity" ng-model="item_quantity" autocomplete="off" placeholder="How many units of the item are you selling in this contract?" >
<span class="help-block"><b>Note:</b> the contract the price is to purchase the total number of units of the item.</span>
</div>
</div>
<!-- Item Keywords -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Keywords:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="item_keywords" ng-model="item_keywords" autocomplete="off" placeholder="Separate keywords with a comma!" >
</div>
</div>
<!-- Item Region and Delivery -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Region and Estimated Delivery:</label>
</div>
<div class="col-lg-5">
<input type="text" class="form-control " id="item_region" ng-model="item_region" autocomplete="off" placeholder="Regions you can ship to" >
</div>
<div class="col-lg-4">
<input type="text" class="form-control " id="item_estdelivery" ng-model="item_estdelivery" autocomplete="off" placeholder="What is the estimated delivery time?" >
</div>
</div>
<!-- Expiration date -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Contract Expiration Date:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="metadata_expdate" ng-model="metadata_expdate" autocomplete="off" placeholder="When is this contract invalid?" >
</div>
</div>
<br />
<h4>The Merchant</h4>
<!-- MERCHANT -->
<!-- Guid -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Merchant GUID:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="merchant_guid" ng-model="merchant_guid" autocomplete="off" placeholder="Should be lots of numbers" >
</div>
</div>
<!-- Handle -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Merchant Handle:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="merchant_handle" ng-model="merchant_handle" autocomplete="off" placeholder="(e.g. drwasho)" >
</div>
</div>
<!-- Legal Address -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Legal Address:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="merchant_legaladdress" ng-model="merchant_legaladdress" autocomplete="off" placeholder="For CommonAccord escrow contracts only" >
</div>
</div>
<!-- PGP Public Key -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">PGP Pubkey:</label>
</div>
<div class="col-lg-9">
<textarea type="text" class="form-control " id="merchant_pgp_pubkey" ng-model="merchant_pgp_pubkey" autocomplete="off" placeholder="Enter PGP public key" rows="4"></textarea>
</div>
</div>
<!-- Bitcoin Public Key -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Bitcoin Pubkey:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="merchant_secp256k1_pubkey" ng-model="merchant_secp256k1_pubkey" autocomplete="off" placeholder="Uncompressed pubkey; will create multisig escrow" >
</div>
</div>
<br />
<!-- #### MERCHANT Digital Signatures #### -->
<h4>Digital Signatures</h4>
<label class="control-label">Merchant Digital Signature</label>
<p></p>
<!-- This is what you're supposed to digitally sign -->
<span class="help-block">Digitally sign what appears below with your PGP key!</span>
<p></p>
<textarea class="wordwrap form-control" id="merchanthash" rows="6" disabled="">{{newcontract.stage01_merchant.genesis}}</textarea>
<br />
<!-- Enter Digital Signature -->
<span class="help-block">By entering your digital signature, you are declaring your intention to <b>sell</b> the item in this contract!</span>
<textarea class="form-control" id="merchant_digisig" ng-model="merchant_sig" autocomplete="off" placeholder="Enter digital signature" rows="6"></textarea>
<br />
<div class="row">
<div class="col-lg-6">
<span class="help-block">Merchant's Public Key</span>
<pre class="wordwrap" id="stage01_pubkey" style="font-size: 10px">{{newcontract.stage01_merchant.genesis.merchant.pubkeys.pgp}}</pre>
</div>
<div class="col-lg-6">
<span class="help-block">Merchant's Digital Signature</span>
<pre class="wordwrap" id="stage01_merchantsig" style="font-size: 10px">{{newcontract.stage01_merchant.signatures.pgp}}</pre>
</div>
</div>
<p></p>
<div>
<p></p>
<button type="button" ng-click="stage01_verify()" class="btn btn-primary" >Verify</button>
<input type="button" ng-click="save_stage01()" class="btn btn-success" value="Save">
<p></p>
<div id="container"></div>
<br />
<!-- TEMP: Check of success or failure -->
<h4>{{check}}</h4>
</div>
</fieldset> <!-- End of Fieldset -->
</form> <!-- End of Form -->
</div> <!-- End of Well Component -->
</div> <!-- End of Row -->
<!-- VIEW1: Contract Viewer -->
<div ng-show="view1">
<div class="row">
<div class="well bs-component col-lg-12" style="background-color:white;">
<div class="col-lg-12">
<div class="row">
<h1>{{newcontract.stage01_merchant.genesis.item_data.title}}<span style="float: right"><span><button class="btn btn-success btn-lg" style="font-size:22px" ng-click="test = !test"><span ng-show="!test">{{newcontract.stage01_merchant.genesis.item_data.price.btc}} <span class="badge">BTC</span></span><span ng-show="test">{{newcontract.stage01_merchant.genesis.item_data.price.fiat.price}} <span class="badge">{{newcontract.stage01_merchant.genesis.item_data.price.fiat.currency}}</span></span></button></span></span></h1>
<h4>By <span><a data-toggle="modal" href="#stage1_merchantModal" style="color:blueviolet; font-size:24px">{{newcontract.stage01_merchant.genesis.merchant.handle}}</a></span></h4>
<hr>
</div>
</div>
<div class="modal fade" id="stage1_merchantModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h2 class="modal-title" style="color:blueviolet;">{{newcontract.stage01_merchant.genesis.merchant.handle}}</h2>
</div>
<div class="modal-body">
<h3>Merchant ID</h3>
<hr>
<h4>GUID</h4>
<span class="help-block" style="font-size:14px"><i>OpenBazaar</i> node unique identifier</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{newcontract.stage01_merchant.genesis.merchant.guid}}"/>
<br />
<h4>Legal Address</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{newcontract.stage01_merchant.genesis.merchant.legal_address}}" />
<br />
<h3>Public Keys</h3>
<hr>
<h4>PGP Public Key</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<pre class="wordwrap" disabled="" rows="6" style="background-color:white; font-size:12px">{{newcontract.stage01_merchant.genesis.merchant.pubkeys.pgp}}</pre>
<br />
<h4>Bitcoin Public Key</h4>
<span class="help-block" style="font-size:14px">Used for the multisignature escrow address</span>
<pre class="wordwrap" disabled="" rows="2" style="background-color:white;">{{newcontract.stage01_merchant.genesis.merchant.pubkeys.bitcoin_pubkey}}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div style="width: 800px; display: table-cell; text-align: center; vertical-align: middle; background-repeat: no-repeat; border: 1px solid">
<img ng-src="{{clickedimage}}" style="width: 100%"/>
</div>
<p></p>
<img ng-src="{{newcontract.stage01_merchant.genesis.item_data.images.image1.image_link1}}" ng-click="click1()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{newcontract.stage01_merchant.genesis.item_data.images.image2.image_link2}}" ng-click="click2()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{newcontract.stage01_merchant.genesis.item_data.images.image3.image_link3}}" ng-click="click3()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{newcontract.stage01_merchant.genesis.item_data.images.image4.image_link4}}" ng-click="click4()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{newcontract.stage01_merchant.genesis.item_data.images.image5.image_link5}}" ng-click="click5()" style="width: 15%; border: 1px solid; cursor: pointer" />
</div>
<div class="col-lg-6">
<h3>Description: </h3>
<h4>{{newcontract.stage01_merchant.genesis.item_data.description}}</h4>
<br />
</div>
</div><!-- End of row -->
</div> <!-- End of well componenet -->
</div><!-- End of row -->
</div><!-- End of view1 -->
</div> <!-- End of Row -->
<div class="row">
<h2><i>OpenBazaar</i> Raw Contract</h2>
<hr>
<pre id="createcontract" ng-model="createcontract" style="background-color:white;">{{display1}}</pre>
</div>
</div> <!-- End of Peek 1 -->
<!-- # 2. Buy Contract # -->
<div ng-show="peek2">
<!-- Introduction: Buy Contract -->
<div class="row">
<h1 style="font-size:48px"><i>OpenBazaar</i> Contract Tools</h1>
<br />
<h2>How to use</h2>
<hr>
<p>Profound stuff here.</p>
<br />
</div>
<div class="row">
<h2>Buy an <i>OpenBazaar</i> Ricardian Contract</h2>
<hr>
</div>
<!-- START2() -->
<div ng-keyup="start2()">
<!-- Import -->
<div class="row">
<div class="well bs-component col-lg-12">
<form class="form-horizontal">
<fieldset>
<div>
<h3>Import Contract</h3>
<!-- Import contract -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Stage 01 Contract:</label>
</div>
<div class="col-lg-9">
<textarea type="text" id="buycontract" ng-model="buycontract" class="form-control" autocomplete="off" placeholder="Enter in the contract you want to purchase" rows="12"></textarea>
<br />
<span class="help-block" style="font-size:12px">Hash of the contract you're importing</span>
<input type="text" class="form-control wordwrap" value="{{buyercontract.stage02_buyer.buyer.contract_to_buy}}" autocomplete="off" disabled="" />
</div>
</div>
</div>
</fieldset>
</form>
</div><!-- End of well componenet -->
</div><!-- End of row -->
<!-- VIEW2: Contract Viewer -->
<div ng-show="view2">
<div class="row">
<div class="well bs-component col-lg-12" style="background-color:white;">
<div class="col-lg-12">
<div class="row">
<h1>{{buyercontract.stage01_merchant.genesis.item_data.title}}<span style="float: right"><span><button class="btn btn-success btn-lg" style="font-size:22px" ng-click="test = !test"><span ng-show="!test">{{buyercontract.stage01_merchant.genesis.item_data.price.btc}} <span class="badge">BTC</span></span><span ng-show="test">{{buyercontract.stage01_merchant.genesis.item_data.price.fiat.price}} <span class="badge">{{buyercontract.stage01_merchant.genesis.item_data.price.fiat.currency}}</span></span></button></span></span></h1>
<h4>By <span><a data-toggle="modal" href="#stage2_merchantModal" style="color:blueviolet; font-size:24px">{{buyercontract.stage01_merchant.genesis.merchant.handle}}</a></span></h4>
<hr>
</div>
</div>
<div class="modal fade" id="stage2_merchantModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h2 class="modal-title" style="color:blueviolet;">{{buyercontract.stage01_merchant.genesis.merchant.handle}}</h2>
</div>
<div class="modal-body">
<h3>Merchant ID</h3>
<hr>
<h4>GUID</h4>
<span class="help-block" style="font-size:14px"><i>OpenBazaar</i> node unique identifier</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{buyercontract.stage01_merchant.genesis.merchant.guid}}"/>
<br />
<h4>Legal Address</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{buyercontract.stage01_merchant.genesis.merchant.legal_address}}" />
<br />
<h3>Public Keys</h3>
<hr>
<h4>PGP Public Key</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<pre class="wordwrap" disabled="" rows="6" style="background-color:white; font-size:12px">{{buyercontract.stage01_merchant.genesis.merchant.pubkeys.pgp}}</pre>
<br />
<h4>Bitcoin Public Key</h4>
<span class="help-block" style="font-size:14px">Used for the multisignature escrow address</span>
<pre class="wordwrap" disabled="" rows="2" style="background-color:white;">{{buyercontract.stage01_merchant.genesis.merchant.pubkeys.bitcoin_pubkey}}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div style="width: 800px; display: table-cell; text-align: center; vertical-align: middle; background-repeat: no-repeat; border: 1px solid">
<img ng-src="{{clickedimage}}" style="width: 100%"/>
</div>
<p></p>
<img ng-src="{{buyercontract.stage01_merchant.genesis.item_data.images.image1.image_link1}}" ng-click="click1()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{buyercontract.stage01_merchant.genesis.item_data.images.image2.image_link2}}" ng-click="click2()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{buyercontract.stage01_merchant.genesis.item_data.images.image3.image_link3}}" ng-click="click3()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{buyercontract.stage01_merchant.genesis.item_data.images.image4.image_link4}}" ng-click="click4()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{buyercontract.stage01_merchant.genesis.item_data.images.image5.image_link5}}" ng-click="click5()" style="width: 15%; border: 1px solid; cursor: pointer" />
</div>
<div class="col-lg-6">
<h3>Description: </h3>
<h4>{{buyercontract.stage01_merchant.genesis.item_data.description}}</h4>
<br />
</div>
</div>
</div> <!-- End of well componenet -->
</div><!-- End of row -->
</div><!-- End of view2 -->
<!-- Buyer Details -->
<div class="row">
<div class="well bs-component col-lg-12">
<form class="form-horizontal">
<fieldset>
<h3>Stage 02: The Buyer</h3>
<br />
<!-- ## Buyer ## -->
<div>
<h4>Buyer Details</h4>
<!-- GUID -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Buyer GUID:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="buyer_guid" ng-model="buyer_guid" autocomplete="off" placeholder="Should be lots of numbers" >
</div>
</div>
<!-- Handle -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Buyer Handle:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="buyer_handle" ng-model="buyer_handle" autocomplete="off" placeholder="(e.g. drwasho)" >
</div>
</div>
<!-- Legal Address -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Legal Address:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="buyer_legaladdress" ng-model="buyer_legaladdress" autocomplete="off" placeholder="For CommonAccord escrow contracts only" >
</div>
</div>
<!-- PGP Public Key -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">PGP Pubkey:</label>
</div>
<div class="col-lg-9">
<textarea type="text" class="form-control " id="buyer_pgp_pubkey" ng-model="buyer_pgp_pubkey" autocomplete="off" placeholder="Enter PGP public key" rows="4"></textarea>
</div>
</div>
<!-- Bitcoin Public Key -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Bitcoin Pubkey:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="buyer_secp256k1_pubkey" ng-model="buyer_secp256k1_pubkey" autocomplete="off" placeholder="Uncompressed pubkey; will create multisig escrow" >
</div>
</div>
<br />
</div><!-- End of Buyer div -->
<br />
<!-- #### BUYER Digital Signatures #### -->
<h4>Digital Signatures</h4>
<label class="control-label">Buyer Digital Signature</label>
<p></p>
<!-- This is what you're supposed to digitally sign -->
<span class="help-block">Digitally sign what appears below with your PGP key!</span>
<p></p>
<textarea class="wordwrap form-control" id="buyerhash" disabled="" rows="6">{{buyercontract.stage02_buyer.buyer}}</textarea> <!-- Stage 01 Merchant part to either digitally sign, or hash. -->
<br />
<!-- Enter Digital Signature -->
<span class="help-block">By entering your digital signature, you are declaring your intention to <b>buy</b> the item in this contract!</span>
<textarea class="form-control" id="buyer_digisig" ng-model="buyer_sig" autocomplete="off" placeholder="Enter digital signature" rows="6"></textarea>
<br />
<div class="row">
<div class="col-lg-6">
<span class="help-block">Buyer's Public Key</span>
<pre class="wordwrap" id="stage02_pubkey" style="font-size: 10px">{{buyercontract.stage02_buyer.buyer.pubkeys.pgp}}</pre>
</div>
<div class="col-lg-6">
<span class="help-block">Buyer's Digital Signature</span>
<pre class="wordwrap" id="stage02_buyersig" style="font-size: 10px">{{buyercontract.stage02_buyer.signatures.pgp}}</pre>
</div>
</div>
<p></p>
<div>
<p></p>
<button type="button" ng-click="stage02_verify()" class="btn btn-primary" >Verify</button>
<br />
<!-- TEMP: Check of success or failure -->
<h4>{{check2}}</h4>
</div>
</fieldset>
</form>
</div> <!-- End of well component -->
</div><!-- End of row -->
</div><!-- End of start2() -->
<!-- Complete Stage 02 Contract -->
<div class="row">
<h2><i>OpenBazaar</i> Raw Contract</h2>
<hr>
<pre id="createcontract" ng-model="debuyercontract" style="background-color:white;">{{display2}}</pre>
</div>
</div> <!-- End of Peek 2 -->
<!-- # 3. Notarise Contract # -->
<div ng-show="peek3">
<!-- Introduction: Notarise Contract -->
<div class="row">
<h1 style="font-size:48px"><i>OpenBazaar</i> Contract Tools</h1>
<br />
<h2>How to use</h2>
<hr>
<p>Profound stuff here.</p>
<br />
</div><!-- End of Row -->
<div class="row">
<h2>Notarise an <i>OpenBazaar</i> Ricardian Contract</h2>
<hr>
</div>
<!-- START3() -->
<div ng-keyup="start3()">
<div class="row">
<div class="well bs-component col-lg-12">
<form class="form-horizontal">
<fieldset>
<h3>Stage 03: The Notary</h3>
<hr />
<!-- Import -->
<div>
<h4>Reference Contract</h4>
<!-- Import contract -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Stage 03 Contract</label>
</div>
<div class="col-lg-9">
<textarea type="text" id="notarisecontract" ng-model="notarisecontract" class="form-control" autocomplete="off" placeholder="Enter in the contract you want to notarise" rows="12"></textarea>
<br />
<span class="help-block" style="font-size:12px">Hash of the contract you're notarising</span>
<input type="text" class="form-control wordwrap" value="{{notarycontract.stage03_notary.notary.contract_to_notarise}}" autocomplete="off" disabled="" />
</div>
</div>
</div>
<br />
<!-- ## Notary ## -->
<div>
<h4>Notary Details</h4>
<!-- GUID -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Notary GUID:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="notary_guid" ng-model="notary_guid" autocomplete="off" placeholder="Should be lots of numbers" >
</div>
</div>
<!-- Handle -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Notary Handle:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="notary_handle" ng-model="notary_handle" autocomplete="off" placeholder="(e.g. drwasho)" >
</div>
</div>
<!-- Legal Address -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Legal Address:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="notary_legaladdress" ng-model="notary_legaladdress" autocomplete="off" placeholder="For CommonAccord escrow contracts only" >
</div>
</div>
<!-- PGP Public Key -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">PGP Pubkey:</label>
</div>
<div class="col-lg-9">
<textarea type="text" class="form-control " id="notary_pgp_pubkey" ng-model="notary_pgp_pubkey" autocomplete="off" placeholder="Enter PGP public key" rows="4"></textarea>
</div>
</div>
<!-- Bitcoin Public Key -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Bitcoin Pubkey:</label>
</div>
<div class="col-lg-9">
<input type="text" class="form-control " id="notary_secp256k1_pubkey" ng-model="notary_secp256k1_pubkey" autocomplete="off" placeholder="Uncompressed pubkey; will create multisig escrow" >
</div>
</div>
<br />
</div> <!-- End of Buyer Details Div -->
<!-- Escrow -->
<div>
<h4>Multisignature Escrow Address</h4>
<!-- Multisig address -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Multisignature Address:</label>
</div>
<div class="col-lg-9">
<input type="text" id="multisigaddr" ng-model="multisigaddr" class="form-control" autocomplete="off" placeholder="Enter the multisignature address" />
</div>
</div>
<!-- Multisig redemption script -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label">Multisignature Redemption Script:</label>
</div>
<div class="col-lg-9">
<textarea type="text" id="multisigredeem" ng-model="multisigredeem" class="form-control" autocomplete="off" placeholder="Enter the multisignature address" rows="6"></textarea>
</div>
</div>
</div> <!-- End of Escrow Details Div -->
<br />
<!-- #### Notary Digital Signatures #### -->
<h4>Digital Signatures</h4>
<div>
<label class="control-label">Notary Digital Signature</label>
<p></p>
<!-- This is what you're supposed to digitally sign -->
<span class="help-block">Digitally sign what appears below with your PGP key!</span>
<p></p>
<pre class="wordwrap" id="notaryhash">{{notarycontract.stage03_notary.notary}}</pre> <!-- Stage 02 Buyer part to either digitally sign, or hash. -->
<br />
<!-- This is the hash of Stage 02 Buyer Part -->
<p><span class="help-block">SHA256 hash of "Stage 02: buyer Part" (i.e. this is a tamper-proof statement of what you want to <b>notarise</b>)</span></p>
<input class="form-control" type="text" value="{{stage03hash}}" disabled="">
<br />
<!-- Enter Digital Signature -->
<span class="help-block">By entering your digital signature, you are declaring your intention to <b>notarise</b> this contract!</span>
<textarea class="form-control" id="notary_digisig" ng-model="notary_sig" autocomplete="off" placeholder="Enter digital signature" rows="6"></textarea>
<br />
<!-- Show public keys -->
<div class="row">
<div class="col-lg-6">
<span class="help-block">Notary's Public Key</span>
<pre class="wordwrap" id="stage03_pubkey" style="font-size: 10px">{{notarycontract.stage03_notary.notary.pubkeys.pgp}}</pre>
</div>
<div class="col-lg-6">
<span class="help-block">Buyer's Digital Signature</span>
<pre class="wordwrap" id="stage03_notarysig" style="font-size: 10px">{{notarycontract.stage03_notary.signatures.pgp}}</pre>
</div>
</div>
<p></p>
</div>
<div>
<p></p>
<button type="button" ng-click="stage03_verify()" class="btn btn-primary" >Verify</button>
<br />
<!-- TEMP: Check of success or failure -->
<h4>{{check3}}</h4>
</div>
</fieldset>
</form>
</div><!-- End of well componenet -->
</div> <!-- End of Row -->
<!-- VIEW3: Contract Viewer -->
<div ng-show="view3">
<div class="row">
<div class="well bs-component col-lg-12" style="background-color:white;">
<div class="col-lg-12">
<div class="row">
<h1>{{notarycontract.stage01_merchant.genesis.item_data.title}}<span style="float: right"><span><button class="btn btn-success btn-lg" style="font-size:22px" ng-click="test = !test"><span ng-show="!test">{{notarycontract.stage01_merchant.genesis.item_data.price.btc}} <span class="badge">BTC</span></span><span ng-show="test">{{notarycontract.stage01_merchant.genesis.item_data.price.fiat.price}} <span class="badge">{{notarycontract.stage01_merchant.genesis.item_data.price.fiat.currency}}</span></span></button></span></span></h1>
<h4>By <span><a data-toggle="modal" href="#stage3_merchantModal" style="color:blueviolet; font-size:24px">{{notarycontract.stage01_merchant.genesis.merchant.handle}}</a></span></h4>
<hr>
</div>
</div>
<!-- MERCHANT MODAL -->
<div class="modal fade" id="stage3_merchantModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h2 class="modal-title" style="color:blueviolet;">{{notarycontract.stage01_merchant.genesis.merchant.handle}}</h2>
</div>
<div class="modal-body">
<h3>Merchant ID</h3>
<hr>
<h4>GUID</h4>
<span class="help-block" style="font-size:14px"><i>OpenBazaar</i> node unique identifier</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{notarycontract.stage01_merchant.genesis.merchant.guid}}"/>
<br />
<h4>Legal Address</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{notarycontract.stage01_merchant.genesis.merchant.legal_address}}" />
<br />
<h3>Public Keys</h3>
<hr>
<h4>PGP Public Key</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<pre class="wordwrap" disabled="" rows="6" style="background-color:white; font-size:12px">{{notarycontract.stage01_merchant.genesis.merchant.pubkeys.pgp}}</pre>
<br />
<h4>Bitcoin Public Key</h4>
<span class="help-block" style="font-size:14px">Used for the multisignature escrow address</span>
<pre class="wordwrap" disabled="" rows="2" style="background-color:white;">{{notarycontract.stage01_merchant.genesis.merchant.pubkeys.bitcoin_pubkey}}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div><!-- End of MERCHANT MODAL -->
<!-- Contract details -->
<div class="row">
<div class="col-lg-6">
<div style="width: 800px; display: table-cell; text-align: center; vertical-align: middle; background-repeat: no-repeat; border: 1px solid">
<img ng-src="{{clickedimage}}" style="width: 100%"/>
</div>
<p></p>
<img ng-src="{{notarycontract.stage01_merchant.genesis.item_data.images.image1.image_link1}}" ng-click="click1()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{notarycontract.stage01_merchant.genesis.item_data.images.image2.image_link2}}" ng-click="click2()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{notarycontract.stage01_merchant.genesis.item_data.images.image3.image_link3}}" ng-click="click3()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{notarycontract.stage01_merchant.genesis.item_data.images.image4.image_link4}}" ng-click="click4()" style="width: 15%; border: 1px solid; cursor: pointer" />
<img ng-src="{{notarycontract.stage01_merchant.genesis.item_data.images.image5.image_link5}}" ng-click="click5()" style="width: 15%; border: 1px solid; cursor: pointer" />
</div>
<div class="col-lg-6">
<h3>Description: </h3>
<h4>{{notarycontract.stage01_merchant.genesis.item_data.description}}</h4>
<br />
<h3>Purchased: </h3>
<h4>By <span><a data-toggle="modal" href="#stage3_buyerModal" style="color:green; font-size:24px">{{notarycontract.stage02_buyer.buyer.handle}}</a></span></h4>
<!-- BUYER MODAL -->
<div class="modal fade" id="stage3_buyerModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h2 class="modal-title" style="color:green;">{{notarycontract.stage02_buyer.buyer.handle}}</h2>
</div>
<div class="modal-body">
<h3>Buyer ID</h3>
<hr>
<h4>GUID</h4>
<span class="help-block" style="font-size:14px"><i>OpenBazaar</i> node unique identifier</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{notarycontract.stage02_buyer.buyer.guid}}"/>
<br />
<h4>Legal Address</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<input type="text" class="form-control wordwrap" disabled="" style="background-color:white;" value="{{notarycontract.stage02_buyer.buyer.legal_address}}" />
<br />
<h3>Public Keys</h3>
<hr>
<h4>PGP Public Key</h4>
<span class="help-block" style="font-size:14px">For <i>CommonAccord</i> legally enforceable contracts</span>
<pre class="wordwrap" disabled="" rows="6" style="background-color:white; font-size:12px">{{notarycontract.stage02_buyer.buyer.pubkeys.pgp}}</pre>
<br />
<h4>Bitcoin Public Key</h4>
<span class="help-block" style="font-size:14px">Used for the multisignature escrow address</span>
<pre class="wordwrap" disabled="" rows="2" style="background-color:white;">{{notarycontract.stage02_buyer.buyer.pubkeys.secp256k1_uncompressed}}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div><!-- End of BUYER MODAL -->
</div>
</div><!-- End of Contract Details -->
</div> <!-- End of well componenet -->
</div><!-- End of row -->
</div><!-- End of view3 -->
</div> <!-- End of Start3() -->
<div class="row">
<h2><i>OpenBazaar</i> Raw Contract</h2>
<hr>
<pre id="createcontract" ng-model="debuyercontract" style="background-color:white;">{{display3}}</pre>
</div>
</div> <!-- End of Peek 3 -->
<!-- # 4. Fund Escrow Contract # -->
<div ng-show="peek4">
<!-- Introduction: Fund Escrow Contract -->
<div class="row">
<h1 style="font-size:48px"><i>OpenBazaar</i> Contract Tools</h1>
<br />
<h2>How to use</h2>
<hr>
<p>Profound stuff here.</p>
<br />
</div>
<div class="row">
<h2>Fund a Multisignature Escrow Address</h2>
<hr>
</div>
<!-- START4() -->
<div ng-keyup="start4()">
<div class="row">
<div class="well bs-component col-lg-12">
<form class="form-horizontal">
<fieldset>
<h3>Stage 04: Buyer Funds Escrow</h3>
<hr />
<!-- Escrow Funding Evidence -->
<div>
<h4>Reference Contract</h4>
<!-- Import contract -->
<div class="form-group">
<div class="col-lg-3">
<label class="control-label"><b>Stage 03 Contract:</b></label>
</div>
<div class="col-lg-9">
<textarea type="text" id="triplesignedcontract" ng-model="triplesignedcontract" class="form-control" autocomplete="off" placeholder="Paste in the OpenBazaar contract" rows="12"></textarea>
<br />
<span class="help-block" style="font-size:12px">Hash of the contract that you are funding escrow for</span>