-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathblockchain.html
1049 lines (681 loc) · 29.7 KB
/
blockchain.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blockchain! Blockchain! Blockchain! - Build Your Own Blockchains in JavaScript from Zero (Scratch)</title>
<meta name="generator" content="Slide Show (S9) v4.0.1 on Ruby 2.3.3 (2016-11-21) [i386-mingw32]">
<meta name="author" content="Your Name Here" >
<!-- S6 style sheet links -->
<link rel="stylesheet" href="s62/screen.css">
<link rel="stylesheet" href="blockchain.css">
</head>
<body>
<article id="presentation">
<section class="slide " id="1">
<!-- _S9SLIDE_ -->
<h1 id="alchemy---how-to-mine-digital-schilling-how-to-turn-digital-bits-into--or-">Alchemy - How-To Mine Digital Schilling? How-To Turn Digital Bits Into $$$ or €€€?</h1>
<p><strong>Transactions (Hyper) Ledger Book</strong></p>
<table>
<thead>
<tr>
<th>From</th>
<th>To</th>
<th style="text-align: right">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>Grossklockner (†)</td>
<td>Sepp</td>
<td style="text-align: right">3798</td>
</tr>
<tr>
<td>Grossvenediger (†)</td>
<td>Franz</td>
<td style="text-align: right">3666</td>
</tr>
<tr>
<td>Dachstein (†)</td>
<td>Sissi</td>
<td style="text-align: right">2995</td>
</tr>
<tr>
<td>Wildspitze (†)</td>
<td>Maria</td>
<td style="text-align: right">3768</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td style="text-align: right"> </td>
</tr>
<tr>
<td>Sissi</td>
<td>Eva</td>
<td style="text-align: right">20</td>
</tr>
<tr>
<td>Sepp</td>
<td>Maria</td>
<td style="text-align: right">17</td>
</tr>
<tr>
<td>Franz</td>
<td>Sissi</td>
<td style="text-align: right">3</td>
</tr>
<tr>
<td>Sepp</td>
<td>Ferdl</td>
<td style="text-align: right">100</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td style="text-align: right"> </td>
</tr>
<tr>
<td>Franz</td>
<td>Max</td>
<td style="text-align: right">17</td>
</tr>
<tr>
<td>Maria</td>
<td>Adam</td>
<td style="text-align: right">4</td>
</tr>
</tbody>
</table>
<p>(†): Miner Transaction - New Schilling on the Market!</p>
<p>(Source: <a href="https://github.com/openblockchains/schilling">openblockchains/schilling</a>)</p>
</section>
<section class="slide " id="2">
<!-- _S9SLIDE_ -->
<h1 id="blockchain-blockchain-blockchain-decentralize-payments-decentralize-transactions-decentralize-blockchains">Blockchain! Blockchain! Blockchain! Decentralize Payments. Decentralize Transactions. Decentralize Blockchains.</h1>
<p>What’s Blockchain?</p>
<ul>
<li>Distributed Database?</li>
<li>Hyper Ledger Book?</li>
<li>Consensus with Proof-of-Work or Proof-of-Stake?</li>
<li>Digital Fingerprints? Cryptographic Hashes?</li>
<li>Lottery? Central Bank?</li>
<li>Byzantine-Generals Solution?</li>
</ul>
<p>Yes. Yes. Yes. Blockchain! Blockchain! Blockchain!</p>
<p>(Source: <a href="https://github.com/openblockchains/whatsblockchain">openblockchains/whatsblockchain</a>)</p>
</section>
<section class="slide " id="3">
<!-- _S9SLIDE_ -->
<h1 id="the-proof-of-the-pudding-is---the-bitcoin-btc-blockchains">The Proof of the Pudding is … The Bitcoin (BTC) Blockchain(s)</h1>
<p>A Success Story on the Blockchain.</p>
<p>May 22, 2010 - World’s 1st Bitcoin Payment</p>
<p>A developer bought two pizzas using 10 000 Bitcoin (BTC) - a then-little-known digital (crypto)currency.
Estimated worth about $40.</p>
<p>Triva Q: How much is one Bitcoin worth today? Q: How much are 10 000 Bitcoin worth today?</p>
</section>
<section class="slide " id="4">
<!-- _S9SLIDE_ -->
<h1 id="20-million-dollar-pizza-day---celebrating-the-birth-of-bitcoin-alchemy---">$20 Million Dollar Pizza Day - Celebrating the Birth of Bitcoin Alchemy - $$$</h1>
<p><img src="i/bitcoinmarket.png" alt="" /></p>
<p>(Source: <a href="https://coinmarketcap.com/currencies/bitcoin">coinmarketcap.com/currencies/bitcoin</a>)</p>
</section>
<section class="slide " id="5">
<!-- _S9SLIDE_ -->
<h1 id="lets-build-your-own-blockchain-in-javascript-from-zero--scratch">Let’s Build Your Own Blockchain in JavaScript (From Zero / Scratch)</h1>
<p>Crypto God? JavaScript Ninja / Rockstar?</p>
<p>Yes, you can.</p>
<p><img src="i/fake-dilbert-blockchain.png" alt="" /></p>
</section>
<section class="slide " id="6">
<!-- _S9SLIDE_ -->
<h1 id="code-code-code---a-blockchain-in-javascript-in-20-lines-a-blockchain-is-a-data-structure">Code, Code, Code - A Blockchain in JavaScript in 20 Lines! A Blockchain is a Data Structure</h1>
<p>What’s Blockchain?</p>
<p>It’s a list (chain) of blocks linked and secured by digital fingerprints (also known as
crypto hashes).</p>
<pre><code>const SHA256 = require( "js-sha256" ) // for hash checksum digest function SHA256
class Block {
constructor(index, data, previousHash) {
this.index = index
this.timestamp = new Date()
this.data = data
this.previousHash = previousHash
this.hash = this.calcHash()
}
calcHash() {
var sha = SHA256.create()
sha.update( this.index.toString() +
this.timestamp.toString() +
this.data +
this.previousHash )
return sha.hex()
}
</code></pre>
<p>(Source: <a href="https://github.com/openblockchains/awesome-blockchains/blob/master/blockchain.js/blockchain.js">openblockchains/awesome-blockchains/blockchain.js</a>)</p>
<p>Yes, that’s it.</p>
</section>
<section class="slide " id="7">
<!-- _S9SLIDE_ -->
<h1 id="code-code-code---a-blockchain-in-javascript-in-20-lines-a-blockchain-is-a-data-structure-cont">Code, Code, Code - A Blockchain in JavaScript in 20 Lines! A Blockchain is a Data Structure (Cont.)</h1>
<p>Let’s add two helpers (<code>first</code>, <code>next</code>) for building (“mining”) blocks.</p>
<pre><code>class Block {
...
static first( data="Genesis" ) { // create genesis (big bang! first) block
// uses index zero (0) and arbitrary previousHash ("0")
return new Block( 0, data, "0" )
}
static next( previous, data="Transaction Data..." ) {
return new Block( previous.index+1, data, previous.hash )
}
}
</code></pre>
<p>(Source: <a href="https://github.com/openblockchains/awesome-blockchains/blob/master/blockchain.js/blockchain.js">openblockchains/awesome-blockchains/blockchain.js</a>)</p>
<p>Let’s get started - build a blockchain a block at a time!</p>
<pre><code>b0 = Block.first( "Genesis" )
b1 = Block.next( b0, "Transaction Data..." )
b2 = Block.next( b1, "Transaction Data......" )
b3 = Block.next( b2, "More Transaction Data..." )
blockchain = [b0, b1, b2, b3]
console.log( blockchain )
</code></pre>
</section>
<section class="slide " id="8">
<!-- _S9SLIDE_ -->
<h1 id="code-code-code---a-blockchain-in-javascript-in-20-lines-a-blockchain-is-a-data-structure-cont-1">Code, Code, Code - A Blockchain in JavaScript in 20 Lines! A Blockchain is a Data Structure (Cont.)</h1>
<blockquote>
<p>Wait, so a blockchain is just a linked list?</p>
<p>No. A linked list is only required to have a reference to the previous element,
a block must have an identifier depending on the previous block’s identifier,
meaning that you cannot replace a block without recomputing every single block that comes after.
In this implementation that happens as the previous digest is input in the calc_hash method.</p>
</blockquote>
<p>will log something like:</p>
<pre><code>[ Block {
index: 0,
timestamp: 2017-09-18T08:25:54,
data: 'Genesis',
previousHash: '0',
hash: 'c396de4c03ddb5275661982adc75ce5fc5905d2a2457d1266c74436c1f3c50f1' },
Block {
index: 1,
timestamp: 2017-09-18T08:25:54,
data: 'Transaction Data...',
previousHash: 'c396de4c03ddb5275661982adc75ce5fc5905d2a2457d1266c74436c1f3c50f1',
hash: '493131e09c069645c82795c96e4715cea0f5558be514b5096d853a5b9899154a' },
Block {
index: 2,
timestamp: 2017-09-18T08:25:54,
data: 'Transaction Data......',
previousHash: '493131e09c069645c82795c96e4715cea0f5558be514b5096d853a5b9899154a',
hash: '97aa3cb5052615d60ff8e6b41bef606562588c4874f011970ac2f218e2f0f4a8' },
Block {
index: 3,
timestamp: 2017-09-18T08:25:54,
data: 'More Transaction Data...',
previousHash: '97aa3cb5052615d60ff8e6b41bef606562588c4874f011970ac2f218e2f0f4a8',
hash: 'e10e020f832e46c2b60e1c3c0412bd370b2fde5f0f782c16eb87d0313ea0d3a3' } ]
</code></pre>
</section>
<section class="slide " id="9">
<!-- _S9SLIDE_ -->
<h1 id="what-about-proof-of-work-what-about-consensus">What about Proof-of-Work? What about Consensus?</h1>
<p>Making (Hash) Mining a Lottery - Find the Lucky Number</p>
<pre><code>calcHash() {
var sha = SHA256.create()
sha.update( this.index.toString() +
this.timestamp.toString() +
this.data +
this.previousHash )
return sha.hex()
}
</code></pre>
<p>The computer (node) in the blockchain network that computes the
next block with a valid hash wins the lottery?</p>
<p>For adding a block to the chain you get a reward! You get 25 Bitcoin! (†)</p>
<p>Bitcoin adds a block every ten minutes.</p>
<p>(†) The reward gets halfed. In Sep’17 you’ll get 12.5 Bitcoin.</p>
</section>
<section class="slide " id="10">
<!-- _S9SLIDE_ -->
<h1 id="what-about-proof-of-work-what-about-consensus-cont">What about Proof-of-Work? What about Consensus? (Cont.)</h1>
<p>Random SHA256 hash #1: <code>c396de4c03ddb5275661982adc75ce5fc5905d2a2457d1266c74436c1f3c50f1</code></p>
<p>Random SHA256 hash #2: <code>493131e09c069645c82795c96e4715cea0f5558be514b5096d853a5b9899154a</code></p>
<p>Triva Q: What’s SHA256?</p>
<ul>
<li>(A) Still Hacking Anyway</li>
<li>(B) Secure Hash Algorithm</li>
<li>(C) Sweet Home Austria</li>
<li>(D) Super High Aperture</li>
</ul>
</section>
<section class="slide " id="11">
<!-- _S9SLIDE_ -->
<h1 id="what-about-proof-of-work-what-about-consensus-cont-1">What about Proof-of-Work? What about Consensus? (Cont.)</h1>
<p>A: SHA256 == Secure Hash Algorithms 256 Bits</p>
<p>Trivia: Designed by the National Security Agency (NSA) of the United States of America (USA).</p>
<p>Secure == Random e.g. Change one Letter and the Hash will Change Completely</p>
<p>Making (Hash) Mining a Lottery - Find the Lucky Number</p>
<p>Find a hash that starts with ten leading zeros e.g.</p>
<p><code>0000000000069645c82795c96e4715cea0f5558be514b5096d853a5b9899154a</code></p>
<p>Hard to compute! Easy to check / validate.</p>
</section>
<section class="slide " id="12">
<!-- _S9SLIDE_ -->
<h1 id="what-about-proof-of-work-what-about-consensus-cont-2">What about Proof-of-Work? What about Consensus? (Cont.)</h1>
<p>Making (Hash) Mining a Lottery - Find the Lucky Number (Nonce)</p>
<pre><code>computeHashWithProofOfWork( difficulty="00" ) {
var nonce = 0
while( true ) {
var hash = this.calcHashWithNonce( nonce )
if( hash.startsWith( difficulty ))
return nonce, hash // bingo! proof of work if hash starts with leading zeros (00)
else
nonce += 1 // keep trying (and trying and trying)
}
}
calcHashWithNonce( nonce=0 ) {
var sha = SHA256.create()
sha.update( nonce.toString() +
this.index.toString() +
this.timestamp.toString() +
this.data +
this.previousHash )
return sha.hex()
}
</code></pre>
<p>(Source: <a href="https://github.com/openblockchains/awesome-blockchains/blob/master/blockchain.js/blockchain_with_proof_of_work.js">awesome-blockchains/blockchain_with_proof_of_work.js</a>)</p>
</section>
<section class="slide " id="13">
<!-- _S9SLIDE_ -->
<h1 id="the-worlds-worst-database---bitcoin-blockchain-mining">The World’s Worst Database - Bitcoin Blockchain Mining</h1>
<ul>
<li>Uses approximately the same amount of electricity as could power an average American household
for a day per transaction</li>
<li>Supports 3 transactions / second across a global network with millions of CPUs/purpose-built ASICs</li>
<li>Takes over 10 minutes to “commit” a transaction</li>
<li>Doesn’t acknowledge accepted writes: requires you read your writes,
but at any given time you may be on a blockchain fork, meaning your write might not actually
make it into the “winning” fork of the blockchain (and no, just making it into the mempool doesn’t count).
In other words: “blockchain technology” cannot by definition tell you if a given write is ever
accepted/committed except by reading it out of the blockchain itself (and even then)</li>
<li>Can only be used as a transaction ledger denominated in a single currency,
or to store/timestamp a maximum of 80 bytes per transaction</li>
</ul>
<p>(Source: <a href="https://tonyarcieri.com/on-the-dangers-of-a-blockchain-monoculture">Tony Arcieri - On the dangers of a blockchain monoculture</a>)</p>
</section>
<section class="slide " id="14">
<!-- _S9SLIDE_ -->
<h1 id="tulip-mania-quiz---win-100-schilling-on-the-blockchain">Tulip Mania Quiz - Win 100 Schilling on the Blockchain!</h1>
<p>Q: Tulip Mania Bubble in Holland - What Year?</p>
<ul>
<li>(A) 1561</li>
<li>(B) 1637</li>
<li>(C) 1753</li>
<li>(D) 1817</li>
</ul>
<p>Q: What’s the Name of the Most Expensive Tulip?</p>
<ul>
<li>(A) Admiral van Eijck</li>
<li>(B) Admiral of Admirals</li>
<li>(C) Semper Augustus</li>
<li>(C) Semper Cesarus</li>
</ul>
</section>
<section class="slide " id="15">
<!-- _S9SLIDE_ -->
<h1 id="tulips-on-the-blockchain-adding-transactions">Tulips on the Blockchain! Adding Transactions</h1>
<p>Learn by Example from the Real World (Anno 1637) - Buy! Sell! Hold! Enjoy the Beauty of Admiral of Admirals, Semper Augustus and More.</p>
<p><strong>Transactions (Hyper) Ledger Book</strong></p>
<table>
<thead>
<tr>
<th>From</th>
<th>To</th>
<th>What</th>
<th style="text-align: right">Qty</th>
</tr>
</thead>
<tbody>
<tr>
<td>Dutchgrown (†)</td>
<td>Vincent</td>
<td>Tulip Bloemendaal Sunset</td>
<td style="text-align: right">10</td>
</tr>
<tr>
<td>Keukenhof (†)</td>
<td>Anne</td>
<td>Tulip Semper Augustus</td>
<td style="text-align: right">7</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td style="text-align: right"> </td>
</tr>
<tr>
<td>Flowers (†)</td>
<td>Ruben</td>
<td>Tulip Admiral van Eijck</td>
<td style="text-align: right">5</td>
</tr>
<tr>
<td>Vicent</td>
<td>Anne</td>
<td>Tulip Bloemendaal Sunset</td>
<td style="text-align: right">3</td>
</tr>
<tr>
<td>Anne</td>
<td>Julia</td>
<td>Tulip Semper Augustus</td>
<td style="text-align: right">1</td>
</tr>
<tr>
<td>Julia</td>
<td>Luuk</td>
<td>Tulip Semper Augustus</td>
<td style="text-align: right">1</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td style="text-align: right"> </td>
</tr>
<tr>
<td>Bloom & Blossom (†)</td>
<td>Daisy</td>
<td>Tulip Admiral of Admirals</td>
<td style="text-align: right">8</td>
</tr>
<tr>
<td>Vincent</td>
<td>Max</td>
<td>Tulip Bloemendaal Sunset</td>
<td style="text-align: right">2</td>
</tr>
<tr>
<td>Anne</td>
<td>Martijn</td>
<td>Tulip Semper Augustus</td>
<td style="text-align: right">2</td>
</tr>
<tr>
<td>Ruben</td>
<td>Julia</td>
<td>Tulip Admiral van Eijck</td>
<td style="text-align: right">2</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td style="text-align: right"> </td>
</tr>
<tr>
<td>Teleflora (†)</td>
<td>Max</td>
<td>Tulip Red Impression</td>
<td style="text-align: right">11</td>
</tr>
<tr>
<td>Anne</td>
<td>Naomi</td>
<td>Tulip Bloemendaal Sunset</td>
<td style="text-align: right">1</td>
</tr>
<tr>
<td>Daisy</td>
<td>Vincent</td>
<td>Tulip Admiral of Admirals</td>
<td style="text-align: right">3</td>
</tr>
<tr>
<td>Julia</td>
<td>Mina</td>
<td>Tulip Admiral van Eijck</td>
<td style="text-align: right">1</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td style="text-align: right"> </td>
</tr>
<tr>
<td>Max</td>
<td>Isabel</td>
<td>Tulip Red Impression</td>
<td style="text-align: right">2</td>
</tr>
</tbody>
</table>
<p>(†): Grower Transaction - New Tulips on the Market!</p>
<p>(Source: <a href="https://github.com/openblockchains/tulips">openblockchains/tulips</a>)</p>
</section>
<section class="slide " id="16">
<!-- _S9SLIDE_ -->
<h1 id="tulips-on-the-blockchain-adding-transactions-cont">Tulips on the Blockchain! Adding Transactions (Cont.)</h1>
<p><strong>Quotes - Blockchains are the next Internets / Tulips</strong></p>
<blockquote>
<p>People who compare digital tokens to tulips are essentially saying digital tokens are a bubble backed
by nothing but pure hype and speculation.</p>
<p>What they fail to understand is that tulips come from dirt, not a blockchain.</p>
<p>And as we all know, blockchain is possibly the best technological innovation since the internet.
It will have a tremendous impact on global business and society in general.
– <a href="http://tuliptoken.com">TulipToken</a></p>
</blockquote>
</section>
<section class="slide " id="17">
<!-- _S9SLIDE_ -->
<h1 id="tulips-on-the-blockchain-adding-transactions-cont-1">Tulips on the Blockchain! Adding Transactions (Cont.)</h1>
<pre><code>let b0 = Block.first(
{ from: "Dutchgrown", to: "Vincent", what: "Tulip Bloemendaal Sunset", qty: 10 },
{ from: "Keukenhof", to: "Anne", what: "Tulip Semper Augustus", qty: 7 } )
let b1 = Block.next( b0,
{ from: "Flowers", to: "Ruben", what: "Tulip Admiral van Eijck", qty: 5 },
{ from: "Vicent", to: "Anne", what: "Tulip Bloemendaal Sunset", qty: 3 },
{ from: "Anne", to: "Julia", what: "Tulip Semper Augustus", qty: 1 },
{ from: "Julia", to: "Luuk", what: "Tulip Semper Augustus", qty: 1 } )
let b2 = Block.next( b1,
{ from: "Bloom & Blossom", to: "Daisy", what: "Tulip Admiral of Admirals", qty: 8 },
{ from: "Vincent", to: "Max", what: "Tulip Bloemendaal Sunset", qty: 2 },
{ from: "Anne", to: "Martijn", what: "Tulip Semper Augustus", qty: 2 },
{ from: "Ruben", to: "Julia", what: "Tulip Admiral van Eijck", qty: 2 } )
...
</code></pre>
</section>
<section class="slide " id="18">
<!-- _S9SLIDE_ -->
<h1 id="tulips-on-the-blockchain-adding-transactions-cont-2">Tulips on the Blockchain! Adding Transactions (Cont.)</h1>
<p>resulting in:</p>
<pre><code>[ Block {
index: 0,
timestamp: 1637-09-25 17:39:21,
data:
[ { from: 'Dutchgrown', to: 'Vincent', what: 'Tulip Bloemendaal Sunset', qty: 10 },
{ from: 'Keukenhof', to: 'Anne', what: 'Tulip Semper Augustus', qty: 7 } ],
previousHash: '0',
hash: '7cb2df9eee29ca77c99eb4591a25dcbdfa9609aff2bd3558d1a0fe22acd08a51' },
Block {
index: 1,
timestamp: 1637-09-25 17:49:21,
data:
[ { from: 'Flowers', to: 'Ruben', what: 'Tulip Admiral van Eijck', qty: 5 },
{ from: 'Vicent', to: 'Anne', what: 'Tulip Bloemendaal Sunset', qty: 3 },
{ from: 'Anne', to: 'Julia', what: 'Tulip Semper Augustus', qty: 1 },
{ from: 'Julia', to: 'Luuk', what: 'Tulip Semper Augustus', qty: 1 } ],
previousHash: '7cb2df9eee29ca77c99eb4591a25dcbdfa9609aff2bd3558d1a0fe22acd08a51',
hash: 'a7464e98290039f467e7abf6699180205f5151e76b57a79b39f43acc39d75660' },
Block {
index: 2,
timestamp: 1637-09-25 17:59:21,
data:
[ { from: 'Bloom & Blossom', to: 'Daisy', what: 'Tulip Admiral of Admirals', qty: 8 },
{ from: 'Vincent', to: 'Max', what: 'Tulip Bloemendaal Sunset', qty: 2 },
{ from: 'Anne', to: 'Martijn', what: 'Tulip Semper Augustus', qty: 2 },
{ from: 'Ruben', to: 'Julia', what: 'Tulip Admiral van Eijck', qty: 2 } ],
previousHash: 'a7464e98290039f467e7abf6699180205f5151e76b57a79b39f43acc39d75660',
hash: 'b7e4952f801651c1e14d61d77b869d18268b46c468923089f1da33e3959b56b9' },
...
]
</code></pre>
</section>
<section class="slide " id="19">
<!-- _S9SLIDE_ -->
<h1 id="whats-blockchain-lite---javascript-edition">What’s Blockchain Lite - JavaScript Edition?</h1>
<p>blockchain-lite library / module (npm: <a href="https://www.npmjs.com/package/blockchain-lite"><code>blockchain-lite</code></a>) -
build your own blockchain with crypto hashes -
revolutionize the world with blockchains, blockchains, blockchains one block at a time</p>
<p><strong>Usage</strong></p>
<p>Let’s get started. Build your own blockchain one block at a time.
Example:</p>
<pre><code class="language-js">const Blocks = require( "blockchain-lite" )
// use basic block
let Block = Blocks.basic
let b0 = Block.first( 'Genesis' )
let b1 = Block.next( b0, 'Transaction Data...' )
let b2 = Block.next( b1, 'Transaction Data......' )
let b3 = Block.next( b2, 'More Transaction Data...' )
let blockchain = [b0, b1, b2, b3]
console.log( blockchain )
</code></pre>
</section>
<section class="slide " id="20">
<!-- _S9SLIDE_ -->
<h1 id="case-study----dutch-gulden-on-the-blockchain">Case Study - Dutch Gulden on the Blockchain!</h1>
<p><img src="i/guldenmarket.png" alt="" /></p>
<p>(Source: <a href="https://coinmarketcap.com/currencies/gulden">coinmarketcap.com/currencies/gulden</a>)</p>
</section>
<section class="slide " id="21">
<!-- _S9SLIDE_ -->
<h1 id="schilling-schilling-on-the-blockchain-rock-solid-alpine-dollar-from-austria">Schilling! Schilling! on the Blockchain! Rock-Solid Alpine Dollar from Austria</h1>
<p>Who’s in? Invest Now!</p>
<p>Learn more @ <a href="https://github.com/openblockchains/schilling">openblockchains/schilling</a></p>
</section>
<section class="slide " id="22">
<!-- _S9SLIDE_ -->
<h1 id="bonus-blockchain-articles">Bonus: Blockchain Articles</h1>
<p><a href="http://rufuspollock.com/2016/07/02/reflections-on-the-blockchain"><strong>Reflections on the Blockchain</strong></a> by Rufus Pollock (Open Knowledge Foundation), July 2016 –
<em>The DAO: Code is not Law - and It’s Dangerous to Think So ++
The Internet changed the world - surely the Blockchain will too? ++
Gold-rush or Internet-rush? ++
Governance Matters in Bitcoin ++
The Myth of a Costless, Ownerless Network ++
Lessons from History</em></p>
<p><a href="https://tonyarcieri.com/on-the-dangers-of-a-blockchain-monoculture"><strong>On the Dangers of a Blockchain Monoculture</strong></a> by Tony Arcieri, January 2016 –
<em>The Bitcoin blockchain: the world’s worst database ++
Next-generation protocols ++
Decentralized ledger protocols ++
Bitcoin-NG ++
Blockchain! Blockchain! Blockchain! ++
The great decentralized database in the sky</em></p>
<p><a href="https://www.tbray.org/ongoing/When/201x/2017/05/13/Not-Believing-in-Blockchain"><strong>I Don’t Believe in Blockchain</strong></a> by Tim Bray, May 2017</p>
<p><a href="https://www.igvita.com/2014/05/05/minimum-viable-block-chain/"><strong>Minimum Viable Blockchain</strong></a> by Ilya Grigorik, May 2014 –
<em>Securing transactions with triple-entry bookkeeping ++
Securing transactions with PKI ++
Balance = Σ(receipts) ++
Multi-party transfers & verification ++
Double-spending and distributed consensus -
Requirements for a distributed consensus network;
Protecting the network from Sybil attacks;
Proof-of-work as a participation requirement ++
Building the minimum viable blockchain -
Adding “blocks” & transaction fee incentives;
Racing to claim the transaction fees;
Resolving chain conflicts;
Blocks are never final ++
Properties of the (minimum viable) blockchain</em></p>
<p><a href="https://www.oreilly.com/ideas/blockchains-by-analogies-and-applications"><strong>Blockchains by analogies and applications: How blockchain compares to Git, Raft, and other technologies.</strong></a>
by Kieren James-Lubin, January 2016 –
<em>Blockchains are databases ++
Understanding transactions ++
Persistent, replicated databases (related technology: Git) ++
Peer-to-peer networks (related technology: BitTorrent) ++
Distributed consensus (related technology: distributed databases, Raft) ++
Minting new coins (mining) ++
Embedded identities (related technology: TLS) ++
Smart contracts: Like SQL expressions & triggers ++
What can we really do with blockchains?</em></p>
</section>
<section class="slide " id="23">
<!-- _S9SLIDE_ -->
<h1 id="bonus-blockchain-books">Bonus: Blockchain Books</h1>
<p><a href="https://davidgerard.co.uk/blockchain/table-of-contents/"><strong>Attack of the 50 Foot Blockchain: Bitcoin, Blockchain, Ethereum & Smart Contracts</strong></a> by David Gerard, London, 2017 –
<em>What is a bitcoin? ++
The Bitcoin ideology ++
The incredible promises of Bitcoin! ++
Early Bitcoin: the rise to the first bubble ++
How Bitcoin mining centralised ++
Who is Satoshi Nakamoto? ++
Spending bitcoins in 2017 ++
Trading bitcoins in 2017: the second crypto bubble ++
Altcoins ++
Smart contracts, stupid humans ++
Business bafflegab, but on the Blockchain ++
Case study: Why you can’t put the music industry on a blockchain</em></p>
<p><a href="https://github.com/bitcoinbook/bitcoinbook/blob/second_edition/ch09.asciidoc"><strong>Mastering Bitcoin - Programming the Open Blockchain</strong></a> 2nd Edition,
by Andreas M. Antonopoulos, 2017 - FREE (Online Source Version) –
<em>What Is Bitcoin? ++
How Bitcoin Works ++
Bitcoin Core: The Reference Implementation ++
Keys, Addresses ++
Wallets ++
Transactions ++
Advanced Transactions and Scripting ++
The Bitcoin Network ++
The Blockchain ++
Mining and Consensus ++
Bitcoin Security ++
Blockchain Applications</em></p>
<p><a href="https://www.ibm.com/blockchain/what-is-blockchain.html"><strong>Blockchain for Dummies, IBM Limited Edition</strong></a> by Manav Gupta, 2017 - FREE (Digital Download w/ Email) –
<em>Grasping Blockchain Fundamentals ++
Taking a Look at How Blockchain Works ++
Propelling Business with Blockchains ++
Blockchain in Action: Use Cases ++
Hyperledger, a Linux Foundation Project ++
Ten Steps to Your First Blockchain application</em></p>
</section>
<section class="slide " id="24">
<!-- _S9SLIDE_ -->
<h1 id="bonus-awesome-blockchains">Bonus: Awesome Blockchains</h1>
<p>A collection about awesome blockchains - open distributed public databases w/ crypto hashes incl. git ;-). Blockchains are the new tulips. Distributed is the new centralized.</p>
<p>More @ <a href="https://github.com/openblockchains/awesome-blockchains">openblockchains/awesome-blockchains</a></p>
</section>
<section class="slide " id="25">
<!-- _S9SLIDE_ -->
<h1 id="bonus-git-git-git---the-stupid-content-tracker-with-crypto-hashes">Bonus: Git, Git, Git - The Stupid Content Tracker with Crypto Hashes</h1>
<p><em>Everything is local. Distributed is the new centralized.</em></p>
<blockquote>
<p>Yep, that’s the joke. Nobody has been able to explain to me how the “blockchain” buzzword is significantly different to “git repo”.
– <a href="https://twitter.com/yaakov_h/status/902659507255312384">Yaakov</a></p>
<p>But if you said “let’s build a currency where all transactions are stored in a git repo”
you wouldn’t be taken seriously for even 24 hrs.
– <a href="https://twitter.com/yaakov_h/status/902659847224664064">Yaakov</a></p>
</blockquote>
<blockquote>
<p>Soon explaining git like “a git repo is like a blockchain with commits instead of blocks”.
– <a href="https://twitter.com/nicoberger/status/901776907418697729">Nicolás Berger</a></p>
<p>“A local branch is like a state channel. It can be pushed and merged into the master blockchain at any moment.”
– <a href="https://twitter.com/nicoberger/status/901777571456614400">Nicolás Berger</a></p>
</blockquote>
<blockquote>
<p>The #Blockchain has changed the world. Here I make the argument that the #Blockchain is just like #git.
– <a href="https://twitter.com/sjkelleyjr/status/901464041163341824">Jackson Kelley</a></p>
</blockquote>
</section>
</article><!-- presentation -->
<!-- S6 JS -->
<script src="s62/slides.keys.js"></script>
<script src="s62/slides.progress.js"></script>
<script src="s62/slides.classes.js"></script>
<script src="s62/slides.state.js"></script>
<script src="s62/slides.kernel.js"></script>
<script>
const {Deck, classes, keys, progress, state} = S6;
const deck = new Deck({ parent: "#presentation",
plugins: [classes(), keys(), progress(), state()] });
</script>
</body>
</html>