tldr

Share this post

Explained Simply: Lightning Network (for scaling Bitcoin)

marygao.substack.com

Explained Simply: Lightning Network (for scaling Bitcoin)

For the last tldr of 2022, let’s go back to the beginning with Bitcoin, and more specifically, Lightning Network, one of the most prominent attempts to scale Bitcoin

Mary Gao
Dec 16, 2022
1
Share this post

Explained Simply: Lightning Network (for scaling Bitcoin)

marygao.substack.com

Why? “The Bitcoin Lightning Network” was first proposed in 2015, aiming to solve the obvious problem that Bitcoin’s network cannot handle meaningful scale

What? Lightning Network is an off-chain decentralized protocol using a network of micropayment channels to reduce the load on Bitcoin’s network

How does it work? There are 2 core components to understand: first, the protocol whereby 2 parties communicate over a channel, and second, routing transactions via multiple channels

Transactions (ignoring routing)

A and B want to transact. The channel between A and B is essentially just a 2 of 2 multisig wallet (they both agree to all transactions). They can transact as many times as they want, which updates their respective balances. This is all done off-chain. When the channel is closed, only the final state of their balances is recorded on-chain.

  • Each transaction requires A and B to both sign commitment transactions that update the balance of the channel, the new balance invalidates the old state

  • There are a few mechanisms that prevent fraud and here I’ll explain a revocable transaction:

  • In addition to commitment transactions, there is a revocable transaction that has a balance (let’s say 5BTC) and a timeout (let’s say 1000 confirmations). Essentially if either party tries to send a fraudulent balance to the Bitcoin blockchain, there is a 1000 confirmation time period where the other party can use a revocation key to take the whole balance of the blockchain as punishment. This part is complicated but functionally, it acts as a proof that one party violated the terms of the contract and this is programmatically adjudicated by the blockchain

Routing (using multiple channels)

  • This is quite complicated but what you need to know is it’s not efficient if every party A and B had their own channel, because the number of channel would grow exponentially

  • So let’s say A wants to transact with E, and there are existing channels that A could use such that A could send to B, B to C, C to D, and finally D to E

  • A would use an HTLC (a contract with a hash and timelock component). A essentially says in the contract “I will pay B some amount if you can route me to E within the next 10 blocks”

  • B and the other middlemen each try to pass the transaction towards E and if successful, take a fee for the routing. If unsuccessful at any point in the routing, the funds stay frozen until the timelock expires at which point funds get returned

This is an oversimplification (a tldr version if you will), but hopefully gives you a sense of one of the most prominent attempts to make Bitcoin’s vision of digital transaction currency truly mainstream-adoptable

*If you’re working on something, tell me about it here*


Neither GC nor any of its advisory clients, including all GC-managed investment vehicles, holds any form of ownership or financial interest in the cryptocurrency or digital asset described in this post. GC has not performed any due diligence, research, analysis, or evaluation of the potential merits, if any, of this cryptocurrency or digital asset project and GC cannot verify any claims made by any promoter or supporter of the cryptocurrency or digital asset described. Nothing in this post should be seen as, nor is it intended to be, a recommendation or suggestion to invest in, purchase, sell, hold, trade, or participate in this or any cryptocurrency or digital asset project. GC in no way endorses or encourages anyone to circumvent or violate any applicable laws, rules, and regulations, including any applicable Anti-Money Laundering/Know-Your-Customer (AML/KYC) and related banking and financial regulations. (See Disclaimer below for further details.)
Disclaimer
Views expressed in “posts” (including podcasts, videos, newsletters, and social media) are those of the individual GC personnel quoted therein and are not the views of General Catalyst Group Management, LLC, “GC”) or its respective affiliates. GC is an investment adviser registered with the Securities and Exchange Commission. Registration as an investment adviser does not imply any special skill or training. The posts are not directed to any investors or potential investors, and do not constitute an offer to sell — or a solicitation of an offer to buy — any securities, cryptocurrencies, or any financial instrument or property, and may not be used or relied upon in evaluating the merits of any investment.
The contents in here — and available on any associated distribution platforms and any public GC online social media accounts, platforms, and sites (collectively, “content distribution outlets”) — should not be construed as or relied upon in any manner as investment, legal, tax, or other advice. You should consult your own advisers as to legal, business, tax, and other related matters concerning any investment. Any projections, estimates, forecasts, targets, prospects, or opinions expressed in these materials are subject to change without notice and may differ or be contrary to opinions expressed by others. Any charts or figures provided here or on GC content distribution outlets are for informational purposes only, and should not be relied upon when making any investment decision. Certain information contained in the content has been obtained from third-party sources. While taken from sources believed to be reliable, GC has not independently verified such information and makes no representations about the enduring accuracy of the information or its appropriateness for a given situation. In addition, posts may include third-party advertisements or links to websites not associated with GC in any way; GC has not reviewed such advertisements or websites and does not endorse any content contained therein. All content speaks only as of the date indicated and is subject to change at any time. 
Under no circumstances should any posts or other information provided on this website — or on associated content distribution outlets — be construed as an offer soliciting the purchase or sale of any security or interest in any pooled investment vehicle sponsored, discussed, or mentioned by GC personnel. Nor should it be construed as an offer to provide investment advisory services; an offer to invest in an GC-managed pooled investment vehicle will be made separately and only by means of the confidential offering documents of the specific pooled investment vehicles — which should be read in their entirety, and only to those who, among other requirements, meet certain qualifications under federal securities laws. Such investors, defined as accredited investors and qualified purchasers, are generally deemed capable of evaluating the merits and risks of prospective investments and financial matters.
There can be no assurances that GC-managed investment vehicle’s objectives will be achieved or investment strategies will be successful. Any investment in a vehicle managed by GC involves a high degree of risk including the risk that the entire amount invested is lost. Any investments or portfolio companies mentioned, referred to, or described are not representative of all investments in vehicles managed by GC and there can be no assurance that the investments will be profitable or that other investments made in the future will have similar characteristics or results. A list of investments made by funds managed by GC is available here: https://www.generalcatalyst.com/portfolio/. Past results of GC’s investments, pooled investment vehicles, or investment strategies are not necessarily indicative of future results. Excluded from this list are investments (and certain cryptocurrencies or digital assets) for which the issuer has not provided permission for GC to disclose publicly. GC has no special role in any of cryptocurrency or related projects or power over their management. To the extent any GC-managed investment vehicle has any form of ownership or financial interest in a cryptocurrency, digital asset, or related project, GC does not undertake to continue to have any involvement in these projects other than as an investor and token holder, or holder of a form of economic or ownership interest, or right to a future ownership interest, and other token holders should not expect that it will or rely on it to have any particular involvement.
For other GC site terms of use, please go to https://www.generalcatalyst.com/terms-of-use/. Additional important information about GC, including our Form ADV Part 2A Brochure, is available at the SEC’s website: 
http://www.adviserinfo.sec.gov
Share this post

Explained Simply: Lightning Network (for scaling Bitcoin)

marygao.substack.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 Mary Gao
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing