SlideShare a Scribd company logo
1 of 21
Download to read offline
Credit pcwallart.com
Introduction to Lightning Network
Blockchain Association of Ireland
6th Dec 2017
Alan Carbery
Credit pcwallart.com
Contents
Bitcoin scalability revisited
Lightning Network introduction
How it works
Different networks and use cases
Open source projects
Conclusion & Questions
3
Blockchain under pressure
• Transaction fees high and
volatile.
• ~€15 on 12th November
• Confirmation times
unpredictable and long
• Paying for coffee on the
blockchain is no longer
possible
Credit ibtimes.co.uk
4
• 1MB blocksize.
• 10 minute average block confirmation time
• Large statistical variations in block confirmation time
• Full copy of blockchain required by each node.
• Transactions broadcast to all nodes.
• Permissionless, consensus driven.
• Global consensus required for upgrades. Evolution is slow.
Technical limitations of Bitcoin
Credit globalpmsystems.com
5
In 2025 miner rewards reduced to
3BTC per block and transaction fees
become the incentive.
Without competition between
transactions for the next block the
fees won’t be high enough to sustain
the miner network.
A secure network requires high fees.
Blockchain requires
constraints for security
6
• Time critical trades and payments are difficult
(and stressful!)
• Can’t be used for small payments. 1% fee to
send €300. 10% fee for €30.
• Cheaper and faster to transact in custodial
off-chain systems (e.g. exchanges and
wallets). Puts funds at risk.
Effects on users
7
Enter Lightning
8
Lightning in a nutshell (More later!)
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
• Layer-2 protocol (ie. Operates
outside the blockchain)
• A network is made up of payment
channels. No trust needed.
• Each channel is funded by a
confirmed bitcoin transaction.
• Payments are made by agreeing
new balances through the
exchange of crypto messages
outside the blockchain.
• Payments can be routed through
the network by paying fees to
intermediaries.
9
What’s so good about Lightning Network?
• Lightning-fast Payments. Transactions complete within milliseconds. No blockchain needed to complete
a payment transaction.
• Secure. Backed by confirmed blockchain funding transactions. Enforced by smart-contracts.
• Trustless. Protocol does not require trust between parties. Everyone is incentivised to play fair and
punished for foul play. No trusted custodians required.
• Scale. Millions of transactions per second. (Visa network max is 24K txn/sec)
• Low Cost, lightweight hardware. No Proof of Work mining or specialised hardware required for
payments. Standard x86 platforms can be used. Potential for deployment on mobile phone (in theory).
• Low fees. Low risks and costs allow for low fees. Allows instant micropayments.
• Cross Blockchains. Cross-chain atomic swaps can occur off-chain instantly with heterogeneous
blockchain consensus rules. Eg. Between bitcoin and litecoin.
10
2ed98a4640ddca869b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
2ed98a4640ddca869b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
$10
Alice and Bob payment channel
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b04
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
ddca862640ed98a49b02
…
2ed98a4640ddca869b02
…
640ddca862ed98a49b02
…
862ed98a4640ddca9b02
…
8a4640dd862ed9ca9b02
…
4640dd8628aed9ca9b02
…
69b02
49b02
a9b02
BobAlice
$5 $5
$5 $5
2ed98a4640ddca869b02
…
862ed98a4640ddca9b04
Lightning Protocol
Refund Alice: $5 after 1 week
Refund Bob: $5 immediately
Refund Bob: $5 after 1 week
Refund Alice: $5 immediately
2ed98a4640ddca869b02
…
862ed98a4640ddca9b04
Refund Alice: $4 after 1 week
Refund Bob: $6 immediately
Refund Bob: $6 after 1 week
Refund Alice: $4 immediately
Funding: $10 (both sign)
$4 $6
2ed98a4640ddca869b02
…
862ed98a4640ddca9b04
Refund Alice: $3 after 1 week
Refund Bob: $7 immediately
Refund Bob: $7 after 1 week
Refund Alice: $3 immediately
$3 $7
Pay Alice $3
Pay Bob $7
$3 $7
11
How does it work? Some key concepts …
• Unconfirmed transactions.
Transactions can be constructed and
signed but not broadcast to the
blockchain.
• Double-spend protection. Can build
many transactions but only one will
ever be confirmed.
• Bitcoin script language. Build
intelligent smart contracts.
# To you with revocation key
OP_DUP OP_HASH160 <RIPEMD160(SHA256(revocationkey))> OP_EQUAL
OP_IF
OP_CHECKSIG
OP_ELSE
<remotekey> OP_SWAP OP_SIZE 32 OP_EQUAL
OP_NOTIF
# To me via HTLC-timeout transaction (timelocked).
OP_DROP 2 OP_SWAP <localkey> 2 OP_CHECKMULTISIG
OP_ELSE
# To you with preimage.
OP_HASH160 <RIPEMD160(payment_hash)> OP_EQUALVERIFY
OP_CHECKSIG
OP_ENDIF
OP_ENDIF
OP_IF
# Penalty transaction
<revocationkey>
OP_ELSE
`to_self_delay`
OP_CSV
OP_DROP
<local_delayedkey>
OP_ENDIF
OP_CHECKSIG
12
How does it work? Some key concepts …
• Multi-signature addresses. Both keys
required to unlock.
• Timelocks. Some outputs (i.e. coins)
can only be spent after a time period.
• Hash values and secrets. Some
outputs are hash locked and require
the secret.
Funding: $10 (both sign)
862ed98a4640ddca9b04
Refund Bob: $5 after 1 week
Refund Alice: $5 immediately
2ed98a4640ddca869b02
…Refund Alice: $5 after 1 week
13
Bob
Alice
Carol
$10
$0
$10
$0
$9
$1
$9
$1$8
$2
$8
$2
$7
$3
$7
$3
Alice, Bob and Carol payment network
14
Different networks. Finance models. Use cases.
15
• Micro-payments, video content on demand
• Micro-payments, pay as you go mobile phones
• Payments processor (merchants and consumers)
• B2B payments
• Non-custodial exchange
• Inter-coin atomic swaps
Example Use Cases
16
A payment from Bitcoin to Litecoin
Bob
Alice
Carol
$3 worth of BTC
+ fee $3 worth of LTC
Enforced on Bitcoin blockchain Enforced on Litecoin blockchain
Bob acts as exchange
17
Lightning Network draft RFC
• Specifications draft under construction
https://github.com/lightningnetwork/lightning-rfc
• Currently under specification freeze as open source
implementations are completed.
• Main contributors are from 3 companies building
open source implementations.
18
• Lightning Labs building Lightning Network Daemon (LND)
Written in Go
https://github.com/lightningnetwork/lnd
• Blockstream building c-lightning
Written in C
https://github.com/ElementsProject/lightning
• ACINQ building Eclair
Written in Scala
https://github.com/ACINQ/eclair
The Leading Projects
19
• Bitcoin magazine article – Understanding the Lightning Network
Further reading
Credit pcwallart.com
The future?
Disruption of today’s crypto-currency eco-system
Digital businesses using bitcoin for payments
Movement of assets between coins
Credit pcwallart.com
Thank you!
Alan Carbery contact details:
acarbery@cascadenp.com
www.linkedin.com/in/alan-carbery

