Streamlet: A Textbook Blockchain Protocol Elaine Shi Joint work - - PowerPoint PPT Presentation

streamlet
SMART_READER_LITE
LIVE PREVIEW

Streamlet: A Textbook Blockchain Protocol Elaine Shi Joint work - - PowerPoint PPT Presentation

Streamlet: A Textbook Blockchain Protocol Elaine Shi Joint work with Benjamin Chan Blockchain (a.k.a. state machine replication, consensus) Blockchain (a.k.a. state machine replication, consensus) Consistency: Honest nodes agree on log


slide-1
SLIDE 1

Elaine Shi

Joint work with Benjamin Chan

Streamlet:

A Textbook Blockchain Protocol

slide-2
SLIDE 2

Blockchain

(a.k.a. state machine replication, consensus)

slide-3
SLIDE 3

Blockchain

(a.k.a. state machine replication, consensus)

Consistency:

Honest nodes agree on log

Liveness:

TXs are incorporated soon

slide-4
SLIDE 4

Apache Zookeeper

Blockchain: A 30-year-old Problem

slide-5
SLIDE 5

Cryptocurrencies brought consensus to a large scale

slide-6
SLIDE 6

Proof of work

slide-7
SLIDE 7

Proof of work

Enabled permissionless consensus

slide-8
SLIDE 8

Proof of work Proof of stake

slide-9
SLIDE 9

Proof of work Proof of stake

Rely on permissioned consensus

slide-10
SLIDE 10

PBFT Paxos

and variants

“Paxos Made Moderately Complex”

[ACM Computing Surveys’15]

“Paxos Made Simple” “The ABCDs of Paxos” [PODC’01] “RAFT: In search of an understandable consensus algorithm” [Usenix ATC’14]

… …

Consensus landscape 10 years ago

c.f. Theoretical approach: sequential/parallel composition of Byzantine Agreement Complex Difficult to understand Error-prone to implement

slide-11
SLIDE 11

Streamlet

Simple Natural Unified, for pedagogy & implementation

slide-12
SLIDE 12

epoch

7

epoch

8

epoch

10

epoch

12

  • Hash of parent
  • epoch #
  • TXs

Block Format and Epoch

slide-13
SLIDE 13

Streamlet

In every epoch e

  • leader(e):

Proposes a new block b extending longest notarized chain seen so far

  • everyone:

Votes for the first proposal b from leader(e) iff b extends a longest notarized chain seen so far

★ Assume: all msgs signed ★ Notarized block: voted by 2/3 processes ★ Notarized chain: all blocks notarized

slide-14
SLIDE 14

Streamlet Finalization Rule

Notarized chain ending with 3 adjacent blocks with consecutive epochs: all but the last are final

epoch

2

epoch

8

epoch

9

epoch

10

slide-15
SLIDE 15

Streamlet achieves consensus for < ⅓ corruptions

Propose-vote, propose-vote…

No recovery path

Other related work: Casper, Hotstuff, Pili,Pala, Dfinity...

Thank you!

Coming soon: new textbook

“Foundations of Blockchains and Distributed Consensus”