SlideShare a Scribd company logo
The Emergent “Layer 2”
Overview
● Part 1: The history of Bitcoin scaling
○ This issue has transcended technology and has become political
● Part 2: All about “Layer 2”
○ Has already emerged
● Part 3: Layer 2 Live Demo
Bitcoin has changed a lot since Satoshi
left the project.
When satoshi was around... (2009 to mid 2010)
● There was no price because there were no exchanges
● There were no block explorers
● The entire network used full node wallets
● System resources for installing and running a wallet compare to other apps.
After Satoshi completely left… (late 2010)
● The first 3rd party wallet was developed
● The entire blockchain reached 1GB in size.
● The price reached $1 per BTC
● The first mining pool started
“The Scaling Problem”
● Bitcoin as Satoshi wrote it only works if each node keeps the entire
blockchain around for verification purposes.
● It doesn’t take an Einstein to see that this is going to eventually cause
problems.
● Proto-Blocksize debate with two camps
○ “This can never be fixed, bitcoin is stupid, all bitcoiners are idiots”
○ “This can be fixed through engineering and it really not a problem”
What is “Layer 2”?
● The specific term is not attributable to anyone
● 1) Build Bitcoin, 2) … 3) Profit
○ #2 is Layer 2
● All forms of Layer 2 are transparent to the wallet user
BTC
Network
Wallet
Layer 2
Two Layer 2 philosophies
● Minimal changes to the protocol back end
○ These people believe Satoshi got it right
○ Instead of redesigning the consensus protocol, let’s hide the blockchain away on remote
servers so users are never bothered by it
○ “Big Blockist” - Conservative - Keep it the way it is
○ “Emergent Layer 2”
● Maximal changes to the protocol back end
○ These people believe Satoshi got it wrong
○ Essentially redesigning everything about how nodes/transactions/timestamping work
○ “Small Blockist” - Liberal - Constant improvement
○ Lightning Network, etc.
“SPV” The first Layer 2
● The Bitcoin whitepaper, by Satoshi Nakamoto, January, 2009
○ “Simplified Payment Verification” paragraph 8 on page 5
● Satoshi foresaw a need for users to send and receive bitcoin without storing
the ever growing blockchain locally.
● Often referred to as “client only mode”
Why SPV is/was a crappy Layer 2
● Written in the whitepaper as a “Layer 1 feature”.
○ No mention of protocol or 3rd party wallets. No “Layer 2”
● Instead of downloading full blocks, it would only download headers
○ Still had to sync with network
● Described way of verifying transaction validity by using Merkle Roots.
○ I think Satoshi was a trained mathematician.
● Problems:
○ Written as a solution using circa-2009 bitcoin technology (solution before problem)
○ Admits in roundabout way that this scheme is vulnerable to attack.
● Back then this was a good solution, but today we can do better
Things Satoshi did not foresee
● Mining Pools
● ASICS
● Block Explorers
“Layer 1” - Installations of bitcoind or alternate impl.
● ~6,000 nodes
● Each node has the
full blockchain
● Each node is
anonymous
● Validity is based on
math only
● One of these orange
dots can be either
an honest node or a
dishonest node
(Sybil Attack)
What is a Block Explorer?
● A Block explorer is
a full node
● Contains a web
interface for viewing
partial blockchain
data
● Also a JSON API for
building wallets on
top of
Blockchain.info
= Single Server
= HTTPS JSON API
= bitcoind full node
“Layer 2”
● ~35 nodes
● Each node is
connected to the
Layer 1 network
● Validity is not based
on math, but rather
on reputation
● SSL certificate
ensures against
Sybil attacks
Toshi.io
Blockr.io
BlockCypher
BlockSeer
Blockchain.info
= Single Server
= HTTPS JSON API
= bitcoind full node
“Layer 2”
● Lightweight wallets
connect to Layer 2
● Full Node wallets
connect to Later 1
● Since you can’t trust
anonymous peers, you
have to verify data they
give you, therefore you
need the full blockchain
● Lightweight wallets don’t
mathematically verify
anything, they instead
cross check other
Layer 2 providers
Blockr.io
BlockCypher
BlockSeer
Blockchain.info
Lightweight
walletFull node
wallet
Toshi.io
Which Wallet do I use?
● You are a libertarian
● You are accepting bitcoin at high volume
(exchange, casino, etc)
● You can afford to spare some computer
resources (hard drive space, RAM,
bandwidth)
● You are an online Pablo Escobar who
needs maximum privacy
● You are a hipster who like using retro
software
Full node
wallet
Lightweight
wallet
● You are a regular person
Verifying Layer 2 - each dialect is slightly different
Chain.So
Blockchain.info
BitpayInsight
https://blockchain.info/unspent?active=1PZ3Ps9RvCmUW1s1rHE25FeR8vtKUrhEai
Verifying Layer 2 - each dialect is slightly different
Chain.So
Blockchain.info
https://chain.so/api/v2/get_tx_unspent/btc/1PZ3Ps9RvCmUW1s1rHE25FeR8vtKUrhEai
BitpayInsight
Verifying Layer 2 - each dialect is slightly different
Chain.So
Blockchain.info
BitpayInsight
http://insight.bitpay.com/api/addr/1PZ3Ps9RvCmUW1s1rHE25FeR8vtKUrhEai/utxo?noCache=1
“Layer 2 Kernel”
5 different APIs,
5 times as much work to
implement
Not good :(
Lightweight
wallet
Blockchain.info
BlockCypher
BlockSeer
Toshi.io
Blockr.io
“Layer 2 Kernel”
moneywagon - Open source “layer 2 kernel”, or
“universal block explorer client library”
Moneywagon
Lightweight
wallet
Blockchain.info
BlockCypher
BlockSeer
Toshi.io
Blockr.io
Layer 2 forks
● In the case of a network
fork, some Layer 2 nodes
will be split just like the
underlying Layer 1 network
Toshi.io
(running XT)
Big blockist
Lightweight wallet
Full node wallet
(running XT)
Blockchain.info
(running XT)
BlockCypher
(running core)
BlockSeer
(running core)
Blockr.io
(running core)
Full node wallet
(running core)
Small blockist
Lightweight wallet
● Full node wallets choose
which side they are on by
the software they run.
● Lightweight wallets can choose
which side they are on by
choosing which Layer 2
services they interact with
Exchange
Is Layer 2 secure?
● Layer 2 is essentially the web
○ To assert Layer 2 is insecure is to argue the web is insecure.
○ DDOS protection? Same as any other website
○ Load balancing? Same as any other website
○ Privacy/Anonymity? Through Tor just like any other website.
Isn’t Layer 2 centralization?
If there was only one block explorer API in existence, then yes
but there are many, and it’s pretty easy to make your own Layer 2 Node.
Install Bitpay Insight on an Amazon VPS ($10/month), and register a domain
name + SSL cert.
Questions / Live Demo

More Related Content

What's hot

Blockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBlockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBogdan Fiedur
 
Paper: Crypto Currency Mining
Paper: Crypto Currency MiningPaper: Crypto Currency Mining
Paper: Crypto Currency MiningHugo Rodrigues
 
WHAT IS MINING? WHAT IS BITCOIN?
WHAT IS MINING? WHAT IS BITCOIN?WHAT IS MINING? WHAT IS BITCOIN?
WHAT IS MINING? WHAT IS BITCOIN?JemSon Junio
 
Bitcoin and blockchain overview
Bitcoin and blockchain overviewBitcoin and blockchain overview
Bitcoin and blockchain overviewAnsel Teng
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin Jérôme Kehrli
 
Ethereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and ServicesEthereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and ServicesAvtar Sehra
 
2018 SAI workshop blockchain Kristof Verslype
2018 SAI  workshop blockchain Kristof Verslype2018 SAI  workshop blockchain Kristof Verslype
2018 SAI workshop blockchain Kristof VerslypeSmals
 
The Bitcoin blockchain (en)
The Bitcoin blockchain (en)The Bitcoin blockchain (en)
The Bitcoin blockchain (en)Davide Carboni
 
Blockchain, Smart Contracts and DAOs in 10 minutes
Blockchain, Smart Contracts and DAOs in 10 minutesBlockchain, Smart Contracts and DAOs in 10 minutes
Blockchain, Smart Contracts and DAOs in 10 minutesAndreu Rodríguez i Donaire
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESRishikese MR
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchainseancarmody
 
Anatomy of a blockchain
Anatomy of a blockchainAnatomy of a blockchain
Anatomy of a blockchainAvtar Sehra
 
A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazSeval Çapraz
 
Understanding blockchain
Understanding blockchainUnderstanding blockchain
Understanding blockchainPriyab Satoshi
 
Cryptocurrency for Dummies
Cryptocurrency for DummiesCryptocurrency for Dummies
Cryptocurrency for DummiesMiguel Duarte
 
Introduction to bitcoin
Introduction to bitcoinIntroduction to bitcoin
Introduction to bitcoinWolf McNally
 
YOCoin PowerPoint Presentation
YOCoin PowerPoint PresentationYOCoin PowerPoint Presentation
YOCoin PowerPoint PresentationCrypto Currency
 
How Blockchain and Cryptocurrency works.
How Blockchain and Cryptocurrency works.How Blockchain and Cryptocurrency works.
How Blockchain and Cryptocurrency works.Waleed Ahmed
 
Blockchain and bitcoin fundamentals (usages and applications)
Blockchain and bitcoin fundamentals (usages and applications)Blockchain and bitcoin fundamentals (usages and applications)
Blockchain and bitcoin fundamentals (usages and applications)Amir Rafati
 

What's hot (20)

Blockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBlockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOs
 
Paper: Crypto Currency Mining
Paper: Crypto Currency MiningPaper: Crypto Currency Mining
Paper: Crypto Currency Mining
 
WHAT IS MINING? WHAT IS BITCOIN?
WHAT IS MINING? WHAT IS BITCOIN?WHAT IS MINING? WHAT IS BITCOIN?
WHAT IS MINING? WHAT IS BITCOIN?
 
Bitcoin and blockchain overview
Bitcoin and blockchain overviewBitcoin and blockchain overview
Bitcoin and blockchain overview
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
 
Ethereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and ServicesEthereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and Services
 
2018 SAI workshop blockchain Kristof Verslype
2018 SAI  workshop blockchain Kristof Verslype2018 SAI  workshop blockchain Kristof Verslype
2018 SAI workshop blockchain Kristof Verslype
 
The Bitcoin blockchain (en)
The Bitcoin blockchain (en)The Bitcoin blockchain (en)
The Bitcoin blockchain (en)
 
Blockchain, Smart Contracts and DAOs in 10 minutes
Blockchain, Smart Contracts and DAOs in 10 minutesBlockchain, Smart Contracts and DAOs in 10 minutes
Blockchain, Smart Contracts and DAOs in 10 minutes
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USES
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
Anatomy of a blockchain
Anatomy of a blockchainAnatomy of a blockchain
Anatomy of a blockchain
 
Blockchain for Beginners
Blockchain for Beginners Blockchain for Beginners
Blockchain for Beginners
 
A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval Capraz
 
Understanding blockchain
Understanding blockchainUnderstanding blockchain
Understanding blockchain
 
Cryptocurrency for Dummies
Cryptocurrency for DummiesCryptocurrency for Dummies
Cryptocurrency for Dummies
 
Introduction to bitcoin
Introduction to bitcoinIntroduction to bitcoin
Introduction to bitcoin
 
YOCoin PowerPoint Presentation
YOCoin PowerPoint PresentationYOCoin PowerPoint Presentation
YOCoin PowerPoint Presentation
 
How Blockchain and Cryptocurrency works.
How Blockchain and Cryptocurrency works.How Blockchain and Cryptocurrency works.
How Blockchain and Cryptocurrency works.
 
Blockchain and bitcoin fundamentals (usages and applications)
Blockchain and bitcoin fundamentals (usages and applications)Blockchain and bitcoin fundamentals (usages and applications)
Blockchain and bitcoin fundamentals (usages and applications)
 

Viewers also liked

биткоин мнемоник
биткоин мнемоникбиткоин мнемоник
биткоин мнемоникNik Filatov
 
Dominios reservados
Dominios reservadosDominios reservados
Dominios reservadosNg Long
 
Bitcoin paper-wallet
Bitcoin paper-walletBitcoin paper-wallet
Bitcoin paper-walletpiuk
 
Cara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhainCara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhaindwinugroho007
 
Cara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhainCara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhaindwinugroho007
 
NodeJS Blockchain.info Wallet
NodeJS Blockchain.info WalletNodeJS Blockchain.info Wallet
NodeJS Blockchain.info WalletSjors Provoost
 
Blockchain wallet to bitkingdom wallet
Blockchain wallet to bitkingdom walletBlockchain wallet to bitkingdom wallet
Blockchain wallet to bitkingdom walletJason Nguyen
 
Create blockchain wallet
Create blockchain walletCreate blockchain wallet
Create blockchain walletJason Nguyen
 
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...Melanie Swan
 

Viewers also liked (12)

Bitcon
BitconBitcon
Bitcon
 
Blockchain - Uma breve explicação
Blockchain - Uma breve explicaçãoBlockchain - Uma breve explicação
Blockchain - Uma breve explicação
 
биткоин мнемоник
биткоин мнемоникбиткоин мнемоник
биткоин мнемоник
 
Dominios reservados
Dominios reservadosDominios reservados
Dominios reservados
 
Bitcoin Xebicon2012
Bitcoin Xebicon2012Bitcoin Xebicon2012
Bitcoin Xebicon2012
 
Bitcoin paper-wallet
Bitcoin paper-walletBitcoin paper-wallet
Bitcoin paper-wallet
 
Cara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhainCara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhain
 
Cara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhainCara daftar bitcoin di blockhain
Cara daftar bitcoin di blockhain
 
NodeJS Blockchain.info Wallet
NodeJS Blockchain.info WalletNodeJS Blockchain.info Wallet
NodeJS Blockchain.info Wallet
 
Blockchain wallet to bitkingdom wallet
Blockchain wallet to bitkingdom walletBlockchain wallet to bitkingdom wallet
Blockchain wallet to bitkingdom wallet
 
Create blockchain wallet
Create blockchain walletCreate blockchain wallet
Create blockchain wallet
 
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
 

Similar to The Emergent Layer 2

Blockchain For Developers
Blockchain For DevelopersBlockchain For Developers
Blockchain For DevelopersAlex Chepurnoy
 
Bitclamp - A Permanent and Anonymous Publishing Platform Over Bitcoin
Bitclamp - A Permanent and Anonymous Publishing Platform Over BitcoinBitclamp - A Permanent and Anonymous Publishing Platform Over Bitcoin
Bitclamp - A Permanent and Anonymous Publishing Platform Over BitcoinBSidesROC
 
Introduction to Bitcoin for programmers
Introduction to Bitcoin for programmersIntroduction to Bitcoin for programmers
Introduction to Bitcoin for programmersWojciech Langiewicz
 
Blockchan For Developers
Blockchan For DevelopersBlockchan For Developers
Blockchan For DevelopersAlex Chepurnoy
 
Bitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technologyBitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technologyShiv Sahni
 
Bitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsBitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsSUSMIT LAVANIA
 
Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Wojciech Langiewicz
 
Bitcoin - Beyond the basics
Bitcoin - Beyond the basicsBitcoin - Beyond the basics
Bitcoin - Beyond the basicsChris DeRose
 
Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)
Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)
Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)Alex Chepurnoy
 
Crypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies IntroCrypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies IntroTal Shmueli
 
Bitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodBitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodGalin Dinkov
 
Fredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesFredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesAlex Akselrod
 
About Bitcoin, Blockchain, and the DLT Chimera
About Bitcoin, Blockchain, and the DLT ChimeraAbout Bitcoin, Blockchain, and the DLT Chimera
About Bitcoin, Blockchain, and the DLT ChimeraFerdinando Maria Ametrano
 
Blockchain with scala
Blockchain with scalaBlockchain with scala
Blockchain with scalaHongchao Liu
 
Bitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBen Hall
 
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)Alex Chepurnoy
 

Similar to The Emergent Layer 2 (20)

Blockchain For Developers
Blockchain For DevelopersBlockchain For Developers
Blockchain For Developers
 
Bitclamp - A Permanent and Anonymous Publishing Platform Over Bitcoin
Bitclamp - A Permanent and Anonymous Publishing Platform Over BitcoinBitclamp - A Permanent and Anonymous Publishing Platform Over Bitcoin
Bitclamp - A Permanent and Anonymous Publishing Platform Over Bitcoin
 
Introduction to Bitcoin for programmers
Introduction to Bitcoin for programmersIntroduction to Bitcoin for programmers
Introduction to Bitcoin for programmers
 
Blockchan For Developers
Blockchan For DevelopersBlockchan For Developers
Blockchan For Developers
 
Lightning Network
Lightning  NetworkLightning  Network
Lightning Network
 
Bitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technologyBitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technology
 
Bitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsBitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocols
 
Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2
 
Bitcoin Talk at Rainbow
Bitcoin Talk at RainbowBitcoin Talk at Rainbow
Bitcoin Talk at Rainbow
 
Bitcoin - Beyond the basics
Bitcoin - Beyond the basicsBitcoin - Beyond the basics
Bitcoin - Beyond the basics
 
Bitcoin p2p money
Bitcoin p2p moneyBitcoin p2p money
Bitcoin p2p money
 
Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)
Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)
Blockchain For Developers (Talk at Innopolis Blockchain Hackathon 2016)
 
Crypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies IntroCrypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies Intro
 
Bitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodBitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the Hood
 
Fredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesFredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slides
 
About Bitcoin, Blockchain, and the DLT Chimera
About Bitcoin, Blockchain, and the DLT ChimeraAbout Bitcoin, Blockchain, and the DLT Chimera
About Bitcoin, Blockchain, and the DLT Chimera
 
Blockchain with scala
Blockchain with scalaBlockchain with scala
Blockchain with scala
 
Bitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrency
 