More Related Content

What's hot

Les grands principes de la Blockchain
Les grands principes de la BlockchainLes grands principes de la Blockchain
Les grands principes de la BlockchainAlain EJZYN
 
An Overview of Stablecoin
An Overview of StablecoinAn Overview of Stablecoin
An Overview of Stablecoin101 Blockchains
 
Bitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemBitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemParas Jain
 
Qu'est-ce que la blockchain ?
Qu'est-ce que la blockchain ?Qu'est-ce que la blockchain ?
Qu'est-ce que la blockchain ?Jedha Bootcamp
 
Bitcoin: The Internet of Money
Bitcoin: The Internet of MoneyBitcoin: The Internet of Money
Bitcoin: The Internet of Moneywinklevosscap
 
Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Truong Nguyen
 
블록체인 이해와 활용
블록체인 이해와 활용블록체인 이해와 활용
블록체인 이해와 활용Seung-Woo Kang
 
Mémento - Intro à la Blockchain
Mémento - Intro à la BlockchainMémento - Intro à la Blockchain
Mémento - Intro à la BlockchainSalesforce France
 
Bitcoin and Blockchains
Bitcoin and BlockchainsBitcoin and Blockchains
Bitcoin and BlockchainsSam Bowne
 
Bitcoin Final Year Seminar Report
Bitcoin Final Year Seminar ReportBitcoin Final Year Seminar Report
Bitcoin Final Year Seminar ReportShantanu Singh
 
