FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer...

41
FruitChains A Fair Blockchain

Transcript of FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer...

Page 1: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

FruitChainsA Fair Blockchain

Page 2: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

A single Block

Data: B

nonce

Page 3: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Blockchain

Genesisblock

…Data: A

nonce

Data: B

nonce

Page 4: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Add a block

Data: A

nonce

Data: B

nonce

Data: C

nonce

Data: C

nonce

Data: C

nonce

Data: C

noncePointer, Nonce and Data: C

solves the crypto puzzle

Page 5: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Distributed Setting

Genesisblock …

Data: A

nonce

Data: B

nonce

Genesisblock …

Data: A

nonce

Data: B

nonce

Genesisblock …

Data: A

nonce

Data: B

nonce

Alice

Bob Carol

Page 6: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Branches

B C

Page 7: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Branches

B C

D

F

Page 8: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Branches

B C

D

F G

Page 9: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Rewards (Bitcoin)

• Block Reward

• Transaction Fees

Page 10: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Mining Pools

Source: https://btc.com/stats/pool

Page 11: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Security Properties

Page 12: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Chain Consistency

Alice

Bob

A B C D E

A B C F G

k

Page 13: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Chain Growth

A B

A B C D

Time 𝑇0

Time 𝑇1, 𝑇1 > 𝑇0

Page 14: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Chain Quality

A B C D E F

Page 15: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack

Page 16: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack

Public Chain

Private Chain

B C

D

Page 17: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack

Public Chain

Private Chain

B C

D E

Page 18: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack

Public Chain

Private Chain

B C

D E

F

Page 19: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack

Public Chain

Private Chain

B C ED

Page 20: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack (Case 2)

Public Chain

Private Chain

B C

D

Page 21: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Selfish Mining Attack (Case 2)

Public Chain

Private Chain

B C

D

F

𝛾: fraction of honest players that mine on block D

Page 22: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Expected Revenue

• Optimal Selfish mining strategies in bitcoin (2016)• By Sapirshtein, Sompolinsky, Zohar

Page 23: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Expected revenue

𝛾 = 0 𝛾 = 1

Page 24: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

«Quick Fix» for Selfish Mining

𝛾 = 0.5

Page 25: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

FruitChains: A Fair blockchain

rewardComputational Power

Page 26: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

High-level view

B contains contains Data: A

Page 27: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Structure

B C ED

Page 28: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Structure

B C ED

Page 29: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Mining a Fruit/Block

Hash• Pointer to last block

• Pointer to a block far “enough” away

• Random nonce

• Hash of the set of recent fruits

• Data

JunkB

Page 30: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Fruit

• Verifies data

• Pointer to last block

• Pointer to a block far “enough” away

• Random nonce

• Hash of the set of recent fruits

• Data

Data

nonce

Page 31: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Block

• Verifies fruits

• Pointer to last block

• Pointer to a block far “enough” away

• Random nonce

• Hash of the set of recent fruits

• Data

nonce

Hash of fruits

Page 32: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

New Reward System

B C ED

k

Page 33: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Security Properties

Page 34: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Fruit “Freshness”

B C ED

Page 35: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Fruit Consistency

Alice

Bob

A B C D

A B C F

E

G

Page 36: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Fruit Growth

A B C

A B C D

Page 37: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Fruit Fairness

A B C D

Page 38: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Why does this work?

• Selfish Mining Attack

• Fruit Flooding

Page 39: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Disincentivise Mining Pools

Mining Pools

Partial Solutions

FruitChains

Reward mining fruits

Page 40: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

Conclusion

Page 41: FruitChains - ETH ZReferences •Bitcoin / Blockchain •Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)•Pass, Seeman, Shelat, Analysis of the blockchain protocol

References

• Bitcoin / Blockchain• Nakamoto, Bitcoin: A peer-to-peer electronic cash system (2008)

• Pass, Seeman, Shelat, Analysis of the blockchain protocol in asynchronous networks (2017)

• Selfish Mining Attack• Eyal, Sirer, Majority is not enough: Bitcoin mining is vulnerable (2014)

• Sapirshtein, Sompolinsky, Zohar, Optimal Selfish mining strategies in bitcoin (2016)

• FruitChains• Pass, Shi, FruitChains: A Fair Blockchain (2017)