Ethereum overview
Ethereum overviewEthereum overview
Ethereum overview
 
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
 

Recently uploaded

Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...
Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...
Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...Vighnesh Shashtri
 
Can a Pi network coin ever be sold out: I am ready to sell mine.
Can a Pi network coin ever be sold out: I am ready to sell mine.Can a Pi network coin ever be sold out: I am ready to sell mine.
Can a Pi network coin ever be sold out: I am ready to sell mine.DOT TECH
 
Economics and Economic reasoning Chap. 1
Economics and Economic reasoning Chap. 1Economics and Economic reasoning Chap. 1
Economics and Economic reasoning Chap. 1Fitri Safira
 
How can I sell my Pi coins in Vietnam easily?
How can I sell my Pi coins in Vietnam easily?How can I sell my Pi coins in Vietnam easily?
How can I sell my Pi coins in Vietnam easily?DOT TECH
 
Introduction to Economics II Chapter 25 Production and Growth.pdf
Introduction to Economics II Chapter 25 Production and Growth.pdfIntroduction to Economics II Chapter 25 Production and Growth.pdf
Introduction to Economics II Chapter 25 Production and Growth.pdfSafa444074
 
when officially can i withdraw my pi Network coins.
when officially can i withdraw my pi Network coins.when officially can i withdraw my pi Network coins.
when officially can i withdraw my pi Network coins.DOT TECH
 
