omniledger a secure scale out decentralized ledger via
play

OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding - PowerPoint PPT Presentation

OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding Lefteris Kokoris-Kogias (@LefKok) Decentralized and Distributed Systems Lab (DEDIS) Swiss Federal Institute of Technology Lausanne (EPFL) IEEE Security & Privacy 2018-05-22,


  1. OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding Lefteris Kokoris-Kogias (@LefKok) Decentralized and Distributed Systems Lab (DEDIS) Swiss Federal Institute of Technology Lausanne (EPFL) IEEE Security & Privacy 2018-05-22, San Fransisco

  2. Acknowledgements Philipp Jovanovic Linus Gasser Nicolas Gailly Ewa Syta Bryan Ford (EPFL, CH) (EPFL, CH) (EPFL, CH) (Trinity College, USA) (EPFL, CH) 2

  3. Talk Outline • Motivation • OmniLedger • Evaluation • Conclusion 3

  4. Blockchain, Blockchain, Blockchain • Bring transparency in the Digital World • Minimise (or eradicate) the need for trusted third parties • Cheaper and faster transactions against traditional methods (Banking) 4

  5. Bitcoin vs OmniLedger Bitcoin OmniLedger* Throughput ~4 TPS ~20.000 TPS 1-st Confirmation ~10 minutes ~1 second Full Security ~60 minutes ~42 second More Available No performance Linear Increase in Resources Gain Throughput * Configuration with 1120 validators against a 12.5% adversary 5

  6. Bitcoin vs OmniLedger Bitcoin OmniLedger* Throughput ~4 TPS ~20.000 TPS 1-st Confirmation ~10 minutes ~1 second Full Security ~60 minutes ~42 second More Available No performance Linear Increase in Resources Gain Throughput * Configuration with 1120 validators against a 12.5% adversary Scale-Out 6

  7. … But Scaling Blockchains is Not Easy 7

  8. Distributed Ledger Landscape Decentralization E. Kokoris Kogias et al., Enhancing L. Luu et al., A Secure Sharding Elastico Bitcoin Security and Performance with ByzCoin Protocol for Open Blockchains , Strong Consistency via Collective Signing , CCS 2016 USENIX Security 2016 OmniLedger RSCoin Scale-Out Security G. Danezis and S. Meiklejohn, Centrally Banked Cryptocurrencies , NDSS 2016 8

  9. No Scale-Out (Bitcoin) Blockchain 9

  10. Scale-Out (OmniLedger) • How do validators choose which blockchain to work on? • How can I pay a yellow vendor with greencoins? Double Throughput Shard Shard 10

  11. Random Validator Assignment • Let validators choose? —> All malicious validators can choose the same chain • Randomly assign validators? —> Preserve security for adequately large shard size 11

  12. Strawman: SimpleLedger Trusted randomness beacon Overview rnd e • Evolves in epochs e Validators • Trusted randomness beacon emits random value rnd e • Validators: ‣ Use rnd e to compute shard assignment 
 (ensures shard security) ‣ Process tx using consensus 
 Shard within one shard (ByzCoin) ledgers Shard 1 Shard 2 Shard 3 (ByzCoin group) (ByzCoin group) (ByzCoin group) 12

  13. Strawman: SimpleLedger Security Drawbacks • Randomness beacon: trusted third party • No tx processing during validator re-assignment • No cross-shard tx support Performance Drawbacks • ByzCoin failure mode • High storage and bootstrapping cost • Throughput vs. latency trade-off 13

  14. Talk Outline • Motivation • OmniLedger • Evaluation • Conclusion 14

  15. Roadmap SimpleLedger Sharding via distributed randomness Security Smooth epoch transitions Atomix: Atomic cross-shard txs ByzCoinX: Robust BFT consensus Performance Shard ledger pruning Trust-but-verify validation: Throughput / Latency trade-o ff OmniLedger 15

  16. Roadmap SimpleLedger Sharding via distributed randomness Security Smooth epoch transitions Atomix: Atomic cross-shard txs ByzCoinX: Robust BFT consensus Performance Shard ledger pruning Trust-but-verify validation: Throughput / Latency trade-o ff OmniLedger 16

  17. Shard Validator Assignment 1. Temp. leader election 
 2. Randomness generation 3. Shard assignment (Can be biased) (Output is unbiasable) (using rnd e ) Temp. leader Verifiable randomness rnd e RandHound* Validators Validators (sharded) * Syta, Ewa, et al. "Scalable bias-resistant distributed randomness." Oakland ‘17 17

  18. Roadmap SimpleLedger Sharding via distributed randomness Security Smooth epoch transitions Atomix: Atomic cross-shard txs ByzCoinX: Robust BFT consensus Performance Shard ledger pruning Trust-but-verify validation: Throughput / Latency trade-o ff OmniLedger 18

  19. Two-Phase Commit Coordinator Server Query to commit prepare / abort Commit / Rollback commit / abort 19

  20. Atomix: Cross-Shard Transactions Challenge: Cross-shard tx commit atomically or abort 
 • (1) Initialize (2) Lock (3a) Unlock to Commit eventually client client accept 1 cross-shard transaction tx commit accept 2 tx Solution: Atomix inputs outputs shard 1 shard 3 shard 2 Client-managed protocol • shard 1 shard 2 shard 3 shard 1 shard 2 shard 3 client tx (2) Lock (3b) Unlock to Abort 1. Client sends cross-shard tx to input tx client client shards accept 1 reclaim tx inputs reject 2 2. Collect ACK/ERR proofs from input shards shard 1 shard 2 shard 3 shard 1 shard 2 shard 3 shard 1 shard 2 shard 3 (a) If all input shards accept, commit to The Atomix protocol for secure cross-shard transactions output shard, otherwise (b) abort and reclaim input funds 20

  21. Roadmap SimpleLedger Sharding via distributed randomness Security Smooth epoch transitions Atomix: Atomic cross-shard txs ByzCoinX: Robust BFT consensus Performance Shard ledger pruning Trust-but-verify validation: Throughput / Latency trade-o ff OmniLedger 21

  22. Trust-but-Verify Transaction Validation Challenge: optimistically validated blocks Latency vs. throughput trade-off • finalized block tx Solution: Two-level “trust-but-verify” validation • tx clients sb j,e-1 Low latency: • shard ledger ‣ Optimistically validate transactions by tx (with state block) “insecure” shards core optimistic validators High throughput: • validators ‣ Batch optimistically validated blocks and audit by “secure” shards 22

  23. Talk Outline • Motivation • OmniLedger • Evaluation • Conclusion 23

  24. Implementation & Experimental Setup DeterLab Setup Implementation • 48 physical machines up • OmniLedger and its subprotocols to 1800 clients (ByzCoinX, Atomix, etc.) implemented ‣ Intel Xeon E5-2420 v2 
 in Go (6 cores @ 2.2 GHz) ‣ 24 GB RAM • Based on DEDIS code ‣ 10 Gbps network link ‣ Kyber crypto library ‣ Onet network library • Network restrictions (per ‣ client) Cothority framework ‣ 20 Mbps bandwidth • https://github.com/dedis ‣ 200 ms round-trip latency 24

  25. Evaluation: Scale-Out #validators (#shards) 70 (1) 140 (2) 280 (4) 560 (8) 1120 (16) OmniLedger (tx/sec) 439 869 1674 3240 5850 Bitcoin (tx/sec) ~4 ~4 ~4 ~4 ~4 Scale-out throughput for 12.5%-adversary and shard size 70 and 1200 validators 25

  26. Evaluation: Throughput Results for 1800 validators 26

  27. Evaluation: Latency Transaction confirmation latency in seconds for regular and mutli-level validation #shards, adversary 4, 1% 25, 5% 70, 12.5% 600, 25% 1 MB blocks regular validation 1.38 5.99 8.04 14.52 1st lvl. validation 1.38 1.38 1.38 4.48 500 KB blocks 2nd lvl. validation 1.38 55.89 41.89 62.96 16 MB blocks Bitcoin 600 600 600 600 latency increase since optimistically validated blocks are batched into larger blocks for final validation to get better throughput 27

  28. Talk Outline • Motivation • OmniLedger • Experimental Results • Conclusion 28

  29. Conclusion Epoch randomness rnd e (RandHound) Validators OmniLedger – Secure scale-out distributed ledger • framework ‣ Atomix: Client-managed cross-shard tx ‣ ByzCoinX: Robust intra-shard BFT consensus ‣ Sharding: Visa-level throughput and beyond Shard ‣ Trust-but-verify validation: No latency vs. 
 ledgers Shard 1 Shard 3 Shard 2 throughput tradeoff (ByzCoinX group) (ByzCoinX group) (ByzCoinX group) ‣ For PoW, PoS, permissioned, etc. tx 2,in Code: https://github.com/dedis • tx 1,in tx 3,out Contact : eleftherios.kokoriskogias@epfl.ch , @LefKok • Client (Atomix coordinator) 29

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend