{"componentChunkName":"component---src-templates-full-article-js","path":"/content/2021/lightning-network/","result":{"data":{"markdownRemark":{"html":"<br>\n<p>Blockchain are now widely used to perform transactions between two parties where the blockchain ensures the validity of the transaction and records it in the distributed ledger. However, for a transaction to be completed it would require all the individual peer copies of the ledger to be updated. And this can be very time and resource intensive.</p>\n<br>\n<p>Enter the <span class=\"inline-link\"><a href=\"https://lightning.network/\">Lighting Network</a></span>.</p>\n<br>\n<p>The Lightning Network is a protocol that works on tops of a blockchain that allows for transactions to happen off the chain. The protocol allows for a payment channel to be open between 2 parties which is validated by the blockchain. Once a payment channel is set up, all transactions between the 2 parties can happen quite instantaneously. The record of the transaction only needs to be updated in a certificate tied to the payment channel. Once a payment channel is closed, it is recorded in the main blockchain.</p>\n<br>\n<p>An example, a customer can have a payment channel open with a coffee shop and they can use it to pay for coffee everyday. Once the payment channel is closed, say once in a year. The records are ratified and added to the main blockchain.</p>","frontmatter":{"title":"Lightning Network","date":"2021-03-18","condensed":"","type":"notes","published":true,"displaydate":"March 18, 2021","tags":["Crypto","Technology"]},"excerpt":"Blockchain are now widely used to perform transactions between two parties where the blockchain ensures the validity of the transaction and…"},"allMarkdownRemark":{"group":[{"fieldValue":"AI","totalCount":7},{"fieldValue":"Automotive","totalCount":1},{"fieldValue":"Biology","totalCount":11},{"fieldValue":"Brain","totalCount":2},{"fieldValue":"Business","totalCount":31},{"fieldValue":"Crypto","totalCount":6},{"fieldValue":"Data","totalCount":12},{"fieldValue":"Design","totalCount":2},{"fieldValue":"EV","totalCount":2},{"fieldValue":"Economics","totalCount":18},{"fieldValue":"Economy","totalCount":17},{"fieldValue":"Entrepreneurship","totalCount":7},{"fieldValue":"Environment","totalCount":2},{"fieldValue":"Evolution","totalCount":2},{"fieldValue":"Finance","totalCount":36},{"fieldValue":"Future","totalCount":11},{"fieldValue":"Gene","totalCount":2},{"fieldValue":"Hardware","totalCount":5},{"fieldValue":"Health","totalCount":1},{"fieldValue":"Internet","totalCount":17},{"fieldValue":"Investing","totalCount":24},{"fieldValue":"Learning","totalCount":5},{"fieldValue":"Lifestyle","totalCount":1},{"fieldValue":"Linguistics","totalCount":1},{"fieldValue":"Marketing","totalCount":1},{"fieldValue":"Mathematics","totalCount":3},{"fieldValue":"Memory","totalCount":2},{"fieldValue":"Mental Models","totalCount":47},{"fieldValue":"Meteorology","totalCount":1},{"fieldValue":"Models","totalCount":6},{"fieldValue":"Physics","totalCount":3},{"fieldValue":"Productivity","totalCount":8},{"fieldValue":"Programming","totalCount":2},{"fieldValue":"Psychology","totalCount":20},{"fieldValue":"Research","totalCount":9},{"fieldValue":"Social Media","totalCount":5},{"fieldValue":"Sociology","totalCount":2},{"fieldValue":"Software","totalCount":10},{"fieldValue":"Space","totalCount":1},{"fieldValue":"Startups","totalCount":11},{"fieldValue":"Systems","totalCount":15},{"fieldValue":"Technology","totalCount":31},{"fieldValue":"Thinking","totalCount":30},{"fieldValue":"Web","totalCount":1}]},"site":{"siteMetadata":{"url":"https://hari195.github.io/thinkbetter","twitterUsername":"@ThinkBetterBlog","title":"Think Better","siteUrl":"https://hari195.github.io/thinkbetter","keywords":"mental models, thinking, thought, systems thinking, psychology","image":"/images/darkcoverpic.jpg","description":"A place for models, concepts and tools from everywhere.","titleTemplate":"%s"}}},"pageContext":{"slug":"/content/2021/lightning-network/"}},"staticQueryHashes":["261668633","4202924991"]}