SlideShare a Scribd company logo
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

Blockchain ecosystem and evolution
Blockchain ecosystem and evolutionBlockchain ecosystem and evolution
Blockchain ecosystem and evolution
Chandra Sekhar AKNR
 
Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...
Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...
Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...
Stephen Peters
 
Blockchain Consensus Protocols
Blockchain Consensus ProtocolsBlockchain Consensus Protocols
Blockchain Consensus Protocols
Melanie Swan
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it matters
Paul Brody
 
Blockchain Health and Crypto Wellness Futures
Blockchain Health and Crypto Wellness FuturesBlockchain Health and Crypto Wellness Futures
Blockchain Health and Crypto Wellness Futures
Melanie Swan
 
Bitcoin
BitcoinBitcoin
Blockchain and Banking
Blockchain and BankingBlockchain and Banking
Blockchain and Banking
HyperTrends Global Inc.
 
Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...
Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...
Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...Lovey Jain
 
Bitcoin Keys, Addresses & Wallets
Bitcoin Keys, Addresses & WalletsBitcoin Keys, Addresses & Wallets
Bitcoin Keys, Addresses & Wallets
Christopher Allen
 
Blockchain
BlockchainBlockchain
Blockchain
Frédéric Leconte
 
Basic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgersBasic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgers
Koen Vingerhoets
 
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Svetlin Nakov
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
nimeshQ
 
What the Duck is DeFi
What the Duck is DeFiWhat the Duck is DeFi
What the Duck is DeFi
Bailey Reutzel
 
c13n - Lightning Network - Greek Bitcoin Meetup.pdf
c13n - Lightning Network - Greek Bitcoin Meetup.pdfc13n - Lightning Network - Greek Bitcoin Meetup.pdf
c13n - Lightning Network - Greek Bitcoin Meetup.pdf
dimitrist
 
Chris Adams: Landscape of DAO Tooling, Frameworks and Integration
Chris Adams: Landscape of DAO Tooling, Frameworks and IntegrationChris Adams: Landscape of DAO Tooling, Frameworks and Integration
Chris Adams: Landscape of DAO Tooling, Frameworks and Integration
Edunomica
 
Introduction to Blockchains
Introduction to BlockchainsIntroduction to Blockchains
Introduction to Blockchains
Ramesh Nair
 
Bitcoin and Blockchain Technology: An Introduction
Bitcoin and Blockchain Technology: An IntroductionBitcoin and Blockchain Technology: An Introduction
Bitcoin and Blockchain Technology: An Introduction
Ferdinando Maria Ametrano
 
What's cryptocurrency ?
What's cryptocurrency ?What's cryptocurrency ?
What's cryptocurrency ?
Everythingcrypto
 
Ethereum 2.0
Ethereum 2.0Ethereum 2.0
Ethereum 2.0
Gene Leybzon
 

What's hot (20)

Blockchain ecosystem and evolution
Blockchain ecosystem and evolutionBlockchain ecosystem and evolution
Blockchain ecosystem and evolution
 
Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...
Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...
Tokenomics: What Tokens, ICOs, Cryptography, and the Blockchain Mean for the ...
 
Blockchain Consensus Protocols
Blockchain Consensus ProtocolsBlockchain Consensus Protocols
Blockchain Consensus Protocols
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it matters
 
Blockchain Health and Crypto Wellness Futures
Blockchain Health and Crypto Wellness FuturesBlockchain Health and Crypto Wellness Futures
Blockchain Health and Crypto Wellness Futures
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Blockchain and Banking
Blockchain and BankingBlockchain and Banking
Blockchain and Banking
 
Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...
Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...
Study on Bitcoin - Technical & Legal Aspects (Presentation at Cyber Cell Gurg...
 
Bitcoin Keys, Addresses & Wallets
Bitcoin Keys, Addresses & WalletsBitcoin Keys, Addresses & Wallets
Bitcoin Keys, Addresses & Wallets
 
Blockchain
BlockchainBlockchain
Blockchain
 
Basic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgersBasic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgers
 
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
Consensus Algorithms - Nakov at CryptoBlockCon - Las Vegas (2018)
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
 
What the Duck is DeFi
What the Duck is DeFiWhat the Duck is DeFi
What the Duck is DeFi
 
c13n - Lightning Network - Greek Bitcoin Meetup.pdf
c13n - Lightning Network - Greek Bitcoin Meetup.pdfc13n - Lightning Network - Greek Bitcoin Meetup.pdf
c13n - Lightning Network - Greek Bitcoin Meetup.pdf
 
Chris Adams: Landscape of DAO Tooling, Frameworks and Integration
Chris Adams: Landscape of DAO Tooling, Frameworks and IntegrationChris Adams: Landscape of DAO Tooling, Frameworks and Integration
Chris Adams: Landscape of DAO Tooling, Frameworks and Integration
 
Introduction to Blockchains
Introduction to BlockchainsIntroduction to Blockchains
Introduction to Blockchains
 
Bitcoin and Blockchain Technology: An Introduction
Bitcoin and Blockchain Technology: An IntroductionBitcoin and Blockchain Technology: An Introduction
Bitcoin and Blockchain Technology: An Introduction
 
What's cryptocurrency ?
What's cryptocurrency ?What's cryptocurrency ?
What's cryptocurrency ?
 
Ethereum 2.0
Ethereum 2.0Ethereum 2.0
Ethereum 2.0
 

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 2018
Codemotion
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
Brett Colbert
 
Blockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOsBlockchain, bitcoin, ethereum and ICOs
Blockchain, bitcoin, ethereum and ICOs
Bogdan Fiedur
 
Fredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slidesFredericksburg LUG Bitcoin slides
Fredericksburg LUG Bitcoin slides
Alex Akselrod
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
Amey Ratnakar Prabhu
 
BITCOIN EXPLAINED
BITCOIN EXPLAINEDBITCOIN EXPLAINED
BITCOIN EXPLAINED
Murlidhar Sarda
 
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
Seval Ç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 Disruption
WSO2
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
Bohdan Szymanik
 
Crypto currency1
Crypto currency1Crypto currency1
Crypto currency1
Karthik Muthuchandra
 
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
JitendraNaik16
 
Blockchain
BlockchainBlockchain
Blockchain
Abhinand Valasseri
 
Blockchain fundamentals
Blockchain fundamentalsBlockchain fundamentals
Blockchain fundamentals
Ahmed Mekawy
 
Blockchain External.pdf
Blockchain External.pdfBlockchain External.pdf
Blockchain External.pdf
manishchaitanya
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
Hugo Rodrigues
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
Sergey Ivliev
 
Crypto101.pptx
Crypto101.pptxCrypto101.pptx
Crypto101.pptx
Sameer Mahajan
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
BlockchainHub Graz
 
Bitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocolsBitcoin lightning network and ethereum protocols
Bitcoin lightning network and ethereum protocols
SUSMIT 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 presentation
Paperchain
 

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

The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 

Recently uploaded (20)

The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 

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