SlideShare a Scribd company logo
Intro. to Lightning Network
TM Lee, co-founder at
Github: @tmlee | Blockchain Developers Malaysia, Sep 6th, 2017
https://www.coingecko.com
Bitcoin Situation
Bitcoin
SegWit (Segregated Witness)
2MB Block (Later this year)
Bitcoin Cash
No SegWit
BIG Blocks
Hardfork
Scaling Debate
What is the Lightning Network (LN) ?
- Proposed by Joseph Poon & Thaddeus Dryja
(https://lightning.network/lightning-network-paper.pdf)
- Specifications for a Payment Channel on top of the bitcoin/litecoin blockchain
- Layer 2
- “Decentralized”, Trustless, High Volume, Instant Micropayment
Implementations of the LN Specs
=> Follow the BOLTs spec https://github.com/lightningnetwork/lightning-rfc
1. LND (GoLang) by Lightning
2. Eclair (Scala) by ACINQ
3. Lightning-C (C) by Blockstream
4. Thunder (Java) by Blockchain.com
Applications
1. Micropayments
○ Send satoshis with small transaction fees
2. Payment Streaming
○ Sending small amount of money frequently (ie. secondly, minutely, hourly)
○ Eg. pay per second when watching video on Youtube
3. Machine-to-Machine Payments
○ Bandwidth, data, storage, cpu times, data, can be traded
○ API endpoints usages
4. There could be more...
Bitcoin Transaction
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
MultiSig
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
CheckLockTimeVerify (CLTV)
- Specific time
- Eg. at Block N, specific date/time
Time-Lock
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
CheckSequenceVerify (CSV)
- Relative time
- N blocks from now, time from now
Typical on-chain bitcoin transaction
ALICE BOB
Transaction in a lightning network
ALICE BOB
Open
Channel TX
Payment Channel Remains Open….
microTX
10m฿
microTX
10m฿
microTX
10m฿
Close
Channel TX
1. Alice opens payment channel with
Bob
2. Bob opens payment channel with
Alice
3. Alice & Bob both stake 5 BTC each
to a multisig address
4. TX broadcast and mined into
Blockchain
5. Once the TX is confirmed, the
payment channel is now OPEN!
Open Payment Channel
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
1. Alice sends 1 BTC to Bob via payment
channel
2. Alice creates a TX
a. Input from Open TX Multisig
b. Outputs
i. 4 BTC to herself
ii. 6 BTC to a New Special
Multisig
c. Creates a key1
d. Alice signs the TX
3. Instead of broadcast, Alice hands TX
directly to Bob
4. Bob does the same, creates a TX
a. Input from Open TX Multisig
b. Outputs
i. 6 BTC to himself
ii. 4 BTC to a New Special
Multisig
c. Creates a key1
d. Bob signs the TX
5. Instead of broadcast, Bob hands TX
directly to Alice
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
1. Bob sends 1 BTC to Alice via payment
channel
2. Bob creates a new TX
a. Input from Open TX Multisig
b. Outputs
i. 5 BTC to himself
ii. 5 BTC to a New Special
Multisig
c. Creates a new key2
d. Bob signs the TX
3. Instead of broadcast, Bob hands TX
directly to Alice & key1
4. Alice does the same, creates a TX
a. Input from Open TX Multisig
b. Outputs
i. 5 BTC to herself
ii. 5 BTC to a New Special
Multisig
c. Creates a new key2
d. Alice signs the TX
5. Instead of broadcast, Alice hands TX
directly to Bob & key1
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
Microtransactions
Over Lightning...
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
Close Payment Channel (Usual Case)
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
#1 “Double Spend” Problem
tn
tn+1
Alice sends 1 BTC to Bob Bob sends 1 BTC to Alice
Bob buys
a Car from
Alice
Previous
Event
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
#1 “Double Spend” Problem
tn
tn+1
Alice sends 1 BTC to Bob Bob sends 1 BTC to Alice
Bob buys
a Car from
Alice
Previous
Event
Bob Signs
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
Time-locks
- Locks spending this UTXO to a later time
Bob Signs
Bob Signs
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
Bob Signs
Bob Signs
If Bob cheats...
Alice gets to sweep all the funds!
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
#2 Payment Network
ALICE CAROL
Open Channel...
ALICE BOB
Open Channel...
#2 Payment Network
ALICE BOB CAROL
Open Channel... Open Channel...
1. Alice wants to send 1 BTC to Carol via Bob
2. Alice pays 1 BTC to Bob, Bob pays 1 BTC
to Carol
Things that may go wrong here...
- Alice does not trust Bob or Carol
- Alice can pay Bob, Bob can choose not to
pay Carol
- Bob can pay Carol, but Carol can claim that
she did not receive the funds
#2 Payment Network Alice wants to send 1 BTC to Carol
1. Carol needs to create an Invoice consists of
a. Vrandom
& hash(Vrandom
)
b. Carol sends the hash(Vrandom
) to Alice
Alice tells Carol to receive 1 BTC from
Bob
2. Alice tells Bob that she will pay him 1 BTC if
he can produce hash(Vrandom
), Bob needs
Vrandom
3. Bob gives 1 BTC to Carol
Carol gives the Vrandom
to Bob
4. Bob gives the Vrandom
to Alice as a proof
Alice gives 1 BTC to Bob
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-creating-the-network-1465326903/
- Decentralized, Instant, Off-chain transfer of Bitcoin without Trust
- 1 On-Chain TX to Open Channel, 1 On-Chain TX to Close Channel
- Bitcoin can be transferred between parties, without broadcasting to network
- New TX replaces Old TX locally within the parties, as long as Channel is
Open
To Summarize...
ALICE BOB CAROL
Open Channel (on-chain)
Close Channel (on-chain)
Open Channel (on-chain)
Close Channel (on-chain)
Transfer Funds (off-chain) Transfer Funds (off-chain)
Things you can do as a developer
1. Spin up a Lightning Network node
2. Full node to watch blockchain for Lightning users
3. Build hardware/apps that transacts off-chain
4. Implement authentication & paywall using Lightning
5. Contribute to the Lightning implementations
○ Ie. LND, Eclair, Lightning-C, Thunder
6. List of resources https://github.com/tmlee/awesome-lightning-network
To Summarize...
➔ Is Lightning a new coin?
◆ No, LN is a play on the way transaction works; uses the bitcoin or litecoin blockchain
➔ Custodian Risk? Trust 3rd Party?
◆ No, LN is designed to not require that; using MultiSig & Hash Time Lock Contracts
➔ Will Lightning lock up my fund?
◆ Yes, you will not be able spend the fund on-chain while the channel is open
◆ No, you will be able to participate in the LN network and send zero confirmation tx
➔ Will there be a block explorer for Lightning?
◆ No, all tx records are stored locally between the 2 parties
◆ Blockchain only records the transaction to Open and Close a channel
➔ Is there mining required?
◆ No, LN transactions are instant
◆ When open/closing the channel, needs to be mined. In this case by bitcoin/litecoin miners
➔ Who collects the fees in the LN?
◆ Middlemen facilitating LN tx between parties
Appendix
Hash Time-Lock Contract
1. Bob generates Vrandom
and produces
2. Bob creates and signs a TX
a. Input
i. MultiSig
b. Outputs
i. 5 BTC to Bob (himself)
ii. 4 BTC to New Multisig
iii. 1 BTC to HTLC Multisig
3. Bob hands the TX to Alice
4. Alice creates and signs a TX
a. Input
i. MultiSig
b. Outputs
i. 4 BTC to Alice (herself)
ii. 5 BTC to New Multisig
iii. 1 BTC to HTLC Multisig
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-completing-the-puzzle-and-closing-the-channel-1466178980/
Time-locks
- Allows locking of spending UTXO to a later
point in time
- CheckLockTimeVerify (CLTV)
- Specific time
- At Block N, On Date
Hash Time-Lock Contract
Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-completing-the-puzzle-and-closing-the-channel-1466178980/
Source: https://lightning.network/lightning-network.pdf
Source: https://lightning.network/lightning-network.pdf
Source: https://lightning.network/lightning-network.pdf
Source: https://lightning.network/lightning-network.pdf
Source: https://lightning.network/lightning-network.pdf

More Related Content

PDF
The Bitcoin Lightning Network
PDF
Bitcoin Lightning Network - Presentation
PDF
Introduction to Lightning Network
PDF
The Lightning Network - A gentle introduction
PDF
Lightning Network
PDF
Bitcoin
PDF
Bitcoin Wallet &amp Keys
PPTX
The Bitcoin Lightning Network
Bitcoin Lightning Network - Presentation
Introduction to Lightning Network
The Lightning Network - A gentle introduction
Lightning Network
Bitcoin
Bitcoin Wallet &amp Keys

What's hot (20)

PDF
Bitcoin Final Year Seminar Report
PDF
The Potential of Blockchain Technology
PPTX
Bitcoin presentation slides
PDF
Understanding Bitcoin
PPTX
StarkNet Intro
PDF
Bitcoin: The Internet of Money
PPTX
Bitcoin
KEY
Introduction to bitcoin
PPTX
Crypto currency and bitcoin, risk and benefits of cryptocurrency
PDF
Web3 Infrastructure Thesis
PPTX
Advantages,disadvantages,applications and economic aspects of bitcoin
PPTX
Bitcoin
PPTX
What's cryptocurrency ?
PPTX
Blockchain
PPTX
Crypto currency
PPTX
Cryptocurrency
PPTX
Cryptocurrency - Digital Currency
PDF
Crypto Wallet Types Explained
PPTX
Bitcoin - the Basics
PPTX
Bitcoin technology
Bitcoin Final Year Seminar Report
The Potential of Blockchain Technology
Bitcoin presentation slides
Understanding Bitcoin
StarkNet Intro
Bitcoin: The Internet of Money
Bitcoin
Introduction to bitcoin
Crypto currency and bitcoin, risk and benefits of cryptocurrency
Web3 Infrastructure Thesis
Advantages,disadvantages,applications and economic aspects of bitcoin
Bitcoin
What's cryptocurrency ?
Blockchain
Crypto currency
Cryptocurrency
Cryptocurrency - Digital Currency
Crypto Wallet Types Explained
Bitcoin - the Basics
Bitcoin technology
Ad

Similar to Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia (20)

PDF
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
PPTX
Technology of Lightning Network in Tel Aviv, Israel
PPTX
Bitcoin - Understanding and Assessing potential Opportunities
PPTX
Blockchain and Bitcoin pod presentation | AMNA SAEED
DOCX
Cryptocurrency-Bitcoin
PDF
The Bitcoin blockchain (en)
PDF
WEEK 4.pdfddddddddddddddddddddddddddddddddddddddddddd
PDF
Bitcoin and the Rise of the Block Chains
PPTX
Smart contracts and applications part I
PPTX
Study on Bitcoin
PPTX
Bitcoin and the future of cryptocurrency
PPTX
Blockchain for Business Yale School of Management Dr John Maheswaran
ODP
A primer on Bitcoin Technology
PDF
Every thing bitcoin in baby language
PDF
Introduction into blockchains and cryptocurrencies
PPT
All you ever needed to know on bitcoin and blockchain
PPTX
Bitcoin A Peer-to-Peer Electronic Cash System
PPTX
Bitcoin
PDF
Introduction to Blockchains
PDF
Lightning Network Economics: Channels
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
Technology of Lightning Network in Tel Aviv, Israel
Bitcoin - Understanding and Assessing potential Opportunities
Blockchain and Bitcoin pod presentation | AMNA SAEED
Cryptocurrency-Bitcoin
The Bitcoin blockchain (en)
WEEK 4.pdfddddddddddddddddddddddddddddddddddddddddddd
Bitcoin and the Rise of the Block Chains
Smart contracts and applications part I
Study on Bitcoin
Bitcoin and the future of cryptocurrency
Blockchain for Business Yale School of Management Dr John Maheswaran
A primer on Bitcoin Technology
Every thing bitcoin in baby language
Introduction into blockchains and cryptocurrencies
All you ever needed to know on bitcoin and blockchain
Bitcoin A Peer-to-Peer Electronic Cash System
Bitcoin
Introduction to Blockchains
Lightning Network Economics: Channels
Ad

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
A Presentation on Artificial Intelligence
PPTX
Spectroscopy.pptx food analysis technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Machine Learning_overview_presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
A Presentation on Artificial Intelligence
Spectroscopy.pptx food analysis technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Programs and apps: productivity, graphics, security and other tools
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
Machine Learning_overview_presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Encapsulation theory and applications.pdf

Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia

  • 1. Intro. to Lightning Network TM Lee, co-founder at Github: @tmlee | Blockchain Developers Malaysia, Sep 6th, 2017
  • 3. Bitcoin Situation Bitcoin SegWit (Segregated Witness) 2MB Block (Later this year) Bitcoin Cash No SegWit BIG Blocks Hardfork Scaling Debate
  • 4. What is the Lightning Network (LN) ? - Proposed by Joseph Poon & Thaddeus Dryja (https://lightning.network/lightning-network-paper.pdf) - Specifications for a Payment Channel on top of the bitcoin/litecoin blockchain - Layer 2 - “Decentralized”, Trustless, High Volume, Instant Micropayment
  • 5. Implementations of the LN Specs => Follow the BOLTs spec https://github.com/lightningnetwork/lightning-rfc 1. LND (GoLang) by Lightning 2. Eclair (Scala) by ACINQ 3. Lightning-C (C) by Blockstream 4. Thunder (Java) by Blockchain.com
  • 6. Applications 1. Micropayments ○ Send satoshis with small transaction fees 2. Payment Streaming ○ Sending small amount of money frequently (ie. secondly, minutely, hourly) ○ Eg. pay per second when watching video on Youtube 3. Machine-to-Machine Payments ○ Bandwidth, data, storage, cpu times, data, can be traded ○ API endpoints usages 4. There could be more...
  • 9. CheckLockTimeVerify (CLTV) - Specific time - Eg. at Block N, specific date/time Time-Lock Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/ CheckSequenceVerify (CSV) - Relative time - N blocks from now, time from now
  • 10. Typical on-chain bitcoin transaction ALICE BOB
  • 11. Transaction in a lightning network ALICE BOB Open Channel TX Payment Channel Remains Open…. microTX 10m฿ microTX 10m฿ microTX 10m฿ Close Channel TX
  • 12. 1. Alice opens payment channel with Bob 2. Bob opens payment channel with Alice 3. Alice & Bob both stake 5 BTC each to a multisig address 4. TX broadcast and mined into Blockchain 5. Once the TX is confirmed, the payment channel is now OPEN! Open Payment Channel Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 13. 1. Alice sends 1 BTC to Bob via payment channel 2. Alice creates a TX a. Input from Open TX Multisig b. Outputs i. 4 BTC to herself ii. 6 BTC to a New Special Multisig c. Creates a key1 d. Alice signs the TX 3. Instead of broadcast, Alice hands TX directly to Bob 4. Bob does the same, creates a TX a. Input from Open TX Multisig b. Outputs i. 6 BTC to himself ii. 4 BTC to a New Special Multisig c. Creates a key1 d. Bob signs the TX 5. Instead of broadcast, Bob hands TX directly to Alice Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 14. 1. Bob sends 1 BTC to Alice via payment channel 2. Bob creates a new TX a. Input from Open TX Multisig b. Outputs i. 5 BTC to himself ii. 5 BTC to a New Special Multisig c. Creates a new key2 d. Bob signs the TX 3. Instead of broadcast, Bob hands TX directly to Alice & key1 4. Alice does the same, creates a TX a. Input from Open TX Multisig b. Outputs i. 5 BTC to herself ii. 5 BTC to a New Special Multisig c. Creates a new key2 d. Alice signs the TX 5. Instead of broadcast, Alice hands TX directly to Bob & key1 Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 16. Close Payment Channel (Usual Case) Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 17. #1 “Double Spend” Problem tn tn+1 Alice sends 1 BTC to Bob Bob sends 1 BTC to Alice Bob buys a Car from Alice Previous Event Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 18. #1 “Double Spend” Problem tn tn+1 Alice sends 1 BTC to Bob Bob sends 1 BTC to Alice Bob buys a Car from Alice Previous Event Bob Signs Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 19. Time-locks - Locks spending this UTXO to a later time Bob Signs Bob Signs Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 20. Bob Signs Bob Signs If Bob cheats... Alice gets to sweep all the funds! Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791/
  • 21. #2 Payment Network ALICE CAROL Open Channel... ALICE BOB Open Channel...
  • 22. #2 Payment Network ALICE BOB CAROL Open Channel... Open Channel... 1. Alice wants to send 1 BTC to Carol via Bob 2. Alice pays 1 BTC to Bob, Bob pays 1 BTC to Carol Things that may go wrong here... - Alice does not trust Bob or Carol - Alice can pay Bob, Bob can choose not to pay Carol - Bob can pay Carol, but Carol can claim that she did not receive the funds
  • 23. #2 Payment Network Alice wants to send 1 BTC to Carol 1. Carol needs to create an Invoice consists of a. Vrandom & hash(Vrandom ) b. Carol sends the hash(Vrandom ) to Alice Alice tells Carol to receive 1 BTC from Bob 2. Alice tells Bob that she will pay him 1 BTC if he can produce hash(Vrandom ), Bob needs Vrandom 3. Bob gives 1 BTC to Carol Carol gives the Vrandom to Bob 4. Bob gives the Vrandom to Alice as a proof Alice gives 1 BTC to Bob Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-creating-the-network-1465326903/
  • 24. - Decentralized, Instant, Off-chain transfer of Bitcoin without Trust - 1 On-Chain TX to Open Channel, 1 On-Chain TX to Close Channel - Bitcoin can be transferred between parties, without broadcasting to network - New TX replaces Old TX locally within the parties, as long as Channel is Open To Summarize... ALICE BOB CAROL Open Channel (on-chain) Close Channel (on-chain) Open Channel (on-chain) Close Channel (on-chain) Transfer Funds (off-chain) Transfer Funds (off-chain)
  • 25. Things you can do as a developer 1. Spin up a Lightning Network node 2. Full node to watch blockchain for Lightning users 3. Build hardware/apps that transacts off-chain 4. Implement authentication & paywall using Lightning 5. Contribute to the Lightning implementations ○ Ie. LND, Eclair, Lightning-C, Thunder 6. List of resources https://github.com/tmlee/awesome-lightning-network
  • 26. To Summarize... ➔ Is Lightning a new coin? ◆ No, LN is a play on the way transaction works; uses the bitcoin or litecoin blockchain ➔ Custodian Risk? Trust 3rd Party? ◆ No, LN is designed to not require that; using MultiSig & Hash Time Lock Contracts ➔ Will Lightning lock up my fund? ◆ Yes, you will not be able spend the fund on-chain while the channel is open ◆ No, you will be able to participate in the LN network and send zero confirmation tx ➔ Will there be a block explorer for Lightning? ◆ No, all tx records are stored locally between the 2 parties ◆ Blockchain only records the transaction to Open and Close a channel ➔ Is there mining required? ◆ No, LN transactions are instant ◆ When open/closing the channel, needs to be mined. In this case by bitcoin/litecoin miners ➔ Who collects the fees in the LN? ◆ Middlemen facilitating LN tx between parties
  • 28. Hash Time-Lock Contract 1. Bob generates Vrandom and produces 2. Bob creates and signs a TX a. Input i. MultiSig b. Outputs i. 5 BTC to Bob (himself) ii. 4 BTC to New Multisig iii. 1 BTC to HTLC Multisig 3. Bob hands the TX to Alice 4. Alice creates and signs a TX a. Input i. MultiSig b. Outputs i. 4 BTC to Alice (herself) ii. 5 BTC to New Multisig iii. 1 BTC to HTLC Multisig Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-completing-the-puzzle-and-closing-the-channel-1466178980/
  • 29. Time-locks - Allows locking of spending UTXO to a later point in time - CheckLockTimeVerify (CLTV) - Specific time - At Block N, On Date Hash Time-Lock Contract Source: https://bitcoinmagazine.com/articles/understanding-the-lightning-network-part-completing-the-puzzle-and-closing-the-channel-1466178980/