StreamChain: Do Blockchains Need Blocks?
Zsolt István, Alessandro Sorniotti, Marko Vukolić
IMDEA Software IBM Research Zürich
StreamChain: Do Blockchains Need Blocks? Zsolt Istvn, Alessandro - - PowerPoint PPT Presentation
StreamChain: Do Blockchains Need Blocks? Zsolt Istvn, Alessandro Sorniotti , Marko Vukoli IMDEA Software IBM Research Zrich StreamChain in a nutshell Goal : Low latency and high throughput operation in permissioned ledgers for wider
IMDEA Software IBM Research Zürich
2
communication latency, gossip to keep everyone up to date
packaging up many TXs in blocks
use-cases
not necessary
3
Pain point: When executed inside the same datacenter, permissioned ledgers still take hundreds of milliseconds for transaction finality!
4
time T T 1 T 2 T 3 T 4 T 5 T 6 T 7 T 8 Compute hash + Sign S I G T T 1 T 2 T 3 T 4 T 5 T 6 T 7 T 8 time T T 1 T 2 T 3 T 4 T 5 T 6 T 7 T 8 Compute hash + Sign S I G T T 1 T 2 T 3 T 4 T 5 T 6 T 7 T 8 Input: Compute: Output: Input: Compute: Output:
a) “Block” behavior b) Streaming behavior
Extra latency
5
implementations for BFT
6
Peer Peer Peer Ord. Ord. Ord. CC
Peer
R/W set of the TX
7
Peer Peer Peer CC Ledger State KVS CC R/W R/W R/W Ordering
8
Peer Ledger State KVS CC R/W 100ms CC2 CC3
Peer
9
R/W Set Validation Write to Ledger Streaming Streaming Batching TXs from Orderer Pipelined execution of Validate step L S Endorsement of chain codes
signatures
10
11
TX # #
12
13
14
15
20 40 60 80 100 120 140 1000 2000 3000 4000 Committing Logic Latency (ms) Throughput (TX/s)
Fabric (Fabcoin) StreamChain P.o.C. Future expectation Throughput bound by R/W set check and ledger commit.
16
Birds of a Feather Session tomorrow: Consensus and coordination using modern hardware