Blockchain and Crypto By David and Lukas Blockchain and Crypto By - - PowerPoint PPT Presentation

blockchain and crypto
SMART_READER_LITE
LIVE PREVIEW

Blockchain and Crypto By David and Lukas Blockchain and Crypto By - - PowerPoint PPT Presentation

Blockchain and Crypto By David and Lukas Blockchain and Crypto By David and Lukas Topics Overview What is Bitcoin? What is a Blockchain? Blockchain and Bitcoin In-Depth Transactions New Blocks Forks Nakamotos Forerunners Smart


slide-1
SLIDE 1

Blockchain and Crypto

By David and Lukas

slide-2
SLIDE 2

Blockchain and Crypto

By David and Lukas

slide-3
SLIDE 3

Overview

What is Bitcoin? What is a Blockchain?

Blockchain and Bitcoin In-Depth

Transactions New Blocks Forks

Nakamoto’s Forerunners Smart Contracts

Topics

slide-4
SLIDE 4

Overview

Blockchain & Bitcoin

slide-5
SLIDE 5

What is Bitcoin?

slide-6
SLIDE 6

What is Bitcoin?

2009 Digital, Stored in Bitcoin Wallets Mining No centralized Banking

slide-7
SLIDE 7

What is Bitcoin?

Source: https://upload.wikimedia.org/wikipedia/commons/0/01/Bitcoin_usd_price.png

slide-8
SLIDE 8

What about traditional banking?

slide-9
SLIDE 9

International Bank Transfer

Alice Money Transfer Operator Bank Clearing House Bank Bob

slide-10
SLIDE 10

Why bother?

slide-11
SLIDE 11

Why bother?

Political Issues Independence Availability

slide-12
SLIDE 12
slide-13
SLIDE 13

“On the Internet, nobody knows you’re a dog.”

  • Peter Steiner, The New Yorker 1993
slide-14
SLIDE 14

What is a Blockchain?

slide-15
SLIDE 15

Traditional Banking

Alice Bank Bob Carol

slide-16
SLIDE 16

Distributed Ledger

Alice Bank Bob Carol

slide-17
SLIDE 17

Blockchain Attributes

Distributed Immutable Consensus

slide-18
SLIDE 18

Blockchain Attributes

Peer-To-Peer Cryptographically Secured

slide-19
SLIDE 19

Shared Ledger

slide-20
SLIDE 20

Shared Ledger

slide-21
SLIDE 21

How does it work?

slide-22
SLIDE 22

How does a Blockchain work?

Genesis Block

slide-23
SLIDE 23

How does a Blockchain work?

Block Previous Hash Nonce Tx Tx Tx Tx Tx Block Previous Hash Nonce Tx Tx Tx Tx Tx Block Previous Hash Nonce Tx Tx Tx Tx Tx

slide-24
SLIDE 24

How does a transaction work?

Mining Pool

Signed Transaction

Miners Alice

slide-25
SLIDE 25

Blockchain and Bitcoin

A closer Look

slide-26
SLIDE 26

Transactions

Coin Private Key Public Key Private Key: Signature Knowledge confers Ownership Public Key: Verification Proof of Ownership

slide-27
SLIDE 27

Transactions

From Alice To Bob Amount 1 BTC

Alice Bob

slide-28
SLIDE 28

Transactions

Mining Pool

Alice

Signed Transaction

slide-29
SLIDE 29

Transactions

Value (Coins) represented by Key Pairs Sender creates transaction message Message signed and verifiable Package stored in Mining Pool Eventually, Transaction added to the Blockchain

slide-30
SLIDE 30

Adding new Blocks

Mining Pool Miners Mining: Proof of Work (PoW) Work: Computing Hashes Goal: Find specific Hash Incentive (BFT): Reward Winner publishes new block on the blockchain and is rewarded with BTC

slide-31
SLIDE 31

Forks

Mining Pool Miners Two Miners solve simultaneously: chain is forked Approaches: longest chain wins, etc.

slide-32
SLIDE 32
slide-33
SLIDE 33

Nakamoto’s Forerunners