how can I sell my pi coins in China 2024.
how can I sell my pi coins in China 2024.how can I sell my pi coins in China 2024.
how can I sell my pi coins in China 2024.DOT TECH
 
Summary of financial results for 1Q2024
Summary of financial  results for 1Q2024Summary of financial  results for 1Q2024
Summary of financial results for 1Q2024InterCars
 
how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.DOT TECH
 
Digital Finance Summit 2024 Partners Brochure
Digital Finance Summit 2024 Partners BrochureDigital Finance Summit 2024 Partners Brochure
Digital Finance Summit 2024 Partners BrochureFinTech Belgium
 
how can I sell/buy bulk pi coins securely
how can I sell/buy bulk pi coins securelyhow can I sell/buy bulk pi coins securely
how can I sell/buy bulk pi coins securelyDOT TECH
 
How can I sell my pi coins in Indonesia?
How can I  sell my pi coins in Indonesia?How can I  sell my pi coins in Indonesia?
How can I sell my pi coins in Indonesia?DOT TECH
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024DOT TECH
 
PD ARRAY THEORY FOR INTERMEDIATE (1).pdf
PD ARRAY THEORY FOR INTERMEDIATE (1).pdfPD ARRAY THEORY FOR INTERMEDIATE (1).pdf
PD ARRAY THEORY FOR INTERMEDIATE (1).pdfJerrySMaliki
 
