Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain...

74
UNCClogo.pd Background Bitcoin Ethereum and General Block Chain Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang

Transcript of Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain...

Page 1: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Electronic Cash and Blockchain Security

Yongge Wang

UNC Charlotte, USA

October 15, 2018

Yongge Wang

Page 2: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Outline

1 BackgroundDavid Chaum

2 BitcoinBTC TransactionMerkle TreeBTC Transaction scripts

3 Ethereum and General Block Chain

Yongge Wang

Page 3: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Outline

1 BackgroundDavid Chaum

2 BitcoinBTC TransactionMerkle TreeBTC Transaction scripts

3 Ethereum and General Block Chain

Yongge Wang

Page 4: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Outline

1 BackgroundDavid Chaum

2 BitcoinBTC TransactionMerkle TreeBTC Transaction scripts

3 Ethereum and General Block Chain

Yongge Wang

Page 5: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Motivation

Real cash could be anonymous though theoretically it isnot (sequence numbers, but who record them?)Easy to design e-cash using PKI, but traceablee-cash or e-wallet is convenient for online small payment

Yongge Wang

Page 6: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Motivation

Real cash could be anonymous though theoretically it isnot (sequence numbers, but who record them?)Easy to design e-cash using PKI, but traceablee-cash or e-wallet is convenient for online small payment

Yongge Wang

Page 7: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Motivation

Real cash could be anonymous though theoretically it isnot (sequence numbers, but who record them?)Easy to design e-cash using PKI, but traceablee-cash or e-wallet is convenient for online small payment

Yongge Wang

Page 8: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Requirements for e-cash

anonymous (non-traceable)no double spendingeasy to pay a few cents on linemany others

Yongge Wang

Page 9: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Requirements for e-cash

anonymous (non-traceable)no double spendingeasy to pay a few cents on linemany others

Yongge Wang

Page 10: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Requirements for e-cash

anonymous (non-traceable)no double spendingeasy to pay a few cents on linemany others

Yongge Wang

Page 11: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Requirements for e-cash

anonymous (non-traceable)no double spendingeasy to pay a few cents on linemany others

Yongge Wang

Page 12: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Historical Efforts: David Chaum

The concept of e-cash was originally based on Chaum’sblind signature (1984)Untraceable Electronic Cash (Chaum, Fiat, Naor 1990)many othersbitcoin 2009Ethereum 2015

Yongge Wang

Page 13: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Historical Efforts: David Chaum

The concept of e-cash was originally based on Chaum’sblind signature (1984)Untraceable Electronic Cash (Chaum, Fiat, Naor 1990)many othersbitcoin 2009Ethereum 2015

Yongge Wang

Page 14: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Historical Efforts: David Chaum

The concept of e-cash was originally based on Chaum’sblind signature (1984)Untraceable Electronic Cash (Chaum, Fiat, Naor 1990)many othersbitcoin 2009Ethereum 2015

Yongge Wang

Page 15: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Historical Efforts: David Chaum

The concept of e-cash was originally based on Chaum’sblind signature (1984)Untraceable Electronic Cash (Chaum, Fiat, Naor 1990)many othersbitcoin 2009Ethereum 2015

Yongge Wang

Page 16: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Historical Efforts: David Chaum

The concept of e-cash was originally based on Chaum’sblind signature (1984)Untraceable Electronic Cash (Chaum, Fiat, Naor 1990)many othersbitcoin 2009Ethereum 2015

Yongge Wang

Page 17: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Blind Signature (Chaum)

the Bank has an RSA public key (e,N) and private key dAlice has a coin m (e.g., $10)Alice chooses a random number r , and computesm′ = m · re(mod N)

bank signs m′ with signature s′ = (m′)d

Alice calculates signature s on m as

s = s′ · r−1 = (m · re)d · r−1 = md

Alice spends (m,s) as $10 while bank cannot link this coinm to Alice’s account

Yongge Wang

Page 18: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Blind Signature (Chaum)

