{"id":250,"date":"2019-02-27T14:44:24","date_gmt":"2019-02-27T13:44:24","guid":{"rendered":"https:\/\/www.codemotion.com\/magazine\/lightning-network-the-second-layer-of-blockchain-is-ready\/"},"modified":"2020-01-31T11:28:27","modified_gmt":"2020-01-31T10:28:27","slug":"lightning-network-the-second-layer-of-blockchain-is-ready","status":"publish","type":"post","link":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/","title":{"rendered":"Lightning Network, the second layer of Blockchain is ready"},"content":{"rendered":"<p><span class=\"firstcharacter\">B<\/span>lockchain: wherever it\u2019s spoken, wherever it\u2019s discussed, many argue about the economic aspects of <span id=\"urn:batch-analysis-394d23d6-6185-465a-90d3-ccac5c1a9175\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/cryptocurrency\">cryptocurrency<\/span>. But what exactly is blockchain technology? During his talk at Codemotion Milan 2018, <a href=\"https:\/\/milan2018.codemotionworld.com\/speaker\/4141\/\" target=\"_blank\" rel=\"noopener noreferrer\">Paolo Moro<\/a> explained to us in detail the nature of blockchain and its future implications.<\/p>\n<p>This technology is composed by a growing list of records, called blocks, which are linked using <span id=\"urn:batch-analysis-c7a01115-8aee-42d1-8fb8-a6aebf11b6ee\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/cryptography\">cryptography<\/span>. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data (generally represented as a merkle tree root hash). Basically, blockchain is an open and distributed register that can store transactions between two parties in a safe, verifiable and permanent way. Thanks to these <span id=\"urn:batch-analysis-fa4ff616-6615-45d1-949f-a34c641032ab\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/feature_machine_learning\">features<\/span> many industries and companies have radically changed their <span id=\"urn:batch-analysis-ff1e2a6d-b3fa-47d8-a343-d5321453bbc9\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/strategy\">strategies<\/span> to exploit this technology in the most intelligent ways. Through Blockchain it is, therefore, possible to improve the <span id=\"urn:batch-analysis-e6322d82-1b72-490e-b086-abcbc236849f\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/security\">security<\/span> live, thanks to data encryption, making the interchange networks more robust, facilitating the verification of the transitions and the identity of the users.<\/p>\n<p>Blockchain networks use a series of computer algorithms mathematically tested to eliminate security risks derived from human errors. In general, there are two forms of software infrastructures based on Blockchain: public and private. In the first, all participants are responsible for data storage and verification of transitions. In private cases, on the other hand, tests for the verification of transactions belong to a selected group of nodes and, in order to access such networks, a user must be invited to participate by another user or be included in a group chosen since creation of its own reference network.<\/p>\n<p>Most probably private networks are less &#8220;democratic&#8221; than public ones, but in any case they seem to represent the ideal solution for <span id=\"urn:batch-analysis-174c7c2c-1f41-456d-8923-4c434db3156b\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/ember_company\">companies<\/span> (like banks). The advantage of networks that implement Blockchain technologies is that they can be completely decentralised and distributed, Thanks to these characteristics, these networks can escape a vast plethora of attacks, such as DDoS (Denial-of-service attack).<\/p>\n<p>The decentralisation of the networks is a not indifferent aspect. In fact it ensures a greater level of <span id=\"urn:batch-analysis-c13621bf-faa2-46b2-b94a-2d9befd5a418\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/security\">security<\/span> both for users and for <span id=\"urn:batch-analysis-9636d813-e5ab-4f31-af48-28db53dcb0db\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/ember_company\">companies<\/span>, who can devote themselves to other aspects of their <span id=\"urn:batch-analysis-c9be45ec-f5a0-4094-b2ec-6ef87fda1959\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/project\">projects<\/span> without having to always adopt new countermeasures to stem the attacks that are commonly launched against traditional networks. So the Blockchain technologies can help to boost cybersecurity in many fields.<\/p>\n<p>For example, Blockchain could improve the <span id=\"urn:batch-analysis-7da1553c-efe2-4c9a-b22f-890aa7544271\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/security\">security<\/span> of the election system. In fact a Blockchain voting system would use a token-based approach that automatically ensures that each person gets only one vote and, once it enters the ledger, it\u2019s permanent and unchangeable.<\/p>\n<p>Blockchain can also revolutionise the world of contracts, using smart contracts Blockchain could eliminate the need for lawyers in some contract negotiations. This self-executing digital contract can be stored, replicated and managed by a computer network. It is also possible to manage the various contractual details such as payment, products and services.<\/p>\n<p>For business-to-business transactions, Blockchain technologies allow the instantaneous transfer of currency and all the various intermediaries are eliminated. Another sector deeply changed by Blockchain is tradable certificate. The governments of many countries use this type of certificate to measure the levels of energy produced from renewable sources. In the past, tradable certificate required multiple steps of administrative and bureaucratic paperwork. Blockchains have greatly simplified the detection and transmission of <span id=\"urn:batch-analysis-f592aa9e-1d51-45f2-a253-5cc54f733b24\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/data\">data<\/span> on renewable energy sources and their respective energy grids. Also, they encourage individuals to adopt similar solutions with the installation of household equipment.<\/p>\n<p>Obviously, Blockchain reduces costs in banking transactions, because it simplifies the process of authenticating the parties involved while keeping personal information secure.<br \/>\nAlso, since there are few or no <span id=\"urn:batch-analysis-019b3954-8330-4b5e-b5f4-48ee61380364\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/human\">humans<\/span> involved, the process is much faster and the process could be done in a few seconds.<\/p>\n<p>So the <span id=\"urn:batch-analysis-c7b309a7-4d80-4567-80dc-9aeaf73391c8\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/cryptocurrency\">cryptocurrencies<\/span>, like Bitcoin, are just the tip of the iceberg. However Bitcoin can help us understand how services based on Blockchain networks work.<br \/>\n&nbsp;<br \/>\n<a style=\"width: 300px; height: 110px;\" href=\"https:\/\/milan2018.codemotionworld.com\/speaker\/4141\/\"><img decoding=\"async\" class=\"aligncenter wp-image-2474 size-full\" src=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png\" alt=\"\"><\/a><br \/>\n&nbsp;<br \/>\nAs explained by Paolo Moro, <span id=\"urn:batch-analysis-26fbb059-668c-4f6b-b629-799812804431\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/ember_company\">companies<\/span> are well aware of these capabilities of Blockchain networks. In fact, around such technologies were born <span id=\"urn:batch-analysis-eb20cda6-38f9-4600-b26e-d3a653dc2eba\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/project\">projects<\/span> like Lightning Network, that can be defined as a second layer of Blockchain. The Bitcoin Blockchain is a public ledger that records Bitcoin transactions. These transactions are defined using a Forth-like scripting language and consist of one or more inputs and one or more outputs. When a user sends Bitcoins, the user designates each address and the amount of Bitcoin being sent to that address in an output. To prevent double spending, each input must refer to a previous unspent output in the Blockchain. The users of this network keep their Bitcoins inside a wallet, which stores the information necessary to transact Bitcoins.<\/p>\n<p>The cryptocurrency wallet also has specific functions:<\/p>\n<ul>\n<li>it allows us to distribute the public keys created;<\/li>\n<li>it allows you to monitor your output in the blockchain;<\/li>\n<li>it allows you to sign transactions by spending your coins;<\/li>\n<li>it distributes signed transactions in the p2p network.<\/li>\n<\/ul>\n<p>&nbsp;<br \/>\nBitcoin, as well as other Blockchain networks, gives a set of clear rules so that the system works and the transitions can be adjusted. The key to functioning is precisely these rules and the consent of users (50% + 1 of the network confirms the consent if if considers the information true) within the P2P network. A system of rules can obviously be changed within the Blockchain networks but to do this it\u2019s necessary to have the consent of the majority of network. This is one of the fundamental pillars of <span id=\"urn:batch-analysis-27ab652e-8e6c-4aa0-8e2f-85925d2f4265\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/cryptocurrency\">cryptocurrencies<\/span> and the whole market is based on these rules of exchange and coexistence.<\/p>\n<p>The problem of Blockchain-based payment systems, especially on the Net, was that of consent, which must be guaranteed and certified not by a central authority, but by all the parties involved in the system.<\/p>\n<p>The first model used to solve the consensus node, the one implemented in the Bitcoin Blockchain, is the so-called proof-of-work algorithm. It is so defined because it rewards the nodes of the network that maintain the functioning system by performing a thermodynamic work: simply, the cryptographic function hash resolution.<\/p>\n<p>Each transaction within the system, which every 10 minutes is enclosed in a block (10 minutes is the specific period in the Bitcoin Blockchain, but is a variable number in other systems), must be uniquely reconstructed by each node participating in that block of transactions, and then compared with previous hashes. When a block must be closed, it must be sealed with another hash function, a link to the hash function of the header of the block that preceded it, and a string that indicates its position within the Merkle Tree.<\/p>\n<p>To definitively close a block, a network node (miner) must find a nonce, that is a number that uniquely identifies that block within the chain (of blocks). In fact, proof-of-ork is only one of the many algorithms that can be used to implement a secure and reliable Blockchain.<\/p>\n<p>Paolo Moro continued his talk by explaining to us in detail about Lightning Network, a decentralised network using smart contract functionality in the Blockchain to enable instant payments across a network of participants. Lightning Network is dependent upon the underlying technology of the Blockchain. By using real Bitcoin\/Blockchain transactions and using its native smart-contract scripting language, it is possible to create a secure network of participants which are able to transact at high volume and high speed.<\/p>\n<p>The main <span id=\"urn:batch-analysis-0af1bbcb-f175-4a98-84b9-3a5e15a3b4ad\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/feature_machine_learning\">features<\/span> of Lightning Network are:<\/p>\n<p><strong>Instant Payments<\/strong>. Lightning-fast Blockchain payments without worrying about block confirmation times. <span id=\"urn:batch-analysis-7661be65-4598-4417-ba35-c6080fed8d2d\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/security\">Security<\/span> is enforced by Blockchain smart-contracts without creating a on-Blockchain transaction for individual payments. Payment speed measured in milliseconds to seconds.<\/p>\n<p><strong><span id=\"urn:batch-analysis-3d0cab63-665a-44bd-856d-0d80e3b753c1\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/scalability\">Scalability<\/span><\/strong>. Capable of millions to billions of transactions per second across the network.<\/p>\n<p><strong>Low Cost<\/strong>. By transacting and settling off-Blockchain, the Lightning Network allows for exceptionally low fees, which allows for emerging use cases such as instant micropayments.<\/p>\n<p><strong>Cross Blockchains<\/strong>. Cross-chain atomic swaps can occur off-chain instantly with heterogeneous Blockchain consensus rules. So long as the chains can support the same cryptographic hash function, it is possible to make transactions across Blockchains without trust in third party custodians.<\/p>\n<p>Basically Lightning Network is a second layer of Blockchain in which it is possible to offer dedicated services to its customers. With this networks it is possible to work on a secondary Blockchain and to work off-chain (out-of-branch main-transaction chain). For example the Exchange work this way when you buy Bitcoin with a credit card.<\/p>\n<p>Performing side-chain operations allows us to offer extra services to users, obviously guaranteeing their stay in the main Blockchain. For example, sidechain operations can freeze funds up to a certain date.<\/p>\n<p>In Lightning Network is also possible to make Bidirectional Payment Channels. Two participants create a ledger entry on the Blockchain which requires both participants to sign off on any spending of funds. Both parties create transactions which refund the ledger entry to their individual allocation, but do not broadcast them to the Blockchain. They can update their individual allocations for the ledger entry by creating many transactions spending from the current ledger entry output. Only the most recent version is valid, which is enforced by Blockchain-parsable smart-contract scripting. This entry can be closed out at any time by either party without any trust or custodianship by broadcasting the most recent version to the Blockchain.<\/p>\n<p>By creating a network of these two-party ledger entries, it is possible to find a path across the network similar to routing packets on the <span id=\"urn:batch-analysis-f7246eb2-da2c-4005-9ad2-6843d886c76a\" class=\"textannotation disambiguated wl-no-link wl-other\" itemid=\"http:\/\/data.wordlift.io\/wl01770\/entity\/internet\">internet<\/span>. The nodes along the path are not trusted, as the payment is enforced using a script which enforces the atomicity (either the entire payment succeeds or fails) via decrementing time-locks.<\/p>\n<p>As a result, it is possible to conduct transactions off-Blockchain without limitations. Transactions can be made off-chain with confidence of on-Blockchain enforceability. This is similar to how one makes many legal contracts with others, but one does not go to court every time a contract is made. By making the transactions and scripts parsable, the smart-contract can be enforced on-Blockchain. Only in the event of non-cooperation is the court involved, but with the Blockchain, the result is deterministic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blockchain: wherever it\u2019s spoken, wherever it\u2019s discussed, many argue about the economic aspects of cryptocurrency. But what exactly is blockchain technology? During his talk at Codemotion Milan 2018, Paolo Moro explained to us in detail the nature of blockchain and its future implications. This technology is composed by a growing list of records, called blocks,&#8230; <a class=\"more-link\" href=\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\">Read more<\/a><\/p>\n","protected":false},"author":35,"featured_media":251,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[13],"tags":[22],"collections":[],"class_list":{"0":"post-250","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-blockchain","8":"tag-codemotion-milan","9":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Lightning Network, the second layer of Blockchain is ready - Codemotion Magazine<\/title>\n<meta name=\"description\" content=\"Codemotion and Facebook organized the Tech Leadership Training boot camp, heres a personal reportage from one of our attendees.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lightning Network, the second layer of Blockchain is ready\" \/>\n<meta property=\"og:description\" content=\"Codemotion and Facebook organized the Tech Leadership Training boot camp, heres a personal reportage from one of our attendees.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\" \/>\n<meta property=\"og:site_name\" content=\"Codemotion Magazine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Codemotion.Italy\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-27T13:44:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-31T10:28:27+00:00\" \/>\n<meta name=\"author\" content=\"Claudio Davide Ferrara\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png\" \/>\n<meta name=\"twitter:creator\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:site\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Claudio Davide Ferrara\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\"},\"author\":{\"name\":\"Claudio Davide Ferrara\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/7e126fb002c44ab81b24ee243dc2a86d\"},\"headline\":\"Lightning Network, the second layer of Blockchain is ready\",\"datePublished\":\"2019-02-27T13:44:24+00:00\",\"dateModified\":\"2020-01-31T10:28:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\"},\"wordCount\":1679,\"publisher\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png\",\"keywords\":[\"Codemotion Milan\"],\"articleSection\":[\"Blockchain\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\",\"name\":\"Lightning Network, the second layer of Blockchain is ready - Codemotion Magazine\",\"isPartOf\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png\",\"datePublished\":\"2019-02-27T13:44:24+00:00\",\"dateModified\":\"2020-01-31T10:28:27+00:00\",\"description\":\"Codemotion and Facebook organized the Tech Leadership Training boot camp, heres a personal reportage from one of our attendees.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png\",\"width\":800,\"height\":517},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backend\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/backend\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Blockchain\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Lightning Network, the second layer of Blockchain is ready\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#website\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/\",\"name\":\"Codemotion Magazine\",\"description\":\"We code the future. Together\",\"publisher\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\",\"name\":\"Codemotion\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png\",\"width\":225,\"height\":225,\"caption\":\"Codemotion\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Codemotion.Italy\/\",\"https:\/\/x.com\/CodemotionIT\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/7e126fb002c44ab81b24ee243dc2a86d\",\"name\":\"Claudio Davide Ferrara\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/abd7b110a5518b2f0154fdfb31cefbad4892317672726b9c38c3cd16af635abb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/abd7b110a5518b2f0154fdfb31cefbad4892317672726b9c38c3cd16af635abb?s=96&d=mm&r=g\",\"caption\":\"Claudio Davide Ferrara\"},\"description\":\"I collaborate with HTML.it as news editor, writing news on the world of Information Technology, domotics, IoT, free software and Linux distributions.\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/author\/claudio-davide-ferrara\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Lightning Network, the second layer of Blockchain is ready - Codemotion Magazine","description":"Codemotion and Facebook organized the Tech Leadership Training boot camp, heres a personal reportage from one of our attendees.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/","og_locale":"en_US","og_type":"article","og_title":"Lightning Network, the second layer of Blockchain is ready","og_description":"Codemotion and Facebook organized the Tech Leadership Training boot camp, heres a personal reportage from one of our attendees.","og_url":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/","og_site_name":"Codemotion Magazine","article_publisher":"https:\/\/www.facebook.com\/Codemotion.Italy\/","article_published_time":"2019-02-27T13:44:24+00:00","article_modified_time":"2020-01-31T10:28:27+00:00","author":"Claudio Davide Ferrara","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png","twitter_creator":"@CodemotionIT","twitter_site":"@CodemotionIT","twitter_misc":{"Written by":"Claudio Davide Ferrara","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#article","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/"},"author":{"name":"Claudio Davide Ferrara","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/7e126fb002c44ab81b24ee243dc2a86d"},"headline":"Lightning Network, the second layer of Blockchain is ready","datePublished":"2019-02-27T13:44:24+00:00","dateModified":"2020-01-31T10:28:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/"},"wordCount":1679,"publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png","keywords":["Codemotion Milan"],"articleSection":["Blockchain"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/","url":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/","name":"Lightning Network, the second layer of Blockchain is ready - Codemotion Magazine","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png","datePublished":"2019-02-27T13:44:24+00:00","dateModified":"2020-01-31T10:28:27+00:00","description":"Codemotion and Facebook organized the Tech Leadership Training boot camp, heres a personal reportage from one of our attendees.","breadcrumb":{"@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#primaryimage","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png","width":800,"height":517},{"@type":"BreadcrumbList","@id":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/lightning-network-the-second-layer-of-blockchain-is-ready\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codemotion.com\/magazine\/"},{"@type":"ListItem","position":2,"name":"Backend","item":"https:\/\/www.codemotion.com\/magazine\/backend\/"},{"@type":"ListItem","position":3,"name":"Blockchain","item":"https:\/\/www.codemotion.com\/magazine\/backend\/blockchain\/"},{"@type":"ListItem","position":4,"name":"Lightning Network, the second layer of Blockchain is ready"}]},{"@type":"WebSite","@id":"https:\/\/www.codemotion.com\/magazine\/#website","url":"https:\/\/www.codemotion.com\/magazine\/","name":"Codemotion Magazine","description":"We code the future. Together","publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codemotion.com\/magazine\/#organization","name":"Codemotion","url":"https:\/\/www.codemotion.com\/magazine\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","width":225,"height":225,"caption":"Codemotion"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Codemotion.Italy\/","https:\/\/x.com\/CodemotionIT"]},{"@type":"Person","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/7e126fb002c44ab81b24ee243dc2a86d","name":"Claudio Davide Ferrara","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/abd7b110a5518b2f0154fdfb31cefbad4892317672726b9c38c3cd16af635abb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/abd7b110a5518b2f0154fdfb31cefbad4892317672726b9c38c3cd16af635abb?s=96&d=mm&r=g","caption":"Claudio Davide Ferrara"},"description":"I collaborate with HTML.it as news editor, writing news on the world of Information Technology, domotics, IoT, free software and Linux distributions.","url":"https:\/\/www.codemotion.com\/magazine\/author\/claudio-davide-ferrara\/"}]}},"featured_image_src":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-600x400.png","featured_image_src_square":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-600x517.png","author_info":{"display_name":"Claudio Davide Ferrara","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/claudio-davide-ferrara\/"},"uagb_featured_image_src":{"full":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png",800,517,false],"thumbnail":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-150x150.png",150,150,true],"medium":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-300x194.png",300,194,true],"medium_large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-768x496.png",768,496,true],"large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png",800,517,false],"1536x1536":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png",800,517,false],"2048x2048":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png",800,517,false],"small-home-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ.png",100,65,false],"sidebar-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-180x128.png",180,128,true],"genesis-singular-images":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-800x504.png",800,504,true],"archive-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-400x225.png",400,225,true],"gb-block-post-grid-landscape":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-600x400.png",600,400,true],"gb-block-post-grid-square":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/02\/1_b3zgACVmU8PrNHcwpxctKQ-600x517.png",600,517,true]},"uagb_author_info":{"display_name":"Claudio Davide Ferrara","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/claudio-davide-ferrara\/"},"uagb_comment_info":0,"uagb_excerpt":"Blockchain: wherever it\u2019s spoken, wherever it\u2019s discussed, many argue about the economic aspects of cryptocurrency. But what exactly is blockchain technology? During his talk at Codemotion Milan 2018, Paolo Moro explained to us in detail the nature of blockchain and its future implications. This technology is composed by a growing list of records, called blocks,&#8230;&hellip;","lang":"en","_links":{"self":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":3,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":3128,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/250\/revisions\/3128"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media\/251"}],"wp:attachment":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/tags?post=250"},{"taxonomy":"collections","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/collections?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}