Slide 1

Slide 1 text

blockchain dive deep into Tomasz Kowalczyk @tmmx

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

blockwhat?

Slide 5

Slide 5 text

database

Slide 6

Slide 6 text

chain of blocks

Slide 7

Slide 7 text

block of data

Slide 8

Slide 8 text

data structure

Slide 9

Slide 9 text

cryptocurrency

Slide 10

Slide 10 text

general purpose

Slide 11

Slide 11 text

blockwhy?

Slide 12

Slide 12 text

immutability

Slide 13

Slide 13 text

append only

Slide 14

Slide 14 text

traceability

Slide 15

Slide 15 text

verifiability

Slide 16

Slide 16 text

tamper proof

Slide 17

Slide 17 text

integrity

Slide 18

Slide 18 text

reproducibility

Slide 19

Slide 19 text

decentralization

Slide 20

Slide 20 text

trust(less)

Slide 21

Slide 21 text

transparency

Slide 22

Slide 22 text

blockwhen?

Slide 23

Slide 23 text

voting medical records cloud storage financial transactions decentralized messaging property registry land sales insurance digital wallets smart contracts crowdfunding property ownership social networking P2P finances virtual countries asset trading

Slide 24

Slide 24 text

few hours later...

Slide 25

Slide 25 text

loyalty programs internal currency regulatory reporting cross-border payments smart contracts ecommerce digital identity anti-counterfeiting mechanisms

Slide 26

Slide 26 text

blockhow?

Slide 27

Slide 27 text

public shared private

Slide 28

Slide 28 text

cryptography

Slide 29

Slide 29 text

addresses

Slide 30

Slide 30 text

hash algorithm

Slide 31

Slide 31 text

Merkle tree aka. binary hash tree

Slide 32

Slide 32 text

A B C D HAB HCD R B Merkle path: R-HAB-HB HA HB HC HD

Slide 33

Slide 33 text

genesis block

Slide 34

Slide 34 text

consensus

Slide 35

Slide 35 text

proof of work proof of stake

Slide 36

Slide 36 text

example

Slide 37

Slide 37 text

Hashchain?

Slide 38

Slide 38 text

$storage = new SqliteStorage('chain.sq3'); $signer = new OpenSslSigner('private.key', 'public.key'); $genesis = new GenesisBlock('fiat lux'); $state = new State(); $chain = new Hashchain($storage, $signer, $genesis, $state); $chain->createBlock(new CreateAccount('A', 'Alpha')); $chain->createBlock(new CreateAccountWithCredits('Z', 'Zulu', 1000)); $chain->createBlock(new SendCredits('Z', 'A', 100));

Slide 39

Slide 39 text

// Not enough credits: Z sent 100 to A and has only 900! $chain->createBlock(new SendCredits('Z', 'A', 1000)); // Sender X does not exist! $chain->createBlock(new SendCredits('X', 'A', 1000)); // Account Zulu already exists! $chain->createBlock(new CreateAccount('Z', 'Zulu'));

Slide 40

Slide 40 text

challenges

Slide 41

Slide 41 text

conflict resolution

Slide 42

Slide 42 text

integration with existing systems

Slide 43

Slide 43 text

performance scalability throughput

Slide 44

Slide 44 text

mining and incentives rewards for maintaining network nodes

Slide 45

Slide 45 text

security

Slide 46

Slide 46 text

privacy

Slide 47

Slide 47 text

hard forks

Slide 48

Slide 48 text

summary

Slide 49

Slide 49 text

right solution for the right kind of problem

Slide 50

Slide 50 text

Event Sourcing (on steroids)

Slide 51

Slide 51 text

scratching surface

Slide 52

Slide 52 text

BlocQuestions?

Slide 53

Slide 53 text

Slides https://speakerdeck.com/thunderer/dive-deep-into-blockchain Resources http://www.imponderablethings.com/2013/07/how-bitcoin-works-under-hood.html http://chimera.labs.oreilly.com/books/1234000001802/index.html (Mastering Bitcoin) https://www.coindesk.com/math-behind-bitcoin (EC) https://en.wikipedia.org/wiki/Four_Knights_Game (Chess) http://queue.acm.org/detail.cfm?id=3136559 (Bitcoin) https://blog.acolyer.org/2017/08/30/a-concurrent-perspective-on-smart-contracts (smart contracts) https://en.bitcoin.it/wiki/Secp256k1 (Bitcoin Elliptic Curve) Pictures (Creative Commons) https://www.flickr.com/photos/skyseeker/14404947216 (lightning) https://www.flickr.com/photos/atermath/3053484935 (stripes) https://www.flickr.com/photos/randnotizenorg/32110828536 (electronic) https://www.flickr.com/photos/23221002@N00/7204014842 (equations) https://www.flickr.com/photos/spookyamd/14184019077 (mountain) https://www.flickr.com/photos/s1ng0/5445857570 (trees) https://www.flickr.com/photos/95213174@N08/10329928973 (handshake) https://www.flickr.com/photos/wiertz/4563720850 (signature) https://www.flickr.com/photos/33279673@N03/5482493912 (chains)

Slide 54

Slide 54 text

please rate the talk and give feedback on joind.in/talk/74cb2

Slide 55

Slide 55 text

Thankschain! github /thunderer twitter @tmmx