CONSENSUS PROTOCOLS & BLOCKCHAINS. Techruption Lecture March 16 th, 2017 Maarten Everts (TNO & University of Twente)

Size: px
Start display at page:

Download "CONSENSUS PROTOCOLS & BLOCKCHAINS. Techruption Lecture March 16 th, 2017 Maarten Everts (TNO & University of Twente)"

Transcription

1 CONSENSUS PROTOCOLS & BLOCKCHAINS Techruption Lecture March 16 th, 2017 Maarten Everts (TNO & University of Twente)

2 2 Consensus protocols & blockchain

3 3 Consensus protocols & blockchain

4 4 Consensus protocols & blockchain

5 A shared truth /database/ledger 5 WP3 - Smart Contracts

6 6 WP3 - Smart Contracts Smart contract

7 CONCEPTUAL OVERVIEW BCT Application layer Transaction layer Consensus layer Network (P2P) layer Applications that use BCT (user-facing). Logic to decide whether transactions are valid. Algorithms and protocols to agree which transactions to add. Responsible for broadcasting information among nodes. 7 Consensus protocols & blockchain

8 CONCEPTUAL OVERVIEW BCT Application layer Applications that use BCT (user-facing). Transaction layer Smart contract Smart contract VM Logic to decide whether transactions are valid. Consensus layer Network (P2P) layer Algorithms and protocols to agree which transactions to add. Responsible for broadcasting information among nodes. 8 Consensus protocols & blockchain

9 CONCEPTUAL OVERVIEW BCT Application layer Applications that use BCT (user-facing). Transaction layer Smart contract Smart contract VM Logic to decide whether transactions are valid. Consensus layer Network (P2P) layer Algorithms and protocols to agree which transactions to add. Responsible for broadcasting information among nodes. 9 Consensus protocols & blockchain

10 Consensus layer Permissioned PBFT & family Permissionless proof-of-work 1 tendermint proof-of-stake 3 10 Consensus protocols & blockchain 2

11 CONSENSUS

12 tx tx tx tx tx tx Consensus: agreement on the order of the transactions in the ledger (database). tx tx tx tx tx tx 12 Consensus protocols & blockchain

13 13 Consensus protocols & blockchain Consensus: agreement on the order of the transactions in the ledger (database).

14 Consensus: agreement on the order of the transactions in the ledger (database). What if some network connections are cut? 14 Consensus protocols & blockchain

15 Consensus: agreement on the order of the transactions in the ledger (database). What if some of the communication channels are controlled by an attacker? 15 Consensus protocols & blockchain

16 Consensus: agreement on the order of the transactions in the ledger (database). What if some nodes are disconnected or crash? 16 Consensus protocols & blockchain

17 Consensus: agreement on the order of the transactions in the ledger (database). What if some nodes turn evil or are taken over by an attacker? 17 Consensus protocols & blockchain

18 DESIRABLE PROPERTIES FOR CONSENSUS Safety Nothing bad happens Liveness Something good will happen 18 Consensus protocols & blockchain

19 CONSENSUS TIMING MODELS Asynchronous Synchronous Eventually synchronous Each message that is sent is will eventually be delivered Any message sent at time T is delivered by time T+Δ Message sent at time T is delivered by time MAX(T+Δ,GST+Δ) for some unknown time GST (global stabilization time) 19 Consensus protocols & blockchain From: Andrew Miller, Cryptocurrency Security course

20 CONSENSUS FAULT MODELS Up to f nodes may fail. Honest/correct nodes Crash failures Byzantine failures

21 BYZANTINE GENERALS PROBLEM n generals want to agree on battle plan f of the generals are traitors n 3f Consensus protocols & blockchain Lamport et al, 1982

22 Timeline consensus research 22 Consensus protocols & blockchain From: Cryptocurrencies crash course, Aljosha Judmayer

23 Timeline consensus research 23 Consensus protocols & blockchain From: Cryptocurrencies crash course, Aljosha Judmayer

24 Timeline consensus research 24 Consensus protocols & blockchain From: Cryptocurrencies crash course, Aljosha Judmayer

25 consistency C Brewer s CAP theorem: pick two. A availability P partition-resiliance 25 Consensus protocols & blockchain

26 PROOF-OF-WORK

27 Ironically, with the current state of research, consensus in Bitcoin works better in practice than in theory. That is, we observe consensus working, but have not developed the theory to fully explain why it works. From: Bitcoin and Cryptocurrency Technologies, Narayanan et al. (2016) 27 Consensus protocols & blockchain

28 BLOCKCHAIN PLATFORMS USING PROOF-OF-WORK

29 A node can decide the content of the next block if it is the first to solve a specific puzzle. Block content (transactions) Block header Prev: H( ) Transactions: H( ) Nonce:. Prev: H( ) Transactions: H( ) Nonce: Puzzle properties: Easy to verify Difficult to compute Parameterizable difficulty 29 Consensus protocols & blockchain Potential next block

30 Anyone with (enough) computing power can participate: permissionless A node can decide the content of the next block if it is the first to solve a specific puzzle. Block content (transactions) Block header Prev: H( ) Transactions: H( ) Nonce:. Prev: H( ) Transactions: H( ) Nonce: In bitcoin: H( ) < threshold hash that starts with a number of zeros 30 Consensus protocols & blockchain Potential next block

31 mining Finding a block: simply trying many, many different Nonce values. Prev: H( ) Transactions: H( ) Nonce: Potential next block H( ) < threshold Threshold depends on difficulty, which adapts over time. Chance of finding a block: linear with amount of computing power. 31 Consensus protocols & blockchain

32 Chain with most work is considered authoritative. Probabilistic! 32 Consensus protocols & blockchain

33 33 Consensus protocols & blockchain

34 CPU GPU FPGA ASIC Gold pan Sluice box Placer mining Pit mining 34 Consensus protocols & blockchain From: Bitcoin and Cryptocurrency Technologies, Narayanan et al.

35 MINING CENTRALIZATION: POOLS 35 Consensus protocols & blockchain From:

36 PROOF-OF-WORK ENERGY CONSUMPTION Bitcoin hashrate: TH/s ASIC efficiency: 0.15 J/GH % of world energy consumption Price for censorship resistance? 36 Consensus protocols & blockchain From:

37 CONSENSUS, MINING, AND GAME THEORY Application layer Incentives Transaction layer Consensus layer Topic for a separate lecture? Network (P2P) layer 37 Consensus protocols & blockchain

38 RETHINKING PROOF-OF-WORK Puzzle properties: Easy to verify Difficult to compute Parameterizable difficulty Energy usage Proof-of-useful-work Proof-of-human-work Proof-of-space Proof-of-stake Centralization Non-outsourceable puzzles ASIC-resistant puzzles primecoin litecoin 38 Consensus protocols & blockchain

39 TOPICS NOT COVERED Confirmation speed & finality Consensus and hard & soft forks GHOST approach Ethereum s uncle blocks Attacks on proof-of-work 39 Consensus protocols & blockchain

40 PROOF-OF-STAKE

41 Peercoin Nxt Tezos

42 solution exchange Miner reward equipment energy From:

43 Stake/bond Miner (forger) reward From:

44 GENERAL IDEA Voting power ~ amount of stake Many variants, basic idea: H previous block id address timestamp < balance threshold 44 Consensus protocols & blockchain

45 POS POTENTIAL ADVANTAGES Less energy use Stakeholder incentives Centralization less of an issue (having an ASIC is no advantage) 51% attack potentially harder 45 Consensus protocols & blockchain

46 POS POTENTIAL ADVANTAGES Less energy use Stakeholder incentives Centralization less of an issue (having an ASIC is no advantage) 51% attack potentially harder However 46 Consensus protocols & blockchain

47 NOTHING AT STAKE PROBLEM Proof-of-work: miners need to choose which fork to divert resources to. 47 Consensus protocols & blockchain

48 NOTHING AT STAKE PROBLEM Proof-of-stake: mining a block is cheap, a miner can bet on multiple forks! 48 Consensus protocols & blockchain

49 NOTHING AT STAKE PROBLEM Proof-of-stake: mining a block is cheap, a miner can bet on multiple forks! No convergence/ consensus! + potential for double spending 49 Consensus protocols & blockchain

50 CHEAP HISTORY REWRITING 50 Consensus protocols & blockchain

51 CHEAP HISTORY REWRITING alternative history! 51 Consensus protocols & blockchain

52 CHECKPOINTS 52 Consensus protocols & blockchain

53 NOTHING AT STAKE COUNTER MEASURES Two blocks mined & signed by one entity (same stake used twice) Found two signatures for same block height? Claim reward + signer gets penalized. 53 Consensus protocols & blockchain See also: proposed slasher algorithm (ethereum)

54 PROOF-OF-STAKE R&D Academic work Ouroboros: A Provably Secure Proof-of-Stake Blockchain Protocol - Aggelos Kiayias, Alexander Russell, Bernardo David and Roman Oliynykov (2016) IACR eprint: Snow White: Provably Secure Proofs of Stake - Iddo Bentov, Rafael Pass and Elaine Shi (2016) IACR eprint: Casper 54 Consensus protocols & blockchain

55 PERMISSIONED CONSENSUS ALGORITHMS

56 PERMISSIONED BLOCKCHAINS Quorum

57 Timeline consensus research 57 Consensus protocols & blockchain From: Cryptocurrencies crash course, Aljosha Judmayer

58 Timeline consensus research 58 Consensus protocols & blockchain From: Cryptocurrencies crash course, Aljosha Judmayer

59 Timeline consensus research 59 Consensus protocols & blockchain From: Cryptocurrencies crash course, Aljosha Judmayer

60 SETTING Permissioned: all participants are known. All nodes communicate with all other nodes 60 Consensus protocols & blockchain

61 SETTING Typical approach: Nodes elect a leader. 61 Consensus protocols & blockchain

62 RAFT 62 Consensus protocols & blockchain

63 RAFT 63 Consensus protocols & blockchain

64 PBFT First practical byzantine fault tolerant consensus protocol (1999) State machine replication Weakly synchronous Communication complexity of O n 2 Make scaling to many nodes hard! 64 Consensus protocols & blockchain