Bitcoin A Peer-to-Peer Electronic Cash System
Bitcoin A Peer-to-Peer Electronic Cash SystemBitcoin A Peer-to-Peer Electronic Cash System
Bitcoin A Peer-to-Peer Electronic Cash SystemFlavio Vit
 

What's hot (20)

Bitcoin
BitcoinBitcoin
Bitcoin
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Les grands principes de la Blockchain
Les grands principes de la BlockchainLes grands principes de la Blockchain
Les grands principes de la Blockchain
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
An Overview of Stablecoin
An Overview of StablecoinAn Overview of Stablecoin
An Overview of Stablecoin
 
Bitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash SystemBitcoin: A Peer-to-Peer Electronic Cash System
Bitcoin: A Peer-to-Peer Electronic Cash System
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
BITCOIN
BITCOINBITCOIN
BITCOIN
 
Qu'est-ce que la blockchain ?
Qu'est-ce que la blockchain ?Qu'est-ce que la blockchain ?
Qu'est-ce que la blockchain ?
 
Bitcoin: The Internet of Money
Bitcoin: The Internet of MoneyBitcoin: The Internet of Money
Bitcoin: The Internet of Money
 
Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20
 
All about Bitcoins!
All about Bitcoins!All about Bitcoins!
All about Bitcoins!
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Bitcoin technology
Bitcoin technologyBitcoin technology
Bitcoin technology
 
블록체인 이해와 활용
블록체인 이해와 활용블록체인 이해와 활용
블록체인 이해와 활용
 
Mémento - Intro à la Blockchain
Mémento - Intro à la BlockchainMémento - Intro à la Blockchain
Mémento - Intro à la Blockchain
 
Bitcoin and Blockchains
Bitcoin and BlockchainsBitcoin and Blockchains
Bitcoin and Blockchains
 
Introduction Bitcoin
Introduction BitcoinIntroduction Bitcoin
Introduction Bitcoin
 
Bitcoin Final Year Seminar Report
Bitcoin Final Year Seminar ReportBitcoin Final Year Seminar Report
Bitcoin Final Year Seminar Report
 
Bitcoin A Peer-to-Peer Electronic Cash System
Bitcoin A Peer-to-Peer Electronic Cash SystemBitcoin A Peer-to-Peer Electronic Cash System
Bitcoin A Peer-to-Peer Electronic Cash System
 

Similar to Introduction to Lightning Network

Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018Codemotion
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBrett Colbert
 
Blockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBlockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBogdan Fiedur
 
Fredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesFredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesAlex Akselrod
 
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
 
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Keynote - The Blockchain’s Digital DisruptionWSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Keynote - The Blockchain’s Digital DisruptionWSO2
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the BankerBohdan Szymanik
 
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorandLets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorandJitendraNaik16
 
Blockchain fundamentals
Blockchain fundamentalsBlockchain fundamentals
Blockchain fundamentalsAhmed Mekawy
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and BitcoinHugo Rodrigues
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesSergey Ivliev
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & EthereumBlockchainHub Graz
 
Bitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsBitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsSUSMIT LAVANIA
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationPaperchain
 

Similar to Introduction to Lightning Network (20)

Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Blockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBlockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOs
 
Fredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesFredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slides
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
 
BITCOIN EXPLAINED
BITCOIN EXPLAINEDBITCOIN EXPLAINED
BITCOIN EXPLAINED
 
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
 
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Keynote - The Blockchain’s Digital DisruptionWSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
 
Crypto currency1
Crypto currency1Crypto currency1
Crypto currency1
 
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorandLets learn the_importance_of_trilemma_in_blockchain_by_algorand
Lets learn the_importance_of_trilemma_in_blockchain_by_algorand
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain fundamentals
Blockchain fundamentalsBlockchain fundamentals
Blockchain fundamentals
 
Blockchain External.pdf
Blockchain External.pdfBlockchain External.pdf
Blockchain External.pdf
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
 
Crypto101.pptx
Crypto101.pptxCrypto101.pptx
Crypto101.pptx
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
Bitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsBitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocols
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Introduction to Lightning Network

  • 1. Credit pcwallart.com Introduction to Lightning Network Blockchain Association of Ireland 6th Dec 2017 Alan Carbery
  • 2. Credit pcwallart.com Contents Bitcoin scalability revisited Lightning Network introduction How it works Different networks and use cases Open source projects Conclusion & Questions
  • 3. 3 Blockchain under pressure • Transaction fees high and volatile. • ~€15 on 12th November • Confirmation times unpredictable and long • Paying for coffee on the blockchain is no longer possible Credit ibtimes.co.uk
  • 4. 4 • 1MB blocksize. • 10 minute average block confirmation time • Large statistical variations in block confirmation time • Full copy of blockchain required by each node. • Transactions broadcast to all nodes. • Permissionless, consensus driven. • Global consensus required for upgrades. Evolution is slow. Technical limitations of Bitcoin Credit globalpmsystems.com
  • 5. 5 In 2025 miner rewards reduced to 3BTC per block and transaction fees become the incentive. Without competition between transactions for the next block the fees won’t be high enough to sustain the miner network. A secure network requires high fees. Blockchain requires constraints for security
  • 6. 6 • Time critical trades and payments are difficult (and stressful!) • Can’t be used for small payments. 1% fee to send €300. 10% fee for €30. • Cheaper and faster to transact in custodial off-chain systems (e.g. exchanges and wallets). Puts funds at risk. Effects on users
  • 8. 8 Lightning in a nutshell (More later!) 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … • Layer-2 protocol (ie. Operates outside the blockchain) • A network is made up of payment channels. No trust needed. • Each channel is funded by a confirmed bitcoin transaction. • Payments are made by agreeing new balances through the exchange of crypto messages outside the blockchain. • Payments can be routed through the network by paying fees to intermediaries.
  • 9. 9 What’s so good about Lightning Network? • Lightning-fast Payments. Transactions complete within milliseconds. No blockchain needed to complete a payment transaction. • Secure. Backed by confirmed blockchain funding transactions. Enforced by smart-contracts. • Trustless. Protocol does not require trust between parties. Everyone is incentivised to play fair and punished for foul play. No trusted custodians required. • Scale. Millions of transactions per second. (Visa network max is 24K txn/sec) • Low Cost, lightweight hardware. No Proof of Work mining or specialised hardware required for payments. Standard x86 platforms can be used. Potential for deployment on mobile phone (in theory). • Low fees. Low risks and costs allow for low fees. Allows instant micropayments. • Cross Blockchains. Cross-chain atomic swaps can occur off-chain instantly with heterogeneous blockchain consensus rules. Eg. Between bitcoin and litecoin.
  • 10. 10 2ed98a4640ddca869b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … 2ed98a4640ddca869b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … $10 Alice and Bob payment channel 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b04 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … ddca862640ed98a49b02 … 2ed98a4640ddca869b02 … 640ddca862ed98a49b02 … 862ed98a4640ddca9b02 … 8a4640dd862ed9ca9b02 … 4640dd8628aed9ca9b02 … 69b02 49b02 a9b02 BobAlice $5 $5 $5 $5 2ed98a4640ddca869b02 … 862ed98a4640ddca9b04 Lightning Protocol Refund Alice: $5 after 1 week Refund Bob: $5 immediately Refund Bob: $5 after 1 week Refund Alice: $5 immediately 2ed98a4640ddca869b02 … 862ed98a4640ddca9b04 Refund Alice: $4 after 1 week Refund Bob: $6 immediately Refund Bob: $6 after 1 week Refund Alice: $4 immediately Funding: $10 (both sign) $4 $6 2ed98a4640ddca869b02 … 862ed98a4640ddca9b04 Refund Alice: $3 after 1 week Refund Bob: $7 immediately Refund Bob: $7 after 1 week Refund Alice: $3 immediately $3 $7 Pay Alice $3 Pay Bob $7 $3 $7
  • 11. 11 How does it work? Some key concepts … • Unconfirmed transactions. Transactions can be constructed and signed but not broadcast to the blockchain. • Double-spend protection. Can build many transactions but only one will ever be confirmed. • Bitcoin script language. Build intelligent smart contracts. # To you with revocation key OP_DUP OP_HASH160 <RIPEMD160(SHA256(revocationkey))> OP_EQUAL OP_IF OP_CHECKSIG OP_ELSE <remotekey> OP_SWAP OP_SIZE 32 OP_EQUAL OP_NOTIF # To me via HTLC-timeout transaction (timelocked). OP_DROP 2 OP_SWAP <localkey> 2 OP_CHECKMULTISIG OP_ELSE # To you with preimage. OP_HASH160 <RIPEMD160(payment_hash)> OP_EQUALVERIFY OP_CHECKSIG OP_ENDIF OP_ENDIF OP_IF # Penalty transaction <revocationkey> OP_ELSE `to_self_delay` OP_CSV OP_DROP <local_delayedkey> OP_ENDIF OP_CHECKSIG
  • 12. 12 How does it work? Some key concepts … • Multi-signature addresses. Both keys required to unlock. • Timelocks. Some outputs (i.e. coins) can only be spent after a time period. • Hash values and secrets. Some outputs are hash locked and require the secret. Funding: $10 (both sign) 862ed98a4640ddca9b04 Refund Bob: $5 after 1 week Refund Alice: $5 immediately 2ed98a4640ddca869b02 …Refund Alice: $5 after 1 week
  • 14. 14 Different networks. Finance models. Use cases.
  • 15. 15 • Micro-payments, video content on demand • Micro-payments, pay as you go mobile phones • Payments processor (merchants and consumers) • B2B payments • Non-custodial exchange • Inter-coin atomic swaps Example Use Cases
  • 16. 16 A payment from Bitcoin to Litecoin Bob Alice Carol $3 worth of BTC + fee $3 worth of LTC Enforced on Bitcoin blockchain Enforced on Litecoin blockchain Bob acts as exchange
  • 17. 17 Lightning Network draft RFC • Specifications draft under construction https://github.com/lightningnetwork/lightning-rfc • Currently under specification freeze as open source implementations are completed. • Main contributors are from 3 companies building open source implementations.
  • 18. 18 • Lightning Labs building Lightning Network Daemon (LND) Written in Go https://github.com/lightningnetwork/lnd • Blockstream building c-lightning Written in C https://github.com/ElementsProject/lightning • ACINQ building Eclair Written in Scala https://github.com/ACINQ/eclair The Leading Projects
  • 19. 19 • Bitcoin magazine article – Understanding the Lightning Network Further reading
  • 20. Credit pcwallart.com The future? Disruption of today’s crypto-currency eco-system Digital businesses using bitcoin for payments Movement of assets between coins
  • 21. Credit pcwallart.com Thank you! Alan Carbery contact details: acarbery@cascadenp.com www.linkedin.com/in/alan-carbery