Greek trade a pillar of dynamic economic growth - European Business Review
Greek trade a pillar of dynamic economic growth - European Business ReviewGreek trade a pillar of dynamic economic growth - European Business Review
Greek trade a pillar of dynamic economic growth - European Business ReviewAntonis Zairis
 
what is a pi whale and how to access one.
what is a pi whale and how to access one.what is a pi whale and how to access one.
what is a pi whale and how to access one.DOT TECH
 
Juspay Case study(Doubling Revenue Juspay's Success).pptx
Juspay Case study(Doubling Revenue Juspay's Success).pptxJuspay Case study(Doubling Revenue Juspay's Success).pptx
Juspay Case study(Doubling Revenue Juspay's Success).pptxaryan963438
 
Falcon Invoice Discounting: Optimizing Returns with Minimal Risk
Falcon Invoice Discounting: Optimizing Returns with Minimal RiskFalcon Invoice Discounting: Optimizing Returns with Minimal Risk
Falcon Invoice Discounting: Optimizing Returns with Minimal RiskFalcon Invoice Discounting
 

Recently uploaded (20)

Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...
Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...
Empowering the Unbanked: The Vital Role of NBFCs in Promoting Financial Inclu...
 
Monthly Economic Monitoring of Ukraine No. 232, May 2024
Monthly Economic Monitoring of Ukraine No. 232, May 2024Monthly Economic Monitoring of Ukraine No. 232, May 2024
Monthly Economic Monitoring of Ukraine No. 232, May 2024
 
Can a Pi network coin ever be sold out: I am ready to sell mine.
Can a Pi network coin ever be sold out: I am ready to sell mine.Can a Pi network coin ever be sold out: I am ready to sell mine.
Can a Pi network coin ever be sold out: I am ready to sell mine.
 
Economics and Economic reasoning Chap. 1
Economics and Economic reasoning Chap. 1Economics and Economic reasoning Chap. 1
Economics and Economic reasoning Chap. 1
 
Commercial Bank Economic Capsule - May 2024
Commercial Bank Economic Capsule - May 2024Commercial Bank Economic Capsule - May 2024
Commercial Bank Economic Capsule - May 2024
 
How can I sell my Pi coins in Vietnam easily?
How can I sell my Pi coins in Vietnam easily?How can I sell my Pi coins in Vietnam easily?
How can I sell my Pi coins in Vietnam easily?
 
Introduction to Economics II Chapter 25 Production and Growth.pdf
Introduction to Economics II Chapter 25 Production and Growth.pdfIntroduction to Economics II Chapter 25 Production and Growth.pdf
Introduction to Economics II Chapter 25 Production and Growth.pdf
 
when officially can i withdraw my pi Network coins.
when officially can i withdraw my pi Network coins.when officially can i withdraw my pi Network coins.
when officially can i withdraw my pi Network coins.
 
how can I sell my pi coins in China 2024.
how can I sell my pi coins in China 2024.how can I sell my pi coins in China 2024.
how can I sell my pi coins in China 2024.
 
Summary of financial results for 1Q2024
Summary of financial  results for 1Q2024Summary of financial  results for 1Q2024
Summary of financial results for 1Q2024
 
how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.how can i use my minded pi coins I need some funds.
how can i use my minded pi coins I need some funds.
 
Digital Finance Summit 2024 Partners Brochure
Digital Finance Summit 2024 Partners BrochureDigital Finance Summit 2024 Partners Brochure
Digital Finance Summit 2024 Partners Brochure
 
how can I sell/buy bulk pi coins securely
how can I sell/buy bulk pi coins securelyhow can I sell/buy bulk pi coins securely
how can I sell/buy bulk pi coins securely
 
How can I sell my pi coins in Indonesia?
How can I  sell my pi coins in Indonesia?How can I  sell my pi coins in Indonesia?
How can I sell my pi coins in Indonesia?
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
 
PD ARRAY THEORY FOR INTERMEDIATE (1).pdf
PD ARRAY THEORY FOR INTERMEDIATE (1).pdfPD ARRAY THEORY FOR INTERMEDIATE (1).pdf
PD ARRAY THEORY FOR INTERMEDIATE (1).pdf
 
Greek trade a pillar of dynamic economic growth - European Business Review
Greek trade a pillar of dynamic economic growth - European Business ReviewGreek trade a pillar of dynamic economic growth - European Business Review
Greek trade a pillar of dynamic economic growth - European Business Review
 
what is a pi whale and how to access one.
what is a pi whale and how to access one.what is a pi whale and how to access one.
what is a pi whale and how to access one.
 
Juspay Case study(Doubling Revenue Juspay's Success).pptx
Juspay Case study(Doubling Revenue Juspay's Success).pptxJuspay Case study(Doubling Revenue Juspay's Success).pptx
Juspay Case study(Doubling Revenue Juspay's Success).pptx
 
Falcon Invoice Discounting: Optimizing Returns with Minimal Risk
Falcon Invoice Discounting: Optimizing Returns with Minimal RiskFalcon Invoice Discounting: Optimizing Returns with Minimal Risk
Falcon Invoice Discounting: Optimizing Returns with Minimal Risk
 

The Emergent Layer 2

  • 2. Overview ● Part 1: The history of Bitcoin scaling ○ This issue has transcended technology and has become political ● Part 2: All about “Layer 2” ○ Has already emerged ● Part 3: Layer 2 Live Demo
  • 3. Bitcoin has changed a lot since Satoshi left the project.
  • 4. When satoshi was around... (2009 to mid 2010) ● There was no price because there were no exchanges ● There were no block explorers ● The entire network used full node wallets ● System resources for installing and running a wallet compare to other apps. After Satoshi completely left… (late 2010) ● The first 3rd party wallet was developed ● The entire blockchain reached 1GB in size. ● The price reached $1 per BTC ● The first mining pool started
  • 5. “The Scaling Problem” ● Bitcoin as Satoshi wrote it only works if each node keeps the entire blockchain around for verification purposes. ● It doesn’t take an Einstein to see that this is going to eventually cause problems. ● Proto-Blocksize debate with two camps ○ “This can never be fixed, bitcoin is stupid, all bitcoiners are idiots” ○ “This can be fixed through engineering and it really not a problem”
  • 6. What is “Layer 2”? ● The specific term is not attributable to anyone ● 1) Build Bitcoin, 2) … 3) Profit ○ #2 is Layer 2 ● All forms of Layer 2 are transparent to the wallet user BTC Network Wallet Layer 2
  • 7. Two Layer 2 philosophies ● Minimal changes to the protocol back end ○ These people believe Satoshi got it right ○ Instead of redesigning the consensus protocol, let’s hide the blockchain away on remote servers so users are never bothered by it ○ “Big Blockist” - Conservative - Keep it the way it is ○ “Emergent Layer 2” ● Maximal changes to the protocol back end ○ These people believe Satoshi got it wrong ○ Essentially redesigning everything about how nodes/transactions/timestamping work ○ “Small Blockist” - Liberal - Constant improvement ○ Lightning Network, etc.
  • 8. “SPV” The first Layer 2 ● The Bitcoin whitepaper, by Satoshi Nakamoto, January, 2009 ○ “Simplified Payment Verification” paragraph 8 on page 5 ● Satoshi foresaw a need for users to send and receive bitcoin without storing the ever growing blockchain locally. ● Often referred to as “client only mode”
  • 9. Why SPV is/was a crappy Layer 2 ● Written in the whitepaper as a “Layer 1 feature”. ○ No mention of protocol or 3rd party wallets. No “Layer 2” ● Instead of downloading full blocks, it would only download headers ○ Still had to sync with network ● Described way of verifying transaction validity by using Merkle Roots. ○ I think Satoshi was a trained mathematician. ● Problems: ○ Written as a solution using circa-2009 bitcoin technology (solution before problem) ○ Admits in roundabout way that this scheme is vulnerable to attack. ● Back then this was a good solution, but today we can do better
  • 10. Things Satoshi did not foresee ● Mining Pools ● ASICS ● Block Explorers
  • 11. “Layer 1” - Installations of bitcoind or alternate impl. ● ~6,000 nodes ● Each node has the full blockchain ● Each node is anonymous ● Validity is based on math only ● One of these orange dots can be either an honest node or a dishonest node (Sybil Attack)
  • 12. What is a Block Explorer? ● A Block explorer is a full node ● Contains a web interface for viewing partial blockchain data ● Also a JSON API for building wallets on top of Blockchain.info = Single Server = HTTPS JSON API = bitcoind full node
  • 13. “Layer 2” ● ~35 nodes ● Each node is connected to the Layer 1 network ● Validity is not based on math, but rather on reputation ● SSL certificate ensures against Sybil attacks Toshi.io Blockr.io BlockCypher BlockSeer Blockchain.info = Single Server = HTTPS JSON API = bitcoind full node
  • 14. “Layer 2” ● Lightweight wallets connect to Layer 2 ● Full Node wallets connect to Later 1 ● Since you can’t trust anonymous peers, you have to verify data they give you, therefore you need the full blockchain ● Lightweight wallets don’t mathematically verify anything, they instead cross check other Layer 2 providers Blockr.io BlockCypher BlockSeer Blockchain.info Lightweight walletFull node wallet Toshi.io
  • 15. Which Wallet do I use? ● You are a libertarian ● You are accepting bitcoin at high volume (exchange, casino, etc) ● You can afford to spare some computer resources (hard drive space, RAM, bandwidth) ● You are an online Pablo Escobar who needs maximum privacy ● You are a hipster who like using retro software Full node wallet Lightweight wallet ● You are a regular person
  • 16. Verifying Layer 2 - each dialect is slightly different Chain.So Blockchain.info BitpayInsight https://blockchain.info/unspent?active=1PZ3Ps9RvCmUW1s1rHE25FeR8vtKUrhEai
  • 17. Verifying Layer 2 - each dialect is slightly different Chain.So Blockchain.info https://chain.so/api/v2/get_tx_unspent/btc/1PZ3Ps9RvCmUW1s1rHE25FeR8vtKUrhEai BitpayInsight
  • 18. Verifying Layer 2 - each dialect is slightly different Chain.So Blockchain.info BitpayInsight http://insight.bitpay.com/api/addr/1PZ3Ps9RvCmUW1s1rHE25FeR8vtKUrhEai/utxo?noCache=1
  • 19. “Layer 2 Kernel” 5 different APIs, 5 times as much work to implement Not good :( Lightweight wallet Blockchain.info BlockCypher BlockSeer Toshi.io Blockr.io
  • 20. “Layer 2 Kernel” moneywagon - Open source “layer 2 kernel”, or “universal block explorer client library” Moneywagon Lightweight wallet Blockchain.info BlockCypher BlockSeer Toshi.io Blockr.io
  • 21. Layer 2 forks ● In the case of a network fork, some Layer 2 nodes will be split just like the underlying Layer 1 network Toshi.io (running XT) Big blockist Lightweight wallet Full node wallet (running XT) Blockchain.info (running XT) BlockCypher (running core) BlockSeer (running core) Blockr.io (running core) Full node wallet (running core) Small blockist Lightweight wallet ● Full node wallets choose which side they are on by the software they run. ● Lightweight wallets can choose which side they are on by choosing which Layer 2 services they interact with Exchange
  • 22. Is Layer 2 secure? ● Layer 2 is essentially the web ○ To assert Layer 2 is insecure is to argue the web is insecure. ○ DDOS protection? Same as any other website ○ Load balancing? Same as any other website ○ Privacy/Anonymity? Through Tor just like any other website.
  • 23. Isn’t Layer 2 centralization? If there was only one block explorer API in existence, then yes but there are many, and it’s pretty easy to make your own Layer 2 Node. Install Bitpay Insight on an Amazon VPS ($10/month), and register a domain name + SSL cert.