106 points · by mOneThousand · 8y ago · 98 comments
The LN claim is basically decentralized BGP but much more complex and prone to race condition errors.
https://www.youtube.com/watch?v=Ug8NH67_EfE&feature=youtu.be...
The white paper doesn't even mention how LN routing works!
8.4 Payment Routing
It is theoretically possible to build a route map
implicitly from observing 2-of-2 multisigs on the
blockchain to build a routing table. Note, however,
this is not feasible with pay-to-script-hash transaction
outputs, which can be resolved out-of-band from the
bitcoin protocol via a third party routing service.
Building a routing table will become necessary for
large operators (e.g. BGP, Cjdns). Eventually, with
optimizations, the network will look a lot like the
correspondent banking network, or Tier-1 ISPs.
It seems impossible to implement true decentralized routing, so it's likely they're using some sort of hack to prioritize "masternodes" as the backbone routers instead of actual peer to peer routing.What do you mean "impossible to implement true decentralized routing"? Many examples of decentralized distance vector and link state algorithms exist. I'm not sure what they are doing but routing isn't some mystical thing that requires a master node.
Here's a thing I did a while ago: https://github.com/jtremback/reactive-payment-routing
Which I have to say, is a very cool project and one I would love to help spread when your protocol can handle 3G or LTE-like speeds. Keep up the good work: you're really on to something with this project!
It seems like p2p routing might work for a small network, but the complexity turns chaotic at scale very quickly. I guess time will tell how effective the LN implementation is.
Routing does not work. And it will never work.
Long live Bitcoin Cash
Better, physical proximity (via Bluetooth or WiFi mesh networks) would provide immediate local routing. This would work with the above.
Satoshi himself proposed the first version of payment channels [1]. The Lightning Network paper has zero authors from Blockstream [2]. At least two other entirely independent companies are working on Lightning Network implementations [3][4]. It's well understood how trustless LN transactions work [5]. The spec [6] and code are open source, feel free to look for a "backdoor".
1. https://en.bitcoin.it/wiki/Payment_channels#Nakamoto_high-fr...
2. https://lightning.network/lightning-network-paper.pdf
3. https://github.com/lightningnetwork/lnd
4. https://github.com/ACINQ/eclair
> How do we know that there isn't an easy backdoor that allows this network to be controlled for Blockstream's purposes?
The code of clightning is open source, so is the code of most known clients out there.
> The fact that it is so complex and ill defined is dangerous and an antithesis of decentralized system design and ethos
Your comment really seems like a baseless conspiracy theory full of ad hominems with no proof of what you mention: - it's not that crazy complex compared to all the intricacies / op codes and game theory of the Bitcoin base layer - it is more easily distributed than the base layer since it's easier to run a LN node by itself (albeit still relying on a bitcoin full node that may not be in your control if you wish it so).
And like other said, Blockstream doesn't have many employees working on the base protocol (3 now afaik since Luke Dash JR & G.Maxwell do not work for Blockstream anymore). The few they have actually made very useful contributions to the code base since 2011/2012 which you can easily see through and most of their code is also used in all forks of Bitcoin aka BTG, BCH etc...
> They were responsible for all the propaganda and talking points against bumping the block size leading to the BCH fork
Any proof on that? Almost no bitcoin developers (albeit none apart of maybe 1 if you count Gavin which didnt contribute for years on the code base) left to work on this particular fork. There was no scientific consensus stipulating larger blocks (than 4mb) would be safe hence why the community at large did not support BCH (and why it has a minority of market share and mining share, TX usage etc).
It's a nice tool, akin to the block explorers out there. One minor thing I noticed, where you define the node colour in the sidebar, sometimes if it is dark the hexcode cannot be seen.
There's a way to fix this by dynamically determining the color in javascript for example, and changing the text atop of it to white.
I think the most important aspect is that Lightning Nodes are just sending bitcoin transactions, the whole system is trustless, the node relying your transaction to destination can't steal your money any more then bitcoin full node relying your transaction to miners can.
A LN node is no more a "money transmitter" than any internet router that a bank transaction flows through is a "money transmitter".
The node or router can't "steal" or modify the amount or destination in any way, and there is no counterparty risk with either of them, so they both aren't "money transmitters".
The end user experience will be having a hot wallet in your computer/phone or online service like coinbase that will handle all the routing, channel setup, etc for you. Like when you use bittorrent you don't need to manually connect to peers, the bittorrent client handles that for you.
ALICE --(IOU to bob for 10k)---> CAROL --(IOU from alice for 10k)--> BOB
a. What effect does this have on transaction sizing?
b. Does the the node owner charge fees for each transaction?
c. How are the channel amounts calculated? Do they include mining and node fees?
b. Yes, it's part of node configuration, you can set whatever fee you like, but most probably at this point everybody will just route around you.
c. When creating the funding transaction you decide the amount of satoshi to be locked up in a channel for use in LN. Funding transaction is subject to normal Bitcoin transaction fees (x sat/byte, the higher you pay the faster it's committed and your channel becomes usable).
b. Thanks for the answer. (Edited): So, it seems the current argument there will be too much competition for nodes hence people will automatically set low or no fees.
c. This is unclear to me. Normally, when I am paying for stuff in bitcoin sellers tend to attach an estimated fee for the transaction. Lets take an example, I need to pay 0.1 BTC they will charge 0.101 BTC. The 0.001 BTC is the transaction fee.
With LN nodes charging fees on top of it, businesses now will have two fees to account for?
Additionally, my understanding now is that there are three fees now:
a. Channel Opening fees to miners
b. Node fees which might be zero
c. Channel Closing fees to miners
LN deposit/close transactions don't carry any information about LN payments made on the channel, so their size doesn't grow with usage. They are simply 2-2 multisig transactions, so somewhat larger than the minimal 1-in-1-out tx, but probably (didn't check this) not larger than median bitcoin transaction.
> And how does Segwit work for these transactions
those are always pay-to-witness-script-hash transactions, so they don't even work without segwit: https://github.com/lightningnetwork/lightning-rfc/blob/maste...
> current argument there will be too much competition for nodes hence people will automatically set low or no fees
it's not as easy, there are multiple incentives and discentives working here. lowering fees will bring more volume but increase cpu/io load. higher volume also means you need to have more capacity on your channels, which essentially means lots of funds in a hot wallet - a target for hackers. high volume also means you might become target for authorities wanting to track payments in LN. et cetera.
> With LN nodes charging fees on top of it, businesses now will have two fees to account for?
technically yes, but the fee for deposit transaction is paid only once per channel and merchants (usually) won't be involved with it. it's reasonable to assume that users will mostly fund channels with larger nodes because that brings better connectivity (you don't want to have a channel with starbucks, mcdonalds and burger king, you want single channel with a node that invested in having a lots of channels).
as for the three fees you listed - yes (but not necessarily to miners?). the assumption is that you will rarely be opening and closing channels, just like you're rarely opening and closing a new debit card. you'll open with a reliable node that makes you routable, you'll once in a while deposit more funds and eventually you will close the channel. in between you can have bajillion transactions for which you will pay close to zero fees.
b. The node owner do charge fees every time someone use their node : https://bitcoin.stackexchange.com/questions/68767/how-are-fe...
c. There's not mining in lightning, it's only done on blockchain. What do you mean "channel amounts" ?
It's not an omission, it was done this way on purpose.
https://www.youtube.com/watch?v=Ug8NH67_EfE&feature=youtu.be...
Without decentralized routing, It seems like they're simply prioritizing nodes with large sums of BTC as the central operator hubs.
Centralized payment processing hubs?