Bitcoin and its Academic Roots

slide-34
SLIDE 34

Bitcoin’s Roots in Academia

slide-35
SLIDE 35

Original Idea: Signatures Simplification: Hashing

Linked Timestamps & Hashes

Document B Signature: Timestamp “Lorem ipsum” Document A

How to timestamp a Digital Document Haber & Stornetta 1991

slide-36
SLIDE 36

How can we handle faulty or deviant members in a distributed system?

Byzantine Fault Tolerance

slide-37
SLIDE 37

Byzantine Fault Tolerance

There will be a WHOLE talk on this topic 🤰 Lots of research and no definitive consensus Notable work: The Byzantine Generals Problem, Lampert Nakamoto solves this using Proof of Work

slide-38
SLIDE 38

Proof of Work

Avoid Spam Mail through PoW Work: Signature Dwork & Naor 1992 Hashcash Work: Hash-Functions Back 1997

slide-39
SLIDE 39

Digital Cash

There are several precursors of Bitcoin!

Hashcash Back 1997 Bit Gold Szabo 2008 Ecash Chaum 1983 B-Money Dai 1998

slide-40
SLIDE 40

Smart Contracts

Distributed Software on Blockchain

slide-41
SLIDE 41

Smart Contracts

Instead of simple transactions, just run code on the blockchain! Contracts: small programs Deployed to the blockchain (immutable) Peers can interact with the contract via transactions Lots of possibilities

slide-42
SLIDE 42

Thanks.

Feel free to ask and discuss!

slide-43
SLIDE 43

References

Presentation Template: “UC Davis Presentation Template - 8/17/2018” from Google Drive Title image: https://i0.wp.com/www.dailycal.org/assets/uploads/2016/02/IMG_5721.jpg?w=1404&ssl=1 “UC Davis” Logos and Marks: http://marketingtoolbox.ucdavis.edu/docs/logo-files/UC_Davis_Wordmarks.zip Icons: All Icons made by Freepik from www.flaticon.com Video: https://www.youtube.com/watch?time_continue=1&v=l9jOJk30eQs Literature: Arvind Narayanan and Jeremy Clark. 2017. Bitcoin's academic pedigree. Commun. ACM 60, 12 (November 2017), 36-45. DOI: https://doi.org/10.1145/3132259 Maurice Herlihy. 2019. Blockchains from a distributed computing perspective. Commun. ACM 62, 2 (January 2019), 78-85. DOI: https://doi.org/10.1145/3209623

slide-44
SLIDE 44

Additional Information

Questions asked during class

slide-45
SLIDE 45

Additional Information

Q1) How to keep honest miners from adding fake/no/wrong transactions to the blockchain? Q2) If the blockchain forks are nodes separated into two groups and do they stay part of the same node network? Q3) Where in the peer network are smart contracts executed?

slide-46
SLIDE 46

Q1) How to keep miners in check

We used this article to find the answer:

https://bitcoin.stackexchange.com/questions/67768/how-does-the-protocol-prevent-miners-from-building-off-of-a-fraudulent-bl

  • ckchai

The gist of it is that miners who would produce wrong/malicious blocks or add wrong or no transactions will just be ignored by the honest nodes in the network (the block won’t validate). Thus, the incorrect block will not be published throughout the network.

slide-47
SLIDE 47

Q2) How nodes react to chain forks

We used this article to find the answer:

https://bitcoin.stackexchange.com/questions/75394/how-do-the-nodes-divide-after-a-hard-fork-soft-fork

There are hard and soft forks. When we speak of hard forks it really means that the disagreeing nodes split into two separate

  • networks. If the systems experiences a soft fork it makes sure that

the new fork is backwards compatible and transactions are valid in both chains. For accidental forks, the rule of the longest chain still applies.

slide-48
SLIDE 48

Q3) Where smart contracts are executed

We used this article to find the answer:

https://ethereum.stackexchange.com/questions/20781/at-which-point-the-smart-contracts-get-executed

Basically, the mining node executes the contract code and adds any output to the next block it mines. The code is then re-executed by every validating node in the network.