the Bank has an RSA public key (e,N) and private key dAlice has a coin m (e.g., $10)Alice chooses a random number r , and computesm′ = m · re(mod N)

bank signs m′ with signature s′ = (m′)d

Alice calculates signature s on m as

s = s′ · r−1 = (m · re)d · r−1 = md

Alice spends (m,s) as $10 while bank cannot link this coinm to Alice’s account

Yongge Wang

Page 19: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Blind Signature (Chaum)

the Bank has an RSA public key (e,N) and private key dAlice has a coin m (e.g., $10)Alice chooses a random number r , and computesm′ = m · re(mod N)

bank signs m′ with signature s′ = (m′)d

Alice calculates signature s on m as

s = s′ · r−1 = (m · re)d · r−1 = md

Alice spends (m,s) as $10 while bank cannot link this coinm to Alice’s account

Yongge Wang

Page 20: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Blind Signature (Chaum)

the Bank has an RSA public key (e,N) and private key dAlice has a coin m (e.g., $10)Alice chooses a random number r , and computesm′ = m · re(mod N)

bank signs m′ with signature s′ = (m′)d

Alice calculates signature s on m as

s = s′ · r−1 = (m · re)d · r−1 = md

Alice spends (m,s) as $10 while bank cannot link this coinm to Alice’s account

Yongge Wang

Page 21: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Blind Signature (Chaum)

the Bank has an RSA public key (e,N) and private key dAlice has a coin m (e.g., $10)Alice chooses a random number r , and computesm′ = m · re(mod N)

bank signs m′ with signature s′ = (m′)d

Alice calculates signature s on m as

s = s′ · r−1 = (m · re)d · r−1 = md

Alice spends (m,s) as $10 while bank cannot link this coinm to Alice’s account

Yongge Wang

Page 22: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Blind Signature (Chaum)

the Bank has an RSA public key (e,N) and private key dAlice has a coin m (e.g., $10)Alice chooses a random number r , and computesm′ = m · re(mod N)

bank signs m′ with signature s′ = (m′)d

Alice calculates signature s on m as

s = s′ · r−1 = (m · re)d · r−1 = md

Alice spends (m,s) as $10 while bank cannot link this coinm to Alice’s account

Yongge Wang

Page 23: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Challenges in Blind Signature Scheme

What happens if m = 100$ instead of 10$ unless all coinshave same value?Seller must contact bank to make sure m has not beenspent yet when accepting the money from Alicecan we remove the online restrict? In other words, sellerdoes not need to contact bank: Chaum, Fiat, and NaorScheme (1988)

Yongge Wang

Page 24: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Challenges in Blind Signature Scheme

What happens if m = 100$ instead of 10$ unless all coinshave same value?Seller must contact bank to make sure m has not beenspent yet when accepting the money from Alicecan we remove the online restrict? In other words, sellerdoes not need to contact bank: Chaum, Fiat, and NaorScheme (1988)

Yongge Wang

Page 25: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block ChainDavid Chaum

Challenges in Blind Signature Scheme

What happens if m = 100$ instead of 10$ unless all coinshave same value?Seller must contact bank to make sure m has not beenspent yet when accepting the money from Alicecan we remove the online restrict? In other words, sellerdoes not need to contact bank: Chaum, Fiat, and NaorScheme (1988)

Yongge Wang

Page 26: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin: a high level description

A pseudonym “Satoshi Nakamoto” designed BTC in 2008and in operation since 2009, http://bitcoin.org/bitcoin.pdfw0 is the start coinbase by Satoshi Nakamotoyou find a random number r0 such that H(w0, r0) = w1 suchthat the first two bits of w1 is 00, you will be rewarded withone BTCAnother person will mint BTC by finding another r1 withH(w1, r1) = w2 such that the first two bits of w2 is 00, youwill be rewarded with one BTCthis process continues until computer becomes fast andyou have to find a random ri such that the hash outputcontains a long prefix of 0transactions are included in the hash in order to be verified

Yongge Wang

Page 27: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin: a high level description