65 From: Cryptocurrencies crash course, Aljosha Judmayer PoW BFT Node identity Open/permisionless Permissioned Consensus finality No (probabilistic) Yes Scalability (#nodes) Thousands Limited (n 20?) Scalability (#clients) Thousands Thousands Performance (throughput) Limited Excellent Performance (latency) High Low Power consumption High Standard Tolerated power of adversary 25% computing power 33% voting power Correctness proofs? Yes 65 Consensus protocols & blockchain

66 RECENT RESEARCH: HONEY BADGER BFT PBFT has network timing assumptions, Honey Badger BFT does not (asynchronous) Robust, always makes progress (liveness) Well suited for distributed ledgers/blockchains Advanced cryptography Tested over Tor The Honey Badger of BFT Protocols - Andrew Miller, Yu Xia, Kyle Croman, Elaine Shi,and Dawn Song, CCS 2016 IACR eprint: Code available on Github: 66 Consensus protocols & blockchain

67 HYBRID APPROACHES Proof-of-work process to select committee High throughput transaction consensus by committee with PBFT-like algorithm. 67 Consensus protocols & blockchain

68 CHOOSING A CONSENSUS MECHANISM No trust Fully trusted 68 Consensus protocols & blockchain

69 CHOOSING A CONSENSUS MECHANISM No trust Fully trusted Latency? Finality? #nodes? Throughput? 69 Consensus protocols & blockchain

70 CONCEPTUAL OVERVIEW BCT Application layer Applications that use BCT (user-facing). Transaction layer Smart contract Smart contract VM Logic to decide whether transactions are valid. Consensus layer Network (P2P) layer Algorithms and protocols to agree which transactions to add. Responsible for broadcasting information among nodes. 70 Consensus protocols & blockchain

71 Consensus layer Permissioned PBFT & family Permissionless proof-of-work 1 tendermint proof-of-stake 3 71 Consensus protocols & blockchain 2

72 CONSENSUS ALGORITHMS Maarten Everts

73 FURTHER READING The Quest for Scalable Blockchain Fabric: Proof-of-Work vs. BFT Replication - Marko Vukolic Secure High-Rate Transaction Processing in Bitcoin - Yonatan Sompolinsky and Aviv Zohar

74 ACKNOWLEDGEMENTS & SOURCES Background images: Inspiration and images: 74 Consensus protocols & blockchain

Data Consistency and Blockchain. Bei Chun Zhou (BlockChainZ)

Data Consistency and Blockchain. Bei Chun Zhou (BlockChainZ) Data Consistency and Blockchain Bei Chun Zhou (BlockChainZ) beichunz@cn.ibm.com 1 Data Consistency Point-in-time consistency Transaction consistency Application consistency 2 Strong Consistency ACID Atomicity.

More information

Cryptocurrency and Blockchain Research

Cryptocurrency and Blockchain Research Cryptocurrency and Blockchain Research CHANATHIP NAMPREMPRE, PH.D. 1 Agenda Recall bitcoin consensus protocol Components of bitcoin consensus protocol Variations on the same theme Beware of snake oil Solution:

More information

Alternative Consensus

Alternative Consensus 1 Alternative Consensus DEEP DIVE Alexandra Tran, Dev Ojha, Jeremiah Andrews, Steven Elleman, Ashvin Nihalani 2 TODAY S AGENDA GETTING STARTED 1 INTRO TO CONSENSUS AND BFT 2 NAKAMOTO CONSENSUS 3 BFT ALGORITHMS

More information

Hyperledger fabric: towards scalable blockchain for business

Hyperledger fabric: towards scalable blockchain for business Marko Vukolić, IBM Research - Zurich Hyperledger fabric: towards scalable blockchain for business Trust in Digital Life The Hague, Netherlands, June 17 2016 Blockchain shared, replicated, ledger Consensus

More information

Hyperledger Fabric v1:

Hyperledger Fabric v1: Marko Vukolić, IBM Research - Zurich May 4, 2017 Hyperledger Fabric v1: Rethinking Permissioned Blockchains Blockchain: du Bitcoin au Smart Contract 4 Mai 2017 2017 IBM Corporation What is a Blockchain?

More information

hard to perform, easy to verify

hard to perform, easy to verify Proof of Stake The Role of PoW Bitcoin, Ethereum and similar systems are open, permissionless networks Anyone can participate The system must agree on some canonical order of transactions Think of this

More information

Introduction to Cryptoeconomics

Introduction to Cryptoeconomics Introduction to Cryptoeconomics What is cryptoeconomics? Cryptoeconomics is about... Building systems that have certain desired properties Use cryptography to prove properties about messages that happened

More information

SCP: A Computationally Scalable Byzantine Consensus Protocol for Blockchains

SCP: A Computationally Scalable Byzantine Consensus Protocol for Blockchains SCP: A Computationally Scalable Byzantine Consensus Protocol for Blockchains Loi Luu, Viswesh Narayanan, Kunal Baweja, Chaodong Zheng, Seth Gilbert, Prateek Saxena National University of Singapore Bitcoin

More information

Lecture 12. Algorand

Lecture 12. Algorand Lecture 12 Algorand Proof-of-Stake Virtual Mining Proof of Stake Bitcoin uses proof of work to address sybil attacks and implement consensus Philosophy: Chance of winning in a block mining round proportional

More information

CS 4770: Cryptography. CS 6750: Cryptography and Communication Security. Alina Oprea Associate Professor, CCIS Northeastern University

CS 4770: Cryptography. CS 6750: Cryptography and Communication Security. Alina Oprea Associate Professor, CCIS Northeastern University CS 4770: Cryptography CS 6750: Cryptography and Communication Security Alina Oprea Associate Professor, CCIS Northeastern University April 9 2018 Schedule HW 4 Due on Thu 04/12 Programming project 3 Due

More information

Proof of Stake Made Simple with Casper

Proof of Stake Made Simple with Casper Proof of Stake Made Simple with Casper Olivier Moindrot ICME, Stanford University olivierm@stanford.edu Charles Bournhonesque ICME, Stanford University cbournho@stanford.edu Abstract We study the recent

More information

OUROBOROS PRAOS: AN ADAPTIVELY-SECURE, SEMI-SYNCHRONOUS

OUROBOROS PRAOS: AN ADAPTIVELY-SECURE, SEMI-SYNCHRONOUS OUROBOROS PRAOS: AN ADAPTIVELY-SECURE, SEMI-SYNCHRONOUS PROOF-OF-STAKE BLOCKCHAIN Bernardo David Tokyo Tech & IOHK Peter Gaži IOHK Aggelos Kiayias U. Edinburgh & IOHK Eurocrypt 2018 Alexander Russell U.

More information

Candidates Day Modeling the Energy Consumption of. Ryan Cole Liang Cheng. CSE Department Lehigh University

Candidates Day Modeling the Energy Consumption of. Ryan Cole Liang Cheng. CSE Department Lehigh University Candidates Day 2016 Modeling the Energy Consumption of Blockchain Consensus Algorithms Daniel Lopresti, Interim Dean P.C. Rossin College of Engineering and Applied Science July 30, April 15,2018 2016 Ryan

More information

Blockchains & Cryptocurrencies

Blockchains & Cryptocurrencies 1 Blockchains & Cryptocurrencies A Technical Introduction Lorenz Breidenbach ETH Zürich Cornell Tech The Initiative for CryptoCurrencies & Contracts (IC3) 2 Cryptocurrency Mania Market cap as of yesterday:

More information

Transactions Between Distributed Ledgers

Transactions Between Distributed Ledgers Transactions Between Distributed Ledgers Ivan Klianev Transactum Pty Ltd High Performance Transaction Systems Asilomar, California, 8-11 October 2017 The Time for Distributed Transactions Has Come Thanks

More information

Formally Specifying Blockchain Protocols

Formally Specifying Blockchain Protocols Formally Specifying Blockchain Protocols 1 IOHK company building blockchain applications research focused invested in functional programming built Cardano network, Ada cryptocurrency 2 Blockchain Protocols

More information

BlockFin A Fork-Tolerant, Leaderless Consensus Protocol April

BlockFin A Fork-Tolerant, Leaderless Consensus Protocol April BlockFin A Fork-Tolerant, Leaderless Consensus Protocol April 2018 @storecoin What are the most desirable features in a blockchain? Scalability (throughput) and decentralization (censorship resistance),

More information

Bitcoin and Blockchain

Bitcoin and Blockchain Bitcoin and Blockchain COS 418: Distributed Systems Lecture 18 Zhenyu Song [Credit: Selected content adapted from Michael Freedman. Slides refined by Chris Hodsdon and Theano Stavrinos] Why Bitcoin? All

More information

A Lightweight Blockchain Consensus Protocol

A Lightweight Blockchain Consensus Protocol A Lightweight Blockchain Consensus Protocol Keir Finlow-Bates keir@chainfrog.com Abstract A lightweight yet deterministic and objective consensus protocol would allow blockchain systems to be maintained

More information

ENEE 457: E-Cash and Bitcoin

ENEE 457: E-Cash and Bitcoin ENEE 457: E-Cash and Bitcoin Charalampos (Babis) Papamanthou cpap@umd.edu Money today Any problems? Cash is cumbersome and can be forged Credit card transactions require centralized online bank are not

More information

Ethereum. Campbell R. Harvey* Duke University and NBER. Ashwin Ramachandran Duke University. Brent Xu ConsenSys. Innovation and Cryptoventures

Ethereum. Campbell R. Harvey* Duke University and NBER. Ashwin Ramachandran Duke University. Brent Xu ConsenSys. Innovation and Cryptoventures Innovation and Cryptoventures Ethereum Campbell R. Harvey* Duke University and NBER Ashwin Ramachandran Duke University Brent Xu ConsenSys February 12, 2018 1 2 Overview Ethereum Basics Under the hood

More information

Algorithms for and against the Cloud

Algorithms for and against the Cloud ETH Zurich Distributed Computing Group Algorithms for and against the Cloud Roger Wattenhofer Disclaimer OSDI SenSys AAAI HotNets STOC SPAA FOCS PODC ICALP Mobicom SIGCOMM SODA EC Algorithms for the Cloud

More information

Technical White Paper of. MOAC Mother of All Chains. June 8 th, 2017

Technical White Paper of. MOAC Mother of All Chains. June 8 th, 2017 Technical White Paper of MOAC Mother of All Chains June 8 th, 2017 [Abstract] MOAC is to design a scalable and resilient Blockchain that supports transactions, data access, control flow in a layered structure.

More information

SmartPool: practical decentralized pool mining. Loi Luu, Yaron Velner, Jason Teutsch, and Prateek Saxena August 18, 2017

SmartPool: practical decentralized pool mining. Loi Luu, Yaron Velner, Jason Teutsch, and Prateek Saxena August 18, 2017 SmartPool: practical decentralized pool mining Loi Luu, Yaron Velner, Jason Teutsch, and Prateek Saxena August 18, 2017 Mining pools Miners role in cryptocurrencies Definition: A cryptocurrency is a decentralized

More information

Hybrid Consensus. Tai-Ning Liao, Xian-Ming Pan, Zhao-Heng Chiu, Imu Lin 1/65

Hybrid Consensus. Tai-Ning Liao, Xian-Ming Pan, Zhao-Heng Chiu, Imu Lin 1/65 Hybrid Consensus Tai-Ning Liao, Xian-Ming Pan, Zhao-Heng Chiu, Imu Lin Hybrid Consensus: Efficient Consensus in the Permissionless Model, 2017, Rafael Pass and Elaine Shi CornellTech, Cornell, Initiative

More information

Blockchain, Cryptocurrency, Smart Contracts and Initial Coin Offerings: A Technical Perspective

Blockchain, Cryptocurrency, Smart Contracts and Initial Coin Offerings: A Technical Perspective SESSION ID: LAB3-R09 Blockchain, Cryptocurrency, Smart Contracts and Initial Coin Offerings: A Technical Perspective Tom Plunkett Consulting Solutions Director Oracle Captain Brittany Snelgrove United

More information

Analyzing Bitcoin Security. Philippe Camacho

Analyzing Bitcoin Security. Philippe Camacho Analyzing Bitcoin Security Philippe Camacho philippe.camacho@dreamlab.net Universidad Católica, Santiago de Chile 15 of June 2016 Bitcoin matters Map Blockchain Design Known Attacks Security Models Double

More information

The Thunder Protocol

The Thunder Protocol The Thunder Protocol Rafael Pass and Elaine Shi Thunder Research 1 Introduction In this white paper, we introduce the Thunder protocol, a new and provably secure consensus protocol, which overcomes the

More information

Blockchain, cryptography, and consensus

Blockchain, cryptography, and consensus ITU Workshop on Security Aspects of Blockchain (Geneva, Switzerland, 21 March 2017) Blockchain, cryptography, and consensus Dr. Christian Cachin IBM Research - Zurich www.zurich.ibm.com/~cca/ Geneva, Switzerland,

More information

Blockchain. CS 240: Computing Systems and Concurrency Lecture 20. Marco Canini

Blockchain. CS 240: Computing Systems and Concurrency Lecture 20. Marco Canini Blockchain CS 240: Computing Systems and Concurrency Lecture 20 Marco Canini Credits: Michael Freedman and Kyle Jamieson developed much of the original material. Bitcoin: 10,000 foot view New bitcoins

More information

The security and insecurity of blockchains and smart contracts

The security and insecurity of blockchains and smart contracts The security and insecurity of blockchains and smart contracts Jean-Pierre Flori, expert in cryptography, Agence Nationale de la Sécurité des Systèmes d Information (ANSSI) In J.P. Dardayrol, editor of

More information

The Not-So-Short ZILLIQA Technical FAQ

The Not-So-Short ZILLIQA Technical FAQ The Not-So-Short ZILLIQA Technical FAQ [Version 0.1] The ZILLIQA Team & The ZILLIQA Community www.zilliqa.com enquiry@zilliqa.com @zilliqa December 28, 2017 Abstract This document is a compilation of questions

More information

How Bitcoin achieves Decentralization. How Bitcoin achieves Decentralization

How Bitcoin achieves Decentralization. How Bitcoin achieves Decentralization Centralization vs. Decentralization Distributed Consensus Consensus without Identity, using a Block Chain Incentives and Proof of Work Putting it all together Centralization vs. Decentralization Distributed

More information

Consensus & Blockchain

Consensus & Blockchain Consensus & Blockchain S P Suresh Chennai Mathematical Institute Formal Methods Update Meeting IIT Mandi July 17, 2017 The Bitcoin revolution is upon us What is Bitcoin? Bitcoin: an exciting new currency

More information

CS 4770: Cryptography. CS 6750: Cryptography and Communication Security. Alina Oprea Associate Professor, CCIS Northeastern University

CS 4770: Cryptography. CS 6750: Cryptography and Communication Security. Alina Oprea Associate Professor, CCIS Northeastern University CS 4770: Cryptography CS 6750: Cryptography and Communication Security Alina Oprea Associate Professor, CCIS Northeastern University March 30 2017 Outline Digital currencies Advantages over paper cash

More information

Algorand: Scaling Byzantine Agreements for Cryptocurrencies

Algorand: Scaling Byzantine Agreements for Cryptocurrencies Algorand: Scaling Byzantine Agreements for Cryptocurrencies Yossi Gilad, Rotem Hemo, Silvio Micali, Georgios Vlachos, Nickolai Zeldovich Presented by: Preet Patel and Umang Lathia Outline Overview of Distributed

More information

Blockchain for Enterprise: A Security & Privacy Perspective through Hyperledger/fabric

Blockchain for Enterprise: A Security & Privacy Perspective through Hyperledger/fabric Blockchain for Enterprise: A Security & Privacy Perspective through Hyperledger/fabric Elli Androulaki Staff member, IBM Research, Zurich Workshop on cryptocurrencies Athens, 06.03.2016 Blockchain systems

More information

Alternative Consensus Algorithms. Murat Osmanoglu

Alternative Consensus Algorithms. Murat Osmanoglu Alternative Consensus Algorithms Murat Osmanoglu Bitcoin Block i-1 Block i Block i+1 Hash i-2 Nonce i-1 Hash i-1 Nonce i Hash i Nonce i+1 tx tx tx tx tx tx tx tx tx tx tx tx Do you really need a Blockchain?

More information

Lecture 3. Introduction to Cryptocurrencies

Lecture 3. Introduction to Cryptocurrencies Lecture 3 Introduction to Cryptocurrencies Public Keys as Identities public key := an identity if you see sig such that verify(pk, msg, sig)=true, think of it as: pk says, [msg] to speak for pk, you must

More information

SOME OF THE PROBLEMS IN BLOCKCHAIN TODAY

SOME OF THE PROBLEMS IN BLOCKCHAIN TODAY BLOCKCHAIN EVOLVED THE PROBLEM SOME OF THE PROBLEMS IN BLOCKCHAIN TODAY An overall lack of governance is one of the most challenging facets of current blockchain ecosystems Controversy regarding scalability

More information

I. Introduction. II. Security, Coinage and Attacks

I. Introduction. II. Security, Coinage and Attacks Abstract Proof of Stake's security has proven itself over years of testing. Advances in this technology in Blackcoin's Proof-of-Stake 3.0 have solved the issues faced with Coin-Age, Block Reward and Blockchain

More information

Computer Security. 14. Blockchain & Bitcoin. Paul Krzyzanowski. Rutgers University. Spring 2019

Computer Security. 14. Blockchain & Bitcoin. Paul Krzyzanowski. Rutgers University. Spring 2019 Computer Security 14. Blockchain & Bitcoin Paul Krzyzanowski Rutgers University Spring 2019 April 15, 2019 CS 419 2019 Paul Krzyzanowski 1 Bitcoin & Blockchain Bitcoin cryptocurrency system Introduced

More information

Security Analysis of Bitcoin. Dibyojyoti Mukherjee Jaswant Katragadda Yashwant Gazula

Security Analysis of Bitcoin. Dibyojyoti Mukherjee Jaswant Katragadda Yashwant Gazula Security Analysis of Bitcoin Dibyojyoti Mukherjee Jaswant Katragadda Yashwant Gazula Security Analysis of Bitcoin Introduction How Bitcoin works? Similar peer-to-peer systems Vulnerabilities and solutions

More information

A Byzantine Fault-Tolerant Ordering Service for the Hyperledger Fabric Blockchain Platform

A Byzantine Fault-Tolerant Ordering Service for the Hyperledger Fabric Blockchain Platform A Byzantine Fault-Tolerant Ordering Service for the Hyperledger Fabric Blockchain Platform João Sousa, Alysson Bessani, Marko Vukolić* Faculdade de Ciências, Universidade de Lisboa *IBM Research Zurich

More information

Proof-of-Work & Bitcoin

Proof-of-Work & Bitcoin CS 220: Introduction to Parallel Computing Proof-of-Work & Bitcoin Lecture 19 Bitcoin: Mining for Heat https://qz.com/1117836/bitcoin-mining-heatshomes-for-free-in-siberia/ 4/25/18 CS 220: Parallel Computing

More information

Sharding. Making blockchains scalable, decentralized and secure.

Sharding. Making blockchains scalable, decentralized and secure. Sharding Making blockchains scalable, decentralized and secure. The Scalability Triangle Scalability Decentralization Semi-formally defining these properties Assume the total computational/bandwidth capacity

More information

What is Proof of Work?

What is Proof of Work? What is Proof of Work? Educational Series September 18, 2018 Overview There are many protocols that regulate how nodes on a blockchain achieve consensus, and currently the most popular is proof-of-work.

More information

Bitcoin. CS6450: Distributed Systems Lecture 20 Ryan Stutsman

Bitcoin. CS6450: Distributed Systems Lecture 20 Ryan Stutsman Bitcoin CS6450: Distributed Systems Lecture 20 Ryan Stutsman Material taken/derived from Princeton COS-418 materials created by Michael Freedman and Kyle Jamieson at Princeton University. Licensed for

More information

Blockchain Beyond Bitcoin. Mark O Connell

Blockchain Beyond Bitcoin. Mark O Connell Mark O Connell mark@mkoconnell.com SNIA Legal Notice The material contained in this tutorial is copyrighted by the SNIA unless otherwise noted. Member companies and individual members may use this material

More information

Practical Byzantine Fault Tolerance. Miguel Castro and Barbara Liskov

Practical Byzantine Fault Tolerance. Miguel Castro and Barbara Liskov Practical Byzantine Fault Tolerance Miguel Castro and Barbara Liskov Outline 1. Introduction to Byzantine Fault Tolerance Problem 2. PBFT Algorithm a. Models and overview b. Three-phase protocol c. View-change

More information

RapidChain: Scaling Blockchain via Full Sharding

RapidChain: Scaling Blockchain via Full Sharding RapidChain: Scaling Blockchain via Full Sharding Mahdi Zamani Visa Research Join work with Mahnush Movahedi, Dfinity Mariana Raykova, Yale University Stanford Blockchain Seminar August 2018 Agenda! Part

More information

The ZILLIQA Technical Whitepaper

The ZILLIQA Technical Whitepaper The ZILLIQA Technical Whitepaper [Version 0.1] August 10, 2017 The ZILLIQA Team www.zilliqa.com enquiry@zilliqa.com @zilliqa Abstract Existing cryptocurrencies and smart contract platforms are known to

More information

A Blockchain-based Mapping System

A Blockchain-based Mapping System A Blockchain-based Mapping System IETF 98 Chicago March 2017 Jordi Paillissé, Albert Cabellos, Vina Ermagan, Fabio Maino jordip@ac.upc.edu http://openoverlayrouter.org 1 A short Blockchain tutorial 2 Blockchain

More information

An Introduction to Blockchain and Distributed Ledger Technology

An Introduction to Blockchain and Distributed Ledger Technology An Introduction to Blockchain and Distributed Ledger Technology Ron van der Meyden UNSW School of Computer Science and Engineering The source of the buzz Bitcoin: A Peer-to-Peer Electronic Cash System,

More information

Proof of Luck: an Efficient Blockchain Consensus Protocol

Proof of Luck: an Efficient Blockchain Consensus Protocol Proof of Luck: an Efficient Blockchain Consensus Protocol ABSTRACT Mitar Milutinovic mitar@cs.berkeley.edu Howard Wu howardwu@berkeley.edu In the paper, we present designs for multiple blockchain consensus

More information

Problem: Equivocation!

Problem: Equivocation! Bitcoin: 10,000 foot view Bitcoin and the Blockchain New bitcoins are created every ~10 min, owned by miner (more on this later) Thereafter, just keep record of transfers e.g., Alice pays Bob 1 BTC COS

More information

Distributed Ledger Technology & Fintech Applications. Hart Montgomery, NFIC 2017

Distributed Ledger Technology & Fintech Applications. Hart Montgomery, NFIC 2017 Distributed Ledger Technology & Fintech Applications Hart Montgomery, NFIC 2017 Let s consider a common scenario: Banks want to trade some asset class Participants in the market want to be able to efficiently

More information

Blockchain, cryptography, and consensus

Blockchain, cryptography, and consensus Blockchain, cryptography, and consensus Christian Cachin (with Elli Androulaki, Angelo De Caro, Andreas Kind, Mike Osborne, Simon Schubert, Alessandro Sorniotti, Marko Vukolic and many more) IBM Research

More information

Dfinity Consensus, Explored

Dfinity Consensus, Explored Dfinity Consensus, Explored Ittai Abraham, Dahlia Malkhi, Kartik Nayak, and Ling Ren VMware Research {iabraham,dmalkhi,nkartik,lingren}@vmware.com Abstract. We explore a Byzantine Consensus protocol called

More information

arxiv:submit/ [cs.cr] 18 Oct 2017

arxiv:submit/ [cs.cr] 18 Oct 2017 Casper the Friendly Finality Gadget Vitalik Buterin and Virgil Griffith Ethereum Foundation arxiv:submit/2040540 [cs.cr] 18 Oct 2017 Abstract We introduce Casper, a proof of stake-based finality system

More information

REM: Resource Efficient Mining for Blockchains

REM: Resource Efficient Mining for Blockchains REM: Resource Efficient Mining for Blockchains Fan Zhang, Ittay Eyal, Robert Escriva, Ari Juels, Robbert van Renesse Vancouver, Canada 13 September 2017 USENIX Security 2017 1 The Cryptocurrency Vision

More information

Practical Byzantine Fault Tolerance Consensus and A Simple Distributed Ledger Application Hao Xu Muyun Chen Xin Li

Practical Byzantine Fault Tolerance Consensus and A Simple Distributed Ledger Application Hao Xu Muyun Chen Xin Li Practical Byzantine Fault Tolerance Consensus and A Simple Distributed Ledger Application Hao Xu Muyun Chen Xin Li Abstract Along with cryptocurrencies become a great success known to the world, how to

More information

Distributed Consensus Protocols and Algorithms

Distributed Consensus Protocols and Algorithms Chapter 1 Distributed Consensus Protocols and Algorithms Yang Xiao, Ning Zhang, Jin Li, Wenjing Lou, Y. Thomas Hou Edit: This manuscript was built with L A TEX documentclass[11pt]{book}. The titles marked

More information

SpaceMint Overcoming Bitcoin s waste of energy

SpaceMint Overcoming Bitcoin s waste of energy Bitcoin Overcoming Bitcoin s waste of energy Georg Fuchsbauer joint work with S Park, A Kwon, K Pietrzak, J Alwen and P Gaži Digital currency Decentralized (no bank issuing coins) Pseudonymous Controled

More information

Key concepts of blockchain

Key concepts of blockchain Advisory A brief history of blockchains 2008 The mysterious Satoshi Nakamoto publishes his Bitcoin white paper 2014 2017 Nov. 23 rd Ethereum crowd sale Number of crypto tokens: 1.172 BTC $8.216 The first

More information

BYZANTINE CONSENSUS THROUGH BITCOIN S PROOF- OF-WORK

BYZANTINE CONSENSUS THROUGH BITCOIN S PROOF- OF-WORK Informatiemanagement: BYZANTINE CONSENSUS THROUGH BITCOIN S PROOF- OF-WORK The aim of this paper is to elucidate how Byzantine consensus is achieved through Bitcoin s novel proof-of-work system without

More information

ABOUT SOME OF THE BLOCKCHAIN PROBLEMS

ABOUT SOME OF THE BLOCKCHAIN PROBLEMS ABOUT SOME OF THE BLOCKCHAIN PROBLEMS A.V. Bogdanov 1, A.B. Degtyarev 1, V.V. Korkhov 1, M. Kamande 1, O.O. Iakushkin 1, V. Khvatov 2 1 Saint Petersburg State University, 7/9 Universitetskaya nab., St.

More information

Reliability, distributed consensus and blockchain COSC412

Reliability, distributed consensus and blockchain COSC412 Reliability, distributed consensus and blockchain COSC412 Learning objectives Encourage you to always design for failure Appreciate how decentralised consensus is useful to support principles of security

More information

Harmony Open Consensus for 10B People

Harmony Open Consensus for 10B People Harmony Open Consensus for 10B People @ 10M tx/sec, 100ms latency, 0.1% fee Let s build an open marketplace at Google-scale. To 1,000x the decentralized economy. By speed & incentives. 2 State of Research:

More information

International Journal of Computer Engineering and Applications, Volume XIII, Issue II, Feb. 19, ISSN

International Journal of Computer Engineering and Applications, Volume XIII, Issue II, Feb. 19,   ISSN BLOCK-CHAIN: SURVEY ON PRIVACY, SECURITY AND CHALLENGES Monalisha Sinha ABSTRACT: Department of computer science & engineering Birla institute of technology Ranchi, India Blockchain has gained wide attention

More information

Alternatives to Blockchains. Sarah Meiklejohn (University College London)

Alternatives to Blockchains. Sarah Meiklejohn (University College London) Alternatives to Blockchains Sarah Meiklejohn (University College London) fully decentralized cryptocurrencies 2 fully decentralized cryptocurrencies tx tx(addra addrb) 2 fully decentralized cryptocurrencies

More information

ROUND COMPLEXITY LOWER BOUND OF ISC PROTOCOL IN THE PARALLELIZABLE MODEL. Huijing Gong CMSC 858F

ROUND COMPLEXITY LOWER BOUND OF ISC PROTOCOL IN THE PARALLELIZABLE MODEL. Huijing Gong CMSC 858F ROUND COMPLEXITY LOWER BOUND OF ISC PROTOCOL IN THE PARALLELIZABLE MODEL Huijing Gong CMSC 858F Overview Background Byzantine Generals Problem Network Model w/o Pre-existing Setup ISC Protocol in Parallelizable

More information

Solida: A Blockchain Protocol Based on Reconfigurable Byzantine Consensus

Solida: A Blockchain Protocol Based on Reconfigurable Byzantine Consensus Solida: A Blockchain Protocol Based on Reconfigurable Byzantine Consensus Ittai Abraham 1, Dahlia Malkhi 2, Kartik Nayak 3, Ling Ren 4, and Alexander Spiegelman 5 1 VMware Research, Palo Alto, USA iabraham@vmware.com

More information

Ergo platform. Dmitry Meshkov

Ergo platform. Dmitry Meshkov Ergo platform Dmitry Meshkov Prehistory Motivation Theory Practice Provably secure 1000 currencies New features Ad-hoc solutions Impractical Security issues Motivation Theory Provably secure New features

More information

Enhanced Immutability of Permissioned Blockchain Networks by Tethering Provenance with a Public Blockchain Network

Enhanced Immutability of Permissioned Blockchain Networks by Tethering Provenance with a Public Blockchain Network Enhanced Immutability of Permissioned Blockchain Networks by Tethering Provenance with a Public Blockchain Network Abstract Azeem Ahmed (azeem.ahmed@consensys.net) Jim Zhang (jim.zhang@consensys.net) Permissioned

More information

Proof-of-Stake Protocol v3.0

Proof-of-Stake Protocol v3.0 Proof-of-Stake Protocol v3.0 Abstract Proof of Stake's security has proven itself reliable & effective over years of testing while at the same time solving Bitcoin s issues caused by the Proof of Work

More information

Bitcoin, a decentralized and trustless protocol

Bitcoin, a decentralized and trustless protocol Bitcoin, a decentralized and trustless protocol Thomas Sibut-Pinote Inria Saclay February 12, 2015 Thomas Sibut-Pinote Bitcoin, a decentralized and trustless protocol 1 / 42 Introduction Questions 1 Introduction

More information

Solana: A new architecture for a high performance blockchain v0.8.13

Solana: A new architecture for a high performance blockchain v0.8.13 Solana: A new architecture for a high performance blockchain v0.8.13 Anatoly Yakovenko anatoly@solana.io Legal Disclaimer Nothing in this White Paper is an offer to sell, or the solicitation of an offer

More information

Introduce A mobile and decentral Proof-of-Transaction crypto coin

Introduce A mobile and decentral Proof-of-Transaction crypto coin TAU True Asset Unit Introduce A mobile and decentral Proof-of-Transaction crypto coin Version 0.7 - on going imorpheus, genie854, Constantine Pappas and Zi Ren Teoh Jan 2019 Abstract That making each one

More information

The game If you listen very carefully during the first 4 cards (or use the cheat sheet) you will get an advantage on the last 5 cards

The game If you listen very carefully during the first 4 cards (or use the cheat sheet) you will get an advantage on the last 5 cards The blockchain game GAMEMASTER NOTES Time: 10 minutes The game: up to 9 info/question cards + a short test with 7 questions Reward: The game If you listen very carefully during the first 4 cards (or use

More information

GRADUBIQUE: AN ACADEMIC TRANSCRIPT DATABASE USING BLOCKCHAIN ARCHITECTURE

GRADUBIQUE: AN ACADEMIC TRANSCRIPT DATABASE USING BLOCKCHAIN ARCHITECTURE San Jose State University SJSU ScholarWorks Master's Projects Master's Theses and Graduate Research Fall 12-14-2018 GRADUBIQUE: AN ACADEMIC TRANSCRIPT DATABASE USING BLOCKCHAIN ARCHITECTURE Thinh Nguyen

More information

Ergo platform overview

Ergo platform overview December 2018 Dmitry Meshkov Ergo platform overview Outline Ergo vision Decentralization Survivability Applicability Roadmap 2 Part 1 Ergo vision 3 History Research and Scorex framework development Testnet

More information

Bitcoin Mining. A high-level technical introduction. Konstantinos Karasavvas

Bitcoin Mining. A high-level technical introduction. Konstantinos Karasavvas Bitcoin Mining A high-level technical introduction Konstantinos Karasavvas Outline PoW / Hashcash Transaction propagation Block mining Block propagation Mining Profitability Proof of Work From wikipedia:

More information

Blockchain Frameworks

Blockchain Frameworks TechWatch Report Blockchain Frameworks Date: March 2018 Contributors: Hemant Sachdeva, Subhrojit Nag Contents 1 Objective... 3 2 Capabilities... 3 2.1 Consensus and Incentive Mechanism... 3 2.2 Limitation

More information

Let's build a blockchain!

Let's build a blockchain! I'm Haseeb. That's me. Let's build a blockchain! A mini-cryptocurrency in Ruby I'm Haseeb Qureshi. I'm a software engineer. I'm working at a blockchain company called 21.co. Unless something terrible has

More information

Introduction to Blockchain

Introduction to Blockchain Diogo Trentini e Lauro Gripa Neto Introduction to Blockchain www.magrathealabs.com source: Scott Adams' Dilbert source: Gartner Inc. SUMMARY 1. 2. 3. 4. 5. Introduction Theoretical concepts Applications

More information

Decentralized prediction game platform, powered by public

Decentralized prediction game platform, powered by public Decentralized prediction game platform, powered by public Table of Contents Overview 3 1.Secured Scalability 3 1.1.Blockchain network delay and Blockbuster attack 3 1.2.Blockchain Transaction Monitoring

More information

Nervos CKB: A common knowledge base for blockchains and applications

Nervos CKB: A common knowledge base for blockchains and applications Nervos CKB: A common knowledge base for blockchains and applications Draft Version Jan Xie Nervos.org January 2, 2018 Abstract This document provides an overview of the Nervos Common Knowledge Base (CKB),

More information

EECS 498 Introduction to Distributed Systems

EECS 498 Introduction to Distributed Systems EECS 498 Introduction to Distributed Systems Fall 2017 Harsha V. Madhyastha Today Bitcoin: A peer-to-peer digital currency Spark: In-memory big data processing December 4, 2017 EECS 498 Lecture 21 2 December

More information

Recovering from a Crash. Three-Phase Commit

Recovering from a Crash. Three-Phase Commit Recovering from a Crash If INIT : abort locally and inform coordinator If Ready, contact another process Q and examine Q s state Lecture 18, page 23 Three-Phase Commit Two phase commit: problem if coordinator

More information

Fruitchains: A Fair Blockchain?

Fruitchains: A Fair Blockchain? Fruitchains: A Fair Blockchain? Kyrylo Voronchenko Supervised by Michal Zajac June 4, 2018 Abstract This report is an overview of the paper [PS16] in which authors introduced a new protocol called FruitChain

More information

Introduction to Bitcoin I

Introduction to Bitcoin I Introduction to Bitcoin I P Peterlongo 1 A Tomasi 1 1 University of Trento Department of Mathematics June 10, 2013 Outline 1 Fiat and online payments Functions of Online payments and cost of clearing 2

More information

Whitepaper Rcoin Global

Whitepaper Rcoin Global Whitepaper Rcoin Global SUMMARY 1. Introduction 2. What is Rcoin Global? 3. Transactions 4. Hybrid Network Concept 5. Keepers 6. Incentive 7. Smart Contract Token 8. Token Distribution 9. Rcoin Global

More information

Trustworthy Peer Financing with Ultiledger Blockchain Protocol and Ecosystem

Trustworthy Peer Financing with Ultiledger Blockchain Protocol and Ecosystem Trustworthy Peer Financing with Ultiledger Blockchain Protocol and Ecosystem Ultiledger Team Version 1.0, last updated on July 11, 2018 info@ultiledger.io Abstract Long before the birth of banks, insurance

More information

Bitcoin (and why it uses SO much energy)

Bitcoin (and why it uses SO much energy) Bitcoin (and why it uses SO much energy) David Malone Hamilton Institute / Dept Maths&Stats Maynooth University. 2018-11-08 Bitcoin Background Bitcoin is a cryptocurrency that started around 2008 2009.

More information

POLARIS ADAPTIVE STATE SHARDING TECHNOLOGY, A SECURE SHARDING PROTOCOL FOR BLOCKCHAINS.

POLARIS ADAPTIVE STATE SHARDING TECHNOLOGY, A SECURE SHARDING PROTOCOL FOR BLOCKCHAINS. POLARIS ADAPTIVE STATE SHARDING TECHNOLOGY, A SECURE SHARDING PROTOCOL FOR BLOCKCHAINS. TABLE OF CONTENTS Contents Abstract 1 Introduction 2 Problem and challenges 3 Polaris degign 4 Securtiy analysis

More information

University of Duisburg-Essen Bismarckstr Duisburg Germany HOW BITCOIN WORKS. Matthäus Wander. June 29, 2011

University of Duisburg-Essen Bismarckstr Duisburg Germany HOW BITCOIN WORKS. Matthäus Wander. June 29, 2011 University of Duisburg-Essen Bismarckstr. 90 47057 Duisburg Germany HOW BITCOIN WORKS June 29, 2011 Overview Electronic currency system Decentralized No trusted third party involved Unstructured peer-to-peer

More information

Comparative Analysis of Blockchain Consensus Algorithms

Comparative Analysis of Blockchain Consensus Algorithms Comparative Analysis of Blockchain Consensus Algorithms L. M. Bach, B. Mihaljević, and M. Žagar Rochester Institute of Technology, Croatia leo.bach@mail.rit.edu, branko.mihaljevic@croatia.rit.edu, martin.zagar@croatia.rit.edu

More information

Distributed Algorithms Bitcoin

Distributed Algorithms Bitcoin Distributed Algorithms Bitcoin Alberto Montresor Università di Trento 2018/12/18 Acknowledgment: Joseph Bonneau, Ed Felten, Arvind Narayanan This work is licensed under a Creative Commons Attribution-ShareAlike

More information

A Gentle Introduction To Bitcoin Mining

A Gentle Introduction To Bitcoin Mining A Gentle Introduction To Bitcoin Mining Table of Contents Title...3 How Do Bitcoin Transactions Work?...4 Why Is Mining Needed In Bitcoin?...5 Why Do Miners Mine?...6 What Is This Computationally Expensive

More information