Delhi Call Girls Rohini 9711199171 ââđâ Whatsapp Hard And Sexy Vip Call
Â
The Lightning Network - A gentle introduction
1. 1The Lightning NetworkRoland Stadler, May 2019, licensed under CC BY-SA
The Lightning Network
A gentle introduction
2. 2The Lightning Network
Shift Cryptosecurity
Founded in 2015 in Switzerland as a spinoïŹ of the
ETH ZĂŒrich, weâre now a fast growing, international team
of over 20 specialists.
Our unique hardware wallet, BitBox, equips individuals
to easily store, protect, and transact cryptocurrencies.
BitBox is sold and enjoyed by customers
in over 100 countries.
Roland Stadler
Product lead, IT engineer, Full node evangelist
roland.stadler@shiftcrypto.ch
5. 5The Lightning Network
Global consensus
No trusted party
Permissionless access
But these characteristics come with a price.
Bitcoin is a phenomenal success.
6. 6The Lightning Network
Global consensus
Consensus
means everybody agrees about certain facts.
Local consensus
is âcommunicationâ, no special technology needed.
Global consensus
in Bitcoin is used to solve the âdouble spendâ problem
and create digital scarcity.
7. 7The Lightning Network
No trusted party
Global consensus is easy when trusting a central party.
Only a decentralized system can avoid centralized
governance that could be malicious or become a target.
The right incentives are necessary for:
â Economic participants: full veriïŹcation of the global
ledger and transactions for their own sake.
â Miners: itâs more proïŹtable to play by the rules.
â Developers: no formal governance or leadership.
8. 8The Lightning Network
Permissionless access
Consensus without a single trusted party is not very hard
with known participants.
Bitcoin is built on the ethos of cypherpunks, distrustful of
authorities, privacy-conscious and committed to the idea
of open-source software.
In that regard only an open system can be regarded as
good money, enabling permissionless innovation.
9. 9The Lightning Network
Bitcoinâs sacriïŹces
To achieve these goals, Bitcoin needs to sacriïŹce
â Speed: to keep the network in sync, consensus is
achieved in intervals
â Throughput: blocksize needs to be limited, the amount
of transactions per block is ïŹnite
â Lightness: full validation replays every transaction ever
conducted (demand for storage, computing power)
Result: a super-secure system that does not really scale.
10. 10The Lightning Network
A blockchain cannot grow indeïŹnitely:
â Initial block download
â Block propagation
â Block validation time
Linear scaling does not work:
â Bitcoin: ~400â000 tx per day, blocks < 2 MB
â VISA: ~150 million tx per day
â Bitcoin âVISAâ: 370 MB blocks, 50GB+ per day
Only 7 transactions per second?
12. 12The Lightning Network
Bitcoin as the âbase layerâ
After ten years of battle-testing, Bitcoin development has
matured and the system evolves conservatively.
New functionality must not disrupt the existing network
that represents over 100 billion USD.
Innovation does not need to create a new, initially weak
blockchain network: it can just reuse the Bitcoin security
and build on top!
The Lightning Network is such an additional layer.
13. 13The Lightning Network
Evolution in layers
Complex systems like the Internet can be modelled in
layers, each abstracting the complexities below.
Layers can become more stable over time, new features
are added on top, without disrupting them. Nobody tries
to stream YouTube directly on the bare network cable.
14. 14The Lightning Network
OïŹ-chain transactions
Is it really necessary to settle every coïŹee purchase
globally and keep its record forever?
The Lightning Networks takes load oïŹ the blockchain
with two innovations:
â Payment channels: two peers exchange signed Bitcoin
transactions without broadcasting. But they could!
â Mesh network: route payments through multiple
channels to reach people without direct connection.
15. 15The Lightning Network
Tech stuïŹ: Payment Channels
Alice Bob
Alice and Bob
create a channel. A: 10 B: 0
Funding tx
A: 7 B: 3
Settlement tx
A: 8 B: 2
New balance
2
4
A: 4 B: 6
New balance
3
A: 7 B: 3
New balance
A: 7 B: 3
Transactions are
not broadcasted,
but each could
settle any time.
Important
Mechanism to
prevent settlement
of old balances.
18. 18The Lightning Network
Usually, local consensus is enough
There is no need to settle smaller payments globally and
preserve them forever. Consensus is established locally
in a payment channel and can be updated for free as long
as both participants agree.
Just the possibility to settle the ïŹnal channel balance at
any given time is enough to establish trust.
In that way, the Bitcoin network acts as arbiter when
disputes occur by âfalling back on-chainâ.
19. 19The Lightning Network
Yay, Lightning!
The Lightning Network is not only a scaling solution
for Bitcoin, it also enables new use cases.
â Payments are instant and ïŹnal
â Network scales to millions of transactions / sec.
â No more manual errors due to invoices
â Micropayments for minimal fees
â More private due to local consensus
20. 20The Lightning Network
Meh, Lightning...
But it is no silver bullet. It adds complexity and
has its own restraints.
â Lightning funds are in hot wallets
â Recipients of payments need to be online
â Wallets need to actively manage channels
â Routing is a non-trivial challenge
21. 21The Lightning Network
Implementations
The Lightning Network is a protocol,
not a speciïŹc implementation and
not owned by anyone.
â Implementations:
c-lightning, LND, eclair
â Wallets: too many to list
â Payment Processors:
BTCPay, Strike, OpenNode, ...
22. 22The Lightning Network
Real-world examples (1)
At the Energy Kitchen in Berne, coïŹees and
sandwiches can be ordered and paid for directly in
the shop window.
23. 23The Lightning Network
Real-world examples (2)
BitreïŹll sells gift cards and phone reïŹlls online.
Most customers are from emerging markets,
without any other access to these products.
Immediate delivery of digital goods with instant
payments.
24. 24The Lightning Network
Real-world examples (3)
Online tipping in social media with minimal
amounts is only possible with a micropayments
solution.
This works either by publishing a simple link, or
through plugins for Twitter, Reddit, TelegramâŠ
https://tippin.me/@Stadicus3000
25. 25The Lightning Network
Real-world examples (4)
Everybody can set up their own fundraiser or start
a crowdsourcing campaign, with global reach.
26. 26The Lightning Network
Real-world examples (5)
Vending machines with a data connection can
accept payments with minimal hardware, no
payment processor required.
âInstantâ payments are necessary
when handing out physical
goods or ïŹat money (ATM).
28. 28The Lightning Network
TL;DR
â Permissionless blockchains donât scale. At all.
â Layers allow to build complex systems over time.
â The Lightning Network leverages the Bitcoin network
as arbiter for settling disputes.
â Fast and lightweight oïŹ-chain transactions scale very
well, exceeding all existing on-chain solutions.
â Lightning has its own set of challenges and trade-oïŹs,
it is complementary to on-chain transactions.
â The power of permissionless innovation is hard to beat.
30. 30The Lightning Network
Further reading
â Lightning Network introduction and whitepaper: https://lightning.network
â Introductory and advanced video lectures: https://lightningresidency.com
â Comprehensive list of resources: https://www.lopp.net/lightning-information.html
â Build your own Bitcoin / Lightning full node: https://stadicus.github.io/RaspiBolt/
Image attribution
All icons made by Freepik from www.flaticon.com
Internet protocol illustration from https://en.wikipedia.org/wiki/Internet_protocol_suite (CC BY-SA 3.0)
Mobile wallet picture from https://zap.jackmallers.com
Real world example (1): photos by Digitale Welt
Real world example (4): Sintra Bitcoin ATM by Lamassu
License
This presentation is licensed under CC BY-SA: Attribution-ShareAlike 4.0 International