A pseudonym “Satoshi Nakamoto” designed BTC in 2008and in operation since 2009, http://bitcoin.org/bitcoin.pdfw0 is the start coinbase by Satoshi Nakamotoyou find a random number r0 such that H(w0, r0) = w1 suchthat the first two bits of w1 is 00, you will be rewarded withone BTCAnother person will mint BTC by finding another r1 withH(w1, r1) = w2 such that the first two bits of w2 is 00, youwill be rewarded with one BTCthis process continues until computer becomes fast andyou have to find a random ri such that the hash outputcontains a long prefix of 0transactions are included in the hash in order to be verified

Yongge Wang

Page 28: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin: a high level description

A pseudonym “Satoshi Nakamoto” designed BTC in 2008and in operation since 2009, http://bitcoin.org/bitcoin.pdfw0 is the start coinbase by Satoshi Nakamotoyou find a random number r0 such that H(w0, r0) = w1 suchthat the first two bits of w1 is 00, you will be rewarded withone BTCAnother person will mint BTC by finding another r1 withH(w1, r1) = w2 such that the first two bits of w2 is 00, youwill be rewarded with one BTCthis process continues until computer becomes fast andyou have to find a random ri such that the hash outputcontains a long prefix of 0transactions are included in the hash in order to be verified

Yongge Wang

Page 29: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin: a high level description

A pseudonym “Satoshi Nakamoto” designed BTC in 2008and in operation since 2009, http://bitcoin.org/bitcoin.pdfw0 is the start coinbase by Satoshi Nakamotoyou find a random number r0 such that H(w0, r0) = w1 suchthat the first two bits of w1 is 00, you will be rewarded withone BTCAnother person will mint BTC by finding another r1 withH(w1, r1) = w2 such that the first two bits of w2 is 00, youwill be rewarded with one BTCthis process continues until computer becomes fast andyou have to find a random ri such that the hash outputcontains a long prefix of 0transactions are included in the hash in order to be verified

Yongge Wang

Page 30: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin: a high level description

A pseudonym “Satoshi Nakamoto” designed BTC in 2008and in operation since 2009, http://bitcoin.org/bitcoin.pdfw0 is the start coinbase by Satoshi Nakamotoyou find a random number r0 such that H(w0, r0) = w1 suchthat the first two bits of w1 is 00, you will be rewarded withone BTCAnother person will mint BTC by finding another r1 withH(w1, r1) = w2 such that the first two bits of w2 is 00, youwill be rewarded with one BTCthis process continues until computer becomes fast andyou have to find a random ri such that the hash outputcontains a long prefix of 0transactions are included in the hash in order to be verified

Yongge Wang

Page 31: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin: a high level description

A pseudonym “Satoshi Nakamoto” designed BTC in 2008and in operation since 2009, http://bitcoin.org/bitcoin.pdfw0 is the start coinbase by Satoshi Nakamotoyou find a random number r0 such that H(w0, r0) = w1 suchthat the first two bits of w1 is 00, you will be rewarded withone BTCAnother person will mint BTC by finding another r1 withH(w1, r1) = w2 such that the first two bits of w2 is 00, youwill be rewarded with one BTCthis process continues until computer becomes fast andyou have to find a random ri such that the hash outputcontains a long prefix of 0transactions are included in the hash in order to be verified

Yongge Wang

Page 32: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin with transaction

the BTC is a chain w0,w1, · · · ,wn where wn is the currentBTC HEAD that everyone works on itbased on P2P protocol, all person work on the longestchain. If you work on a shorter chain, you waste time andthe transaction included in these chains will not be validwn has prefix of 0...0 where the number of 0 is determinedby voting algorithm so one BTC is minted each 10 minuteswi+1 = H(wi ,TR, ri) where TR is the Merkle hash output ofthe transactions that you want to include and ri is a randomnumber that you find to make wi+1 has a certain number0’s in its prefix

Yongge Wang

Page 33: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin with transaction

