<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Xlnomy - Medium]]></title>
        <description><![CDATA[xln.finance - Medium]]></description>
        <link>https://medium.com/fairlayer?source=rss----eec8df0f9085---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Xlnomy - Medium</title>
            <link>https://medium.com/fairlayer?source=rss----eec8df0f9085---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 01:29:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/fairlayer" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[XLN: Extended Lightning Network]]></title>
            <link>https://medium.com/fairlayer/xln-extended-lightning-network-80fa7acf80f3?source=rss----eec8df0f9085---4</link>
            <guid isPermaLink="false">https://medium.com/p/80fa7acf80f3</guid>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Egor Homakov]]></dc:creator>
            <pubDate>Sat, 09 Jun 2018 10:39:00 GMT</pubDate>
            <atom:updated>2019-02-16T16:07:01.802Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TL;DR </strong>LN is prepaid (full-reserve) only, XLN introduces credits and allows postpaid payments, mirroring traditional banking topology yet fixing their disadvantages.</p><h3>Egor Homakov on Twitter</h3><p>FYI, any custodial @lightning wallet == Extended Lightning (as described in https://t.co/o53EvbsC5T). The server receives insured assets on input and promises custodial/uninsured assets to the destination user. Interesting how LN naturally adopts XLN without admitting to it :D https://t.co/H0wzXIu9ay</p><p>Payment-channel-networks is a <strong>brilliant yet incorrectly understood concept</strong> that works perfectly for banking topologies.</p><p><strong>XLN accepts it </strong>and intends to <strong>seamlessly &amp; unobtrusively </strong>integrate into banking 1.0 upgrading it to banking 2.0: now with cryptographically guaranteed deposit insurance &amp; undeniable signed proof of your balance at all times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grcZU_b38yMYC5l_KujfPw.png" /></figure><p>You can see it as a yet another feature added on top, like Atomic Multi Path payments or splicing — XLN doesn’t change the model of LN but simply <strong>adds new functionality that you may choose not to use</strong>.</p><p><strong>XLN is a superset</strong>, and with specific configuration (all credit lines set to 0) functions exactly like original LN.</p><p>What is this functionality I’m offering exactly?</p><h3>How BCH fails to see the real problem of LN</h3><p>Let’s quickly reiterate over what BCH community constantly brings up as “flaws” of LN protocol and see that <strong>they can’t even manage to see the fatal flaw of original LN.</strong></p><h4>1. It will be hub&amp;spoke like ordinary banking (aka “centralized”)</h4><p><strong>Yes, and that’s fine</strong>. LN doesn’t inherently require to have mesh network and simply offers a way for channels to be connected. No one ever said “LN is only LN when it’s a mesh”.</p><p><strong>It’s true that Lightning Labs and co try to push the mesh narrative, but that’s just their wishful thinking. </strong>I have never signed up for their vision of a mesh network, and if you’re a technical person thinking about LN working mesh for a minute you will see it just doesn’t make sense.</p><p>Showing that LN can’t work mesh and only hub&amp;spoke is like taking a candy from a kid. I believe no one of LN devs actually believes in mesh either, they just feel that hub&amp;spoke are bad.</p><h4>2. Since it’s hub&amp;spoke, it’s <strong>centralized, therefore bad.</strong></h4><p>Lion share of crypto commentators have no clue what they are talking about. They are cargo-culting the word “decentralized”, and shame everything that looks “centralized”.</p><h3>Egor Homakov on Twitter</h3><p>Centralized != trusted. Decentralized != trustless.</p><p>Layer 2 systems are exactly good for a reason that you don’t care about their centralization (number of servers that participate in routing). This problem is just out of equation. Channels are <strong>trustless and that’s the word you are looking for.</strong></p><p><strong>Layer 2 is trustless because you have balance proofs which you can enforce onchain and get your money back, guaranteed.</strong></p><p>And this is all that matters for users and network security. As long as you can enforce your balances on the layer 1, you don’t care if it’s a mesh, hub&amp;spoke, or just one giant Visa-like bank. It’s trustless.</p><h4>3. Since it’s hub&amp;spoke, it’s <strong>subject to KYC.</strong></h4><p>I have a separate article that covers just that:</p><p><a href="https://medium.com/fairlayer/miners-validators-are-money-transmitters-too-4c756c01dc1d">Why Miners/Validators Are Money Transmitters Too</a></p><p>In short: If you call the XLN banks money transmitters, then miners/validators are easily transmitters too. Just run a couple of thought experiments: e.g. Paypal can adopt blockchain-look-alike architecture with 4 validators in 4 datacenters and avoid all regulations? Anyone can start a Tether with unlimited blocksize and avoid all regulations?</p><p>That’s not a viable strategy long term, <strong>like selling designer drugs which might be legal right now</strong> but in essence they just try to bypass the wording of the law.</p><p>Instead, try to get real and consider anything that confirms transactions (miners/validators/lattice chains/plasmas etc) a transmitter, act accordingly and seek according licenses.</p><p><strong>Expect a money transmitter test</strong> that will cover any entity that helps to confirm the transaction not just ones that fit into current transmitter definition.</p><h4>4. Mesh routing can’t work</h4><p>Nobody solved routing in mesh networks indeed. However, as we noted in #1 we are totally fine with hub&amp;spoke so routing is a routine (pun intended).</p><h3>The real problem: Receivability and Inward Capacity</h3><p>Enough with BCH FUD, let’s figure out the real problem.</p><p>Here you can see two users with their onchain balances inside the circle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n01z4yJ-SIvXgWrQhLjwew.png" /></figure><p>Paying from onchain to onchain is expensive and incurs high tx fees — it’s only good for large $10k+ payments. So Alice deposits $4 capacity to a channel Alice@Merchant! (We don’t use open/close channel as it’s pretty much useless. All users have channels with all users by default with zero insurance (collateral), and all they do is deposit/withdraw insurance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*clRDeVCJ0eCs9RVuo7ynMQ.png" /></figure><p>Now she can easily send $2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z7eGfGIIE3KOXV5QKjBVxQ.png" /></figure><p><strong>This “vacuum” use case is the only thing that reliably works in original LN.</strong></p><p>Pretty much all other types of payments fail due to lack of <strong>inward capacity</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_uWoOiQ5Wok90uMsOwI-xA.png" /></figure><p>There is no inward capacity for Merchant in this picture so under original LN terms <strong>absolutely no payment can happen from Alice to Merchant</strong>.</p><p>It might come as news to you because before you’ve seen inspiring LN explorers with <a href="https://graph.lndexplorer.com/">gibberish of interconnected lines like this</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKNSG-16cYBpODv7VLrTsw.png" /></figure><p>However, those lines simply don’t matter because this graph doesn’t show actual inward capacity for every node. <strong>Full disclosure: it’s non-existent</strong>.</p><p>Let’s call this new parameter <strong>receivability: </strong>an average % of funds that can be sent from <strong>any user to any another user</strong>.</p><p>This is a pretty good way to estimate overall usability of a payment network: <strong>if you cannot send money through the network what’s use in it?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gh9HY6VPfIqeyagEZA69qw.png" /></figure><p>Here we have a bunch of users with their balances $1, $2 or $3. However in this situation <strong>no one is able to make any payment</strong> and <strong>receivability is 0%.</strong></p><p>Let’s assume the bank (even though it has no incentive) deposits some inward capacity for some users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTztMCGTbJz-J20TQDCFJA.png" /></figure><p>Let’s calculate receivability of every user:</p><p>Alice: 0% (no inward capacity)</p><p>Bob: can receive 1 which is 100% for Carol, John and Merchant, 50% of Dave and 33% of Alice’s funds. <strong>The total is 76%</strong></p><p>Dave has same 76%</p><p>Carol and Merchant has 66%.</p><p>The total receivability of entire network is <strong>0+0+76+76+66+66=47%</strong></p><p>However, this is only for this state at this time. Once any payment is done and inward capacity is exhausted, you need to calculate it again.</p><p>So how would 100% receivabilitiy look like?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0xUSPlfE0UiHz7vhyQvAFw.png" /></figure><p>That thing in the middle is one giant jack pot must hold as much money as the entire volume. This is an obvious problem which was previously outlined in:</p><p><a href="https://medium.com/fairlayer/why-lightning-and-raiden-networks-will-not-work-d1880e4bc294">Why Lightning and Raiden Networks Will Not Work</a></p><h3>No receivability = no users</h3><p>Would anyone use a payment network where they can only <strong>conditionally</strong> receive money and only <strong>conditionally</strong> pay? The answer is no.</p><p>Right now, if you try to install any original LN app you are pretty much guaranteed to end up with <strong>“No route/capacity found” error.</strong></p><p>The whole thing is uncapable to route payments unless enthusiast fund specific routes (<strong>solely being enthusiasts not for some economic incentive</strong>).</p><h3>XLN increases receivability with credit limits</h3><p>The bank has no inward capacity for the receiving user, and has no incentive to provide insurance before hand and lock up their collateral. So what can he provide instead? A signed promise.</p><p><strong>In XLN any user can extend the credit limit to another user, from 0 to Infinity. The credit limit defines how much more you can pay beyond the capacity.</strong></p><p>The bank can send <strong>uninsured assets</strong> and any merchant would take uninsured money any day of the week over original LN’s “no payment can happen” situation.</p><p><strong>99% secure (uninsured) money you can get is better than 100% secure (insured) you can’t receive.</strong></p><p>Let’s say Bob sets credit hard_limit=10 soft_limit=5 (defines when the bank should rebalance). Alice sends $2 to Bob</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogRBqlL99_29py4fX1yBzg.png" /></figure><p>Other than being uninsured (not protected by insurance onchain) those uninsured assets are just as good as insured ones. You can send them anyone else, even to unregistered users (Bob sends $1 to New User)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xu2qemrX6tHpEFozTrJZBQ.png" /></figure><p>Each empty uninsured circle represents full insured circle that bank holds in another channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CooxfR5uME1aE9iU-RORZQ.png" /></figure><p>And once a while bank must do a rebalance (withdraws from channels with Alice, Carol and Merchant and deposits insurance to Bob):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SagMypawluBaWLlQ4TTyAw.png" /></figure><p>With uninsured balances, the scalability of XLN is literally infinite!</p><p>Here’s a simple proof: everyone defines credit line = Infinity to their banks, which means all money can be sent to a single user with no inward capacity needed.</p><p>However, obviously we want some reasonable credit lines (soft=$100 hard $1k right now). But that’s another story.</p><h3>The novelty of XLN</h3><p>XLN shifts the capacity problem from being protocol/onchain-defined to user/trust-defined.</p><p>Your receivability as an XLN node does not depend on your inward capacity anymore, but on credit limit you open to the bank.</p><p>More than that, <strong>XLN allows billions of people from developing countries to use the network</strong> using solely uninsured balances, i.e. never touching the onchain layer. This opens up the blockchain security to people who can’t afford a single onchain tx (50% of Earth population lives on $2/day).</p><p>Our goal is to find proper tradeoff between Total Avg Uninsured Balances and Avg Receivability.</p><p>XLN is strictly superior to original LN because it can function as LN (set all credit lines to 0), while LN cannot function as XLN.</p><p>Some people find similarities to fractional reserve banking but first of all uninsured money is complementary to insured part and will barely exceed 1% of your total funds. Also, uninsured balances are enforceable onchain, which is very different from a trusted balance.</p><p>Fairlayer is the first XLN implementation: <a href="https://github.com/fairlayer/fair">https://github.com/fairlayer/fair</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80fa7acf80f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fairlayer/xln-extended-lightning-network-80fa7acf80f3">XLN: Extended Lightning Network</a> was originally published in <a href="https://medium.com/fairlayer">Xlnomy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Lightning and Raiden Networks Will Not Work]]></title>
            <link>https://medium.com/fairlayer/why-lightning-and-raiden-networks-will-not-work-d1880e4bc294?source=rss----eec8df0f9085---4</link>
            <guid isPermaLink="false">https://medium.com/p/d1880e4bc294</guid>
            <category><![CDATA[raiden-network]]></category>
            <category><![CDATA[lighting]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Egor Homakov]]></dc:creator>
            <pubDate>Wed, 24 Jan 2018 16:51:23 GMT</pubDate>
            <atom:updated>2018-07-01T03:01:03.969Z</atom:updated>
            <content:encoded><![CDATA[<p>Now, when transaction fees for <a href="https://bitinfocharts.com/comparison/transactionfees-btc-eth-bch.html#3m">btc are constantly in $30 area</a> pretty much every thread about scalability ends up with mentioning LN or eth’s Raiden (which recently raised $33M by <a href="https://icodrops.com/raiden/">selling a token the network never needed</a>).</p><p><strong>I wrote this short memo specifically to demonstrate why LN is an ephemeral concept not applicable to reality.</strong></p><p>I learnt about LN back in 2015 from Jonathan Wilkins, CSO of Blockstream, but like everyone else didn’t pay any attention to it because there were no scalability problem.</p><p>The abstracted idea, detached from reality, is great — everyone has a channel with someone else, everything is trustless, you can do onion routing and multi-hop payments to anyone else. Sounds too good to be true, right?</p><p>I can only recall these posts with critics of LN by Jonald:</p><ul><li><a href="https://medium.com/@jonaldfyookball/mathematical-proof-that-the-lightning-network-cannot-be-a-decentralized-bitcoin-scaling-solution-1b8147650800">Mathematical Proof That the Lightning Network Cannot Be a Decentralized Bitcoin Scaling Solution</a></li><li><a href="https://medium.com/@jonaldfyookball/continued-discussion-on-why-lightning-network-cannot-scale-883c17b2ef5b">Continued Discussion on why Lightning Network Cannot Scale</a></li></ul><p>He points to a problem that mesh-network between individuals is unlikely because the system gravitates to centralization.</p><p>He is damn right. But he missed the obvious: even being centralized LN will simply not work due to broken (or, rather, non-existent) incentive model.</p><p>Some people <a href="https://www.reddit.com/r/Bitcoin/comments/6l0z1b/simulating_a_decentralized_lightning_network_with/">do 10 million node simulation to “prove” him wrong</a> — which has nothing to do with real economy, that’s why it’s called a “simulation”.</p><p>On a positive side, LN is not “vaporware” as many bcash fans call it — it’s a very real project. There’s massive work being done on <a href="https://github.com/lightningnetwork/lnd">lnd</a> (which I follow closely) and I’m sure in 3–6 months there will be a fully-fledged production-ready daemon.</p><p>The codebase, the team, the spirit , even the name ⚡— all of them are superb.</p><p>It’s just the design that’s broken.</p><p>Here is the question:</p><h3>LN is production-ready. Now what?</h3><p>How will the network grow from day one? Let’s assume all wallets (client and server side) add payment channel functionality, so I can open a channel to anyone else.</p><p>Who I’d like to open a channel to? Given $30 fees, I will probably think hard before doing that… coffeeshop I’m using twice a month? Bob who I split bills with once a year? let me think… a hub!</p><p>Hubs have connections to other users, that’s what “hub” means.</p><p>Where do hubs come from? Let’s say there’s a respectable team FirstHub that wants to become a LN hub. Ok, here we go, Alice opens a channel to FirstHub. She wants to pay Bob.</p><p>She sends a $10 commitment tx (LN terminology) or balance proof (Raiden terminology) to the hub.</p><p><strong>How the hub pays to Bob? An on-chain channel to Bob is a pre-requisite to routing any payment.</strong></p><p>Why would the hub open a channel to Bob? $30 to open a channel to random dude?</p><p>Should Bob go through KYC or fund a channel himself with FirstHub? So Bob puts $30 in channel and hub what, $300?</p><p>What if Bob doesn’t own any coins and is first time user?</p><p>What if Bob is malicious and runs sybil attack to destroy hub’s liquidity so hub has no money to open new channels?</p><p>Where does FirstHub get this kind of liquidity to start with?</p><p>They are just programmers who run the software. They have just a few Bitcoins. But they need as much money as they have volume. Paypal’s volume is $100B.</p><p>Who wants to give 100 BTC to FirstHub team running a freshly baked lnd daemon? What ROI? For ridiculous “sub-satoshi” off-chain fees? <strong>Nope, thanks, I’d rather HODL than lose my money being a “liquidity provider” for your questionable operation.</strong></p><p>What if there’s a channel to Bob, but the capacity is not enough to route $10? Risk FirstHub’s money and open a new channel?</p><p>What if Bob transfers $100 to Bob2, then Bob2 to Bob3 and so on, how should the hub go about it?</p><p>Open a ton of channels to Sybils, check their identity or ask them to bring just as much money as they want to receive so they would not have a leverage in attacking hub’s liquidity?</p><p><strong>How did we end up developing a technology that does not have a reasonable incentive model?</strong></p><h3>So it will not work?</h3><p>Yep. When it will be released, no one will give a shit. A few enthusiasts will install it, play around in testnet, run “simulations” but that’s about it.</p><p>Maaaybe some exchanges will have channels between each other in some way, but that has nothing to do with LN (mesh network of channels), that’s just channels that existed long before that.</p><p>As a user, you will have no reason to open a channel to anybody, no one will have an incentive to open a channel to you, and no one will have an incentive to run a hub to join you guys together. <strong>Stale mate</strong>.</p><p>Don’t trust me? Fine. Wait 3–6 months and see it yourself.</p><p>Speaking of Raiden, it has much lower chances.</p><ol><li>Obviously, no one is going to transact in shittokens. People need liquid asset such as ether. So first things first, there would have to be a tokenized ether. Not a deal breaker, but would save quite some gas and code complexity if they started with pure ether instead of all kinds of CoffeeTokens. Solidity is pain to write in, so any simplification is a huge win.</li><li>uRaiden is a gimmick — no one ever needed many-to-one unidirectional network. Paying per megabyte of Internet? Come on! It’s all about many-to-many bidirectional channels.</li><li>Very strange Solidity patterns. Each channel requires a new contract to be deployed, while it’s not that hard to engineer the entire network (mapping many =&gt; many) running inside one contract. No benefits on the security side either — having 10000000 contracts vs 1 doesn’t make the system more secure, as all of them could be vulnerable to exact same bug.</li></ol><h3>But is there hope?</h3><p>LN/Raiden incentive model is hopelessly broken, but it’s not a game over. The fix is ridiculously simple.</p><p><a href="https://medium.com/@homakov/introducing-failsafe-network-ea47ab476fe6">Introducing Failsafe Network</a></p><p>The hub can give a signed promise to Bob (positive delta +10) for every commitment they receive from Alice (negative delta -10). Alice can settle whenever she wants (normally when positive delta is reaching 100x of current onchain fee, eg $1,000). A positive delta is not exactly custodian balance, as it’s possible to enforce the hub to pay you onchain as long as the hub is solvent.</p><p>Sure, you don’t have 100% security for 100% of your money, there’s a trade-off to be made.</p><p>But it’s a lot more important to keep first layer lightweight and bandwidth requirements as low as possible than going full Bitcoin Cash like newer blockchains promoting “100,000” tps do.</p><p><strong>Those who sacrifice first layer aren’t real blockchains but scammers who edited a single line of code that limits blocksize.</strong></p><p>In Fairlayer you get 100% security for 99% of your money (collateral) and 99% security for the other 1% (money in-motion, positive deltas). As long as sum of all deltas stored by a hub is &lt;0 (more money owned in negative deltas than promised in positive deltas), the hub is solvent.</p><p>Once it gets insolvent, it will be apparent fairly quickly as it stops settling collateral on time, and people would migrate to other hubs.</p><p>Coming to you this January.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jep4DdF7VzZNrdXVtwL8JQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eG-xDxt7hz3eEG76td2iXg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1880e4bc294" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fairlayer/why-lightning-and-raiden-networks-will-not-work-d1880e4bc294">Why Lightning and Raiden Networks Will Not Work</a> was originally published in <a href="https://medium.com/fairlayer">Xlnomy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>