the BTC is a chain w0,w1, · · · ,wn where wn is the currentBTC HEAD that everyone works on itbased on P2P protocol, all person work on the longestchain. If you work on a shorter chain, you waste time andthe transaction included in these chains will not be validwn has prefix of 0...0 where the number of 0 is determinedby voting algorithm so one BTC is minted each 10 minuteswi+1 = H(wi ,TR, ri) where TR is the Merkle hash output ofthe transactions that you want to include and ri is a randomnumber that you find to make wi+1 has a certain number0’s in its prefix

Yongge Wang

Page 34: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin with transaction

the BTC is a chain w0,w1, · · · ,wn where wn is the currentBTC HEAD that everyone works on itbased on P2P protocol, all person work on the longestchain. If you work on a shorter chain, you waste time andthe transaction included in these chains will not be validwn has prefix of 0...0 where the number of 0 is determinedby voting algorithm so one BTC is minted each 10 minuteswi+1 = H(wi ,TR, ri) where TR is the Merkle hash output ofthe transactions that you want to include and ri is a randomnumber that you find to make wi+1 has a certain number0’s in its prefix

Yongge Wang

Page 35: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin with transaction

the BTC is a chain w0,w1, · · · ,wn where wn is the currentBTC HEAD that everyone works on itbased on P2P protocol, all person work on the longestchain. If you work on a shorter chain, you waste time andthe transaction included in these chains will not be validwn has prefix of 0...0 where the number of 0 is determinedby voting algorithm so one BTC is minted each 10 minuteswi+1 = H(wi ,TR, ri) where TR is the Merkle hash output ofthe transactions that you want to include and ri is a randomnumber that you find to make wi+1 has a certain number0’s in its prefix

Yongge Wang

Page 36: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Merkle Hash Tree

H12=H(H1,H2)

H1=H(D1) H2=H(D2)

DataD2DataD1

H34=H(H3,H4)

H3=H(D3) H4=H(D4)

DataD4DataD3

root:TR=H(H12,H34)

Yongge Wang

Page 37: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin Transaction Scripts

BTC transactions are described using Forth-like Scripts(https://en.bitcoin.it/wiki/Script)the scripts enable smart contract (e.g., the transaction willbe valid if two persons sign the contract, valid after certaintime etc.)A transaction means Alice pays x BTC to BobThis is achieved by Alice signing the message “referencenumber, Bob’s pub key, BTC amount”“reference number” should be contained in some block ofthe current BTC chain w0,w1, · · · ,wn. E.g., wi

Alice’s public key should be included in the block witransaction with the given reference number

Yongge Wang

Page 38: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin Transaction Scripts

BTC transactions are described using Forth-like Scripts(https://en.bitcoin.it/wiki/Script)the scripts enable smart contract (e.g., the transaction willbe valid if two persons sign the contract, valid after certaintime etc.)A transaction means Alice pays x BTC to BobThis is achieved by Alice signing the message “referencenumber, Bob’s pub key, BTC amount”“reference number” should be contained in some block ofthe current BTC chain w0,w1, · · · ,wn. E.g., wi

Alice’s public key should be included in the block witransaction with the given reference number

Yongge Wang

Page 39: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin Transaction Scripts

BTC transactions are described using Forth-like Scripts(https://en.bitcoin.it/wiki/Script)the scripts enable smart contract (e.g., the transaction willbe valid if two persons sign the contract, valid after certaintime etc.)A transaction means Alice pays x BTC to BobThis is achieved by Alice signing the message “referencenumber, Bob’s pub key, BTC amount”“reference number” should be contained in some block ofthe current BTC chain w0,w1, · · · ,wn. E.g., wi

Alice’s public key should be included in the block witransaction with the given reference number

Yongge Wang

Page 40: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin Transaction Scripts

BTC transactions are described using Forth-like Scripts(https://en.bitcoin.it/wiki/Script)the scripts enable smart contract (e.g., the transaction willbe valid if two persons sign the contract, valid after certaintime etc.)A transaction means Alice pays x BTC to BobThis is achieved by Alice signing the message “referencenumber, Bob’s pub key, BTC amount”“reference number” should be contained in some block ofthe current BTC chain w0,w1, · · · ,wn. E.g., wi

Alice’s public key should be included in the block witransaction with the given reference number

Yongge Wang

Page 41: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin Transaction Scripts

BTC transactions are described using Forth-like Scripts(https://en.bitcoin.it/wiki/Script)the scripts enable smart contract (e.g., the transaction willbe valid if two persons sign the contract, valid after certaintime etc.)A transaction means Alice pays x BTC to BobThis is achieved by Alice signing the message “referencenumber, Bob’s pub key, BTC amount”“reference number” should be contained in some block ofthe current BTC chain w0,w1, · · · ,wn. E.g., wi

Alice’s public key should be included in the block witransaction with the given reference number

Yongge Wang

Page 42: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Bitcoin Transaction Scripts

BTC transactions are described using Forth-like Scripts(https://en.bitcoin.it/wiki/Script)the scripts enable smart contract (e.g., the transaction willbe valid if two persons sign the contract, valid after certaintime etc.)A transaction means Alice pays x BTC to BobThis is achieved by Alice signing the message “referencenumber, Bob’s pub key, BTC amount”“reference number” should be contained in some block ofthe current BTC chain w0,w1, · · · ,wn. E.g., wi

Alice’s public key should be included in the block witransaction with the given reference number

Yongge Wang

Page 43: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Example Forth Script

In order to compute 25×10+50, we inputs: 25 10 * 50 + .in the calculatorIt works the the following way by stack

Yongge Wang

Page 44: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Example Forth Script

In order to compute 25×10+50, we inputs: 25 10 * 50 + .in the calculatorIt works the the following way by stack

Yongge Wang

Page 45: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Example Transaction

scriptPubKey: OP_DUP OP_HASH160 <pubKeyHash>OP_EQUALVERIFY OP_CHECKSIGscriptSig: <sig> <pubKey>

Yongge Wang

Page 46: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Example Transaction

scriptPubKey: OP_DUP OP_HASH160 <pubKeyHash>OP_EQUALVERIFY OP_CHECKSIGscriptSig: <sig> <pubKey>

Yongge Wang

Page 47: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Example Transaction 2

Yongge Wang

Page 48: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

Internet Service Platform

Anybody can upload programs to the Ethereum WorldComputer and anybody can request that a program thathas been uploaded be executed.

Yongge Wang

Page 49: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

What is New in Ethereum

BTC scripting language has limited capability whileEthereum script is Turing completeEthereum is a blockchain with a built-in Turing-completeprogramming language, allowing anyone to write smartcontracts and decentralized applications where they cancreate their own arbitrary rules for ownership, transactionformats and state transition functions.BTC only supports “Proof of work” while Ethereum alsosupports “proof of stake”Proof of stake: calculating the weight of a node as beingproportional to its currency holdings and not itscomputational resources.

Yongge Wang

Page 50: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

What is New in Ethereum

BTC scripting language has limited capability whileEthereum script is Turing completeEthereum is a blockchain with a built-in Turing-completeprogramming language, allowing anyone to write smartcontracts and decentralized applications where they cancreate their own arbitrary rules for ownership, transactionformats and state transition functions.BTC only supports “Proof of work” while Ethereum alsosupports “proof of stake”Proof of stake: calculating the weight of a node as beingproportional to its currency holdings and not itscomputational resources.

Yongge Wang

Page 51: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

What is New in Ethereum

BTC scripting language has limited capability whileEthereum script is Turing completeEthereum is a blockchain with a built-in Turing-completeprogramming language, allowing anyone to write smartcontracts and decentralized applications where they cancreate their own arbitrary rules for ownership, transactionformats and state transition functions.BTC only supports “Proof of work” while Ethereum alsosupports “proof of stake”Proof of stake: calculating the weight of a node as beingproportional to its currency holdings and not itscomputational resources.

Yongge Wang

Page 52: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

BTC TransactionMerkle TreeBTC Transaction scripts

What is New in Ethereum

BTC scripting language has limited capability whileEthereum script is Turing completeEthereum is a blockchain with a built-in Turing-completeprogramming language, allowing anyone to write smartcontracts and decentralized applications where they cancreate their own arbitrary rules for ownership, transactionformats and state transition functions.BTC only supports “Proof of work” while Ethereum alsosupports “proof of stake”Proof of stake: calculating the weight of a node as beingproportional to its currency holdings and not itscomputational resources.

Yongge Wang

Page 53: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum

Ethereum allows users to create their own operations ofany complexity they wish (Turing Complete)Based on the Ethereum Virtual Machine (EVM): theruntime environment for smart contracts in Ethereum.

Yongge Wang

Page 54: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum

Ethereum allows users to create their own operations ofany complexity they wish (Turing Complete)Based on the Ethereum Virtual Machine (EVM): theruntime environment for smart contracts in Ethereum.

Yongge Wang

Page 55: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 56: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 57: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 58: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 59: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 60: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 61: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Ethereum Accounts and Smart Contracts

Accounts: 20 bytes string.An account contains four fields: nonce, ether balance,contract code (optional), and storage (empty by default)Externally Owned Accounts (EOAs), which are controlledby private keysContract Accounts, which are controlled by their contractcode and can only be “activated” by an EOA. Contractaccounts are governed by their internal code which isprogrammed to be controlled by an EOA with a certainaddress,“smart contracts” refers to code in a Contract Account:programs that execute when a transaction is sent to thataccount.Users can create new contracts by deploying code to theblockchain.The sender of a transaction must pay for each step of the“program” they activated, including computation andmemory storage.

Yongge Wang

Page 62: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Digital Economy and Smart Contracts

Obama-Trump Contract: Donald Trump releases his tax returnforms as soon as Barack Obama releases his birth certificate.How can we design block-chain based Obama-Trump Contract?

Important issue: privacy does not have a price tagHow can we deal with contract without deposit?

Yongge Wang

Page 63: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Digital Economy and Smart Contracts

Obama-Trump Contract: Donald Trump releases his tax returnforms as soon as Barack Obama releases his birth certificate.How can we design block-chain based Obama-Trump Contract?

Important issue: privacy does not have a price tagHow can we deal with contract without deposit?

Yongge Wang

Page 64: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Obama-Trump Contract

Yongge Wang, The Limit of Blockchains: Infeasibility of aSmart Obama-Trump Contract: To appear in TheCommunications of the ACM next month

Yongge Wang

Page 65: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Legal, Forensic, and Social Impact of Blockchains

Blockchains have become a buzzword and it is believed thatsmart contract is a panacea to redefine the digital economy. Weinitiated the study in this direction and investigates the potentiallegal, forensic, and social impact of blockchains on the society.

The proof-of-work (or hybrid proof-of-work/proof-of-stakesystems) based blockchains may pose serious challengesto both forms of government: dictatorships andconstitutional democracies.It is predicted that most countries will ban proof-of-work (orhybrid proof-of- work/proof-of-stake systems) basedblockchains in future.if proof-of-stake based blockchains are appropriatelydesigned, then one could avoid these challenges.

Yongge Wang

Page 66: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Legal, Forensic, and Social Impact of Blockchains

Blockchains have become a buzzword and it is believed thatsmart contract is a panacea to redefine the digital economy. Weinitiated the study in this direction and investigates the potentiallegal, forensic, and social impact of blockchains on the society.

The proof-of-work (or hybrid proof-of-work/proof-of-stakesystems) based blockchains may pose serious challengesto both forms of government: dictatorships andconstitutional democracies.It is predicted that most countries will ban proof-of-work (orhybrid proof-of- work/proof-of-stake systems) basedblockchains in future.if proof-of-stake based blockchains are appropriatelydesigned, then one could avoid these challenges.

Yongge Wang

Page 67: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Legal, Forensic, and Social Impact of Blockchains

Blockchains have become a buzzword and it is believed thatsmart contract is a panacea to redefine the digital economy. Weinitiated the study in this direction and investigates the potentiallegal, forensic, and social impact of blockchains on the society.

The proof-of-work (or hybrid proof-of-work/proof-of-stakesystems) based blockchains may pose serious challengesto both forms of government: dictatorships andconstitutional democracies.It is predicted that most countries will ban proof-of-work (orhybrid proof-of- work/proof-of-stake systems) basedblockchains in future.if proof-of-stake based blockchains are appropriatelydesigned, then one could avoid these challenges.

Yongge Wang

Page 68: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Poisoning Attack against Mining PoolsM.Ahmed, J.Wei, Y.Wang, and E.Al-Shaer

Attacks on crypto-currency mining poolsDeliberately introducing errors under benign miners’names, this attack can fool the mining pool administratorinto punishing innocent miner;when the top miners are punished, this attack cansignificantly slow down the overall production of the miningpool.An attacker needs only a small fraction (e.g, one millionth)of the resources of a victim mining pool,We confirm the effectiveness of this attack schem againstwell-known mining pools such as Minergate and SlushPool.

Yongge Wang

Page 69: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Poisoning Attack against Mining PoolsM.Ahmed, J.Wei, Y.Wang, and E.Al-Shaer

Attacks on crypto-currency mining poolsDeliberately introducing errors under benign miners’names, this attack can fool the mining pool administratorinto punishing innocent miner;when the top miners are punished, this attack cansignificantly slow down the overall production of the miningpool.An attacker needs only a small fraction (e.g, one millionth)of the resources of a victim mining pool,We confirm the effectiveness of this attack schem againstwell-known mining pools such as Minergate and SlushPool.

Yongge Wang

Page 70: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Poisoning Attack against Mining PoolsM.Ahmed, J.Wei, Y.Wang, and E.Al-Shaer

Attacks on crypto-currency mining poolsDeliberately introducing errors under benign miners’names, this attack can fool the mining pool administratorinto punishing innocent miner;when the top miners are punished, this attack cansignificantly slow down the overall production of the miningpool.An attacker needs only a small fraction (e.g, one millionth)of the resources of a victim mining pool,We confirm the effectiveness of this attack schem againstwell-known mining pools such as Minergate and SlushPool.

Yongge Wang

Page 71: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Poisoning Attack against Mining PoolsM.Ahmed, J.Wei, Y.Wang, and E.Al-Shaer

Attacks on crypto-currency mining poolsDeliberately introducing errors under benign miners’names, this attack can fool the mining pool administratorinto punishing innocent miner;when the top miners are punished, this attack cansignificantly slow down the overall production of the miningpool.An attacker needs only a small fraction (e.g, one millionth)of the resources of a victim mining pool,We confirm the effectiveness of this attack schem againstwell-known mining pools such as Minergate and SlushPool.

Yongge Wang

Page 72: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Poisoning Attack against Mining PoolsM.Ahmed, J.Wei, Y.Wang, and E.Al-Shaer

Attacks on crypto-currency mining poolsDeliberately introducing errors under benign miners’names, this attack can fool the mining pool administratorinto punishing innocent miner;when the top miners are punished, this attack cansignificantly slow down the overall production of the miningpool.An attacker needs only a small fraction (e.g, one millionth)of the resources of a victim mining pool,We confirm the effectiveness of this attack schem againstwell-known mining pools such as Minergate and SlushPool.

Yongge Wang

Page 73: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Cryptic Labs http://crypticlabs.org

We are building a unique combination of illustriouscryptography and security advisors, researchers andoutstanding blockchain practitioners to work on decentralizedand distributed trust. By combining cryptography and relatedsecurity researchers with blockchain practitioners and startups,we have the opportunity to perform a great service to thebusiness community and the world in general.

Yongge Wang

Page 74: Electronic Cash and Blockchain Security - Cyber Symposium€¦ · Electronic Cash and Blockchain Security Yongge Wang UNC Charlotte, USA October 15, 2018 Yongge Wang. UNCClogo.pdf

UNCClogo.pdf

BackgroundBitcoin

Ethereum and General Block Chain

Q&A

Q&A?

Yongge Wang