Reading Assignment: Lightning Basics

Hi, @swisscrypto.

That was a good question, I don’t think I’ve thought of it before.

  • Have you searched for it online yet?

  • What are your thoughts about it? Is it considered or not? :slight_smile:

Ivo

1 Like

@ivga80 I did a quick search online, and it appears that if someone wants to use his/her channels to be routing channels, it is better that he/she advertise them.

If he/she wants to keep them private, for instance to send a payment to a peer, or uses a light device such as a phone or a laptop without running a full node (again just to pay or receive sats/bitcoins with Lightning), he/she can keep it non-advertised.

I think the idea is to avoid clogging up the network with advertised channels that don’t serve as routing channels. But technically, I guess one can have opened channels that are not used for routing (yet) and advertise them (on 1ml.com for example).

1 Like

Nice, answer… :clap:

1 Like
  1. you can refill your LN channel as many times as you want.
  2. Nodes and channels on Lightning will not be visible to the rest of the network. Non-advertised channels can be accessed through routing hints which are embedded in lightning payment requests.
  3. At some point there can be a situation where there is more spending than receiving within a lightning network. If this happens a routing node must contain enough buffer capital to wait until the flow of funds goes back.
  4. Onion routing allows for privacy. The way this is achieved is similar to Tor in that intermediary routing nodes know only the predecessor and immediate nodes in a route and while being ignorant of the nodes that are the ultimate receiver and sender of the funds.
2 Likes
  • 1. How many times can you refill your LN channel?
    As many as you want.

  • 2. What’s the difference between Advertised and non-advertised channels?
    Advertised channels are available for routing and are visible on the network graph (between “Routing nodes”). Advertised channels are used for routing of non-advertised channels which are used by the “end users” by default.

  • 3. How does Buffer capital work?
    “Buffer capital” is the total fund in a Lightning node that required for maintaining the inflow and outflow of payments. Lighting nodes should provide enough buffer capital to avoid channel exhaustion and routing failures.

  • 4.What is onion routing?
    Routing data through layers - intermediate nodes only know the identity of its immediate predecessor and successor in the route.

1 Like
  1. as many times as you like
  2. non-advertised channels are invisible to the network and can only be routed to if you know the particular routing hints for the desination channel. Non-advertised channels are usually used by end-user channels.
  3. This ensures that there is enough liquidity in the channels so that if users are making more transactions in one “direction” there is sufficient buffer capital that can handle the outflows through a particular channel.
  4. This is where the actual packet is wrapped in layers. Each layer is “peeled” back at each network hop. Here the onion only reveals its next destination, securing the packet’s privacy.
1 Like
  1. The lightning channel could be refilled as many times you like.

2.Advertised channel are visible and public to the network whilst Non-advertised channels are not always visible (these ones are usually used in laptops , phones , tables because they not always online).

3.Buffer capital is a certain amount of funds needed to make sure that the nodes are balanced enough to not to let the communication fail. (balanced in both sides)

4.Onion routing is a specific routing where it adds a significant layer of privacy on top of the channel. Nodes would only know identities of previous and next node.

1 Like

1. How many times can you refill your LN channel?
Practically unlimited as long the channel kept with some funds so it will never get closed.

2. What’s the difference between Advertised and non-advertised channels?
From my perspective, Advertised channel are those that are a lightning node that can be used has a payment route for other participants.
While a non-advertised channel are the end users that requires a lightning node to establish a payment route with other participants.
Kinda like SPV’s and Nodes right?

3. How does Buffer capital work?
Its a minimum fund that a channel should lock (maintain) in order to not get closed in the overall flow of the network, by doing this practice, they avoid a channel exhaustion and routing failures.

4. What is onion routing?
A method to keep the privacy and censorship-resistance along the payment multi-hop path.
When a payment is send from a channel that has not opened a channel with the receiver, it will use other users channels to establish the most short path to route that payment, but in order to keep the privacy of those “routing participants” the “onion routing” allows them to not expose themselves in the process, allowing them a censorship-resistance over the network.
Meaning, the data over the payment process will only show the identity of the last participant and the last receiver, but not the entire path that has been toked.

2 Likes
  1. As many times as you want.
  2. Advertised channels are “published” to the network, such as gateway and bridge nodes. non-advertised channels are created when an end user wants to make a payment and connects to an advertised node.
  3. Buffer capital is the amount of money in your node to support sending and receiving amounts through other channels without running dry.
  4. Onion routing is where there is not a direct route to an endpoint but is routed through other servers/routers that only know their predecessor and outbound-node so any trail is lost.
1 Like

As many time you want.

Advertised channels are routing channels thats is always running to be chosen as a route to process a payment.
Non-advertised channels are smaller devices like phones and desktops from end users.

Routing nodes will aggregate inflows and outflows across many users so that overall flows to and from a routing node will be somewhat balanced.

Routing data through layers, the node only knows where the transaction came from.

1 Like
  1. How many times can you refill your LN channel?
    Unlimited times
  2. What’s the difference between Advertised and non-advertised channels?
    Advertised channels serve more the purpose of openly provide routing services for everyone. Non-advertised channels are more focused on end users. They are only intermittently available.
  3. How does Buffer capital work?
    It ensures that there is enough balance to perform routing through nodes. This way efficiency can be ensured.
  4. What is onion routing?
    Onion routes allows each participating node to only see the predecessor and successor. This ensures more privacy.
1 Like
  1. As much as you want
  2. Advertised are visible in the network graph and can ve used to route payments, even without hints, which is not the case for non-advertised
  3. Buffer capital is protection against routing failures due to insufficient fund on one side of the channel
  4. Onion routing means that routing party only know their immediate successor and predecessor, knowing not if they are sender or the final recipient of the payment
1 Like
  1. How many times can you refill your LN channel?

Unlimited refills, as long as funds are available

  1. What’s the difference between Advertised and non-advertised channels?

Advertised channels will be visible in the lightning network and non-advertised channels will not be visible

  1. How does Buffer capital work?

Buffer capital works where by routing nodes supplies flow of funds to handle periods of imbalance in the Lightning network

  1. What is onion routing?

Onion routing is for multi-hop payments where intermediate nodes in the payment path know only the identity of their immediate predecessor and successor in the route on the Lightning network

1 Like
  1. How many times can you refill your LN channel?

A channel can be refilled as many times as a user wants. It works like a bank account or a prepaid card. Why should there be a refill limit? :wink:

  1. What’s the difference between Advertised and non-advertised channels?

The majority of lightning nodes (e.g. smartphones, user’s PCs) with an intermittent internet connection aren’t suitable for routing, in fact they are not visible in the lightning graph. These channels can still be used thanks to some routing “hints”. Even if not advertized, these nodes will probably be the ones used most, because they are the majority.

Advertized ones, are channels that want to be used for routing and earn fees.

  1. How does Buffer capital work?

In order for transactions to be routed through a channel, the channel must have enough capital to fulfill the requested amount. E.g. if Alice wants to send to Bob 0.1 BTC and the payment has to be routed trough Charly, Charly must have at least 0.1 BTC in the channel available to route the request.

  1. What is onion routing?

For multi-hope payments (where the payments must go through different channels to reach the destination) intermediate nodes in the payment path know only the identity of their immediate predecessor and successor in the route.

1 Like
  1. A Lightning Channel can be refilled as often as you like, but it costs an onchain transaction.
  2. Non-advertised channels are end users. Advertised channels are visible in the network and are routing channels.
  3. Buffer captial is used to maintain the in- and outflow of payment channels.
  4. Onion routing is used for privacy. The intermediate node only knowes the identity of next and previous node in the payment path.
1 Like
  1. Refills are unlimited.

  2. Advertised channels are available for routing and are visible in the network graph. Non advertised channels are not available for routing and are only accessible through the use of extra routing information.

  3. Routing nodes must provide sufficient capital to handle imbalances of inflows vs outflows. Insufficient buffer capital leads to periods of channel exhaustion and routing failures.

  4. Using onion routing for multi-hop payments provides added anonymity because intermediate nodes know only the identity of the predecessor node and the successor node.

1 Like
  1. Unlimited times
  2. Advertised channels can be seen on the network map or graph and are available for routing. Non advertised cannot be seen and are not automatically used for routing (but can be in some cases)
  3. Buffer capital refers to the amount held in the output part of the node. It needs to be sufficient enough to equal or be greater than all the inflows coming in at one time or it wont be able to routed through.
  4. Onion routing is an extra layer of privacy in that each node travelled through only know the node before itself and the one after (it sends to) and not the flows or direction other than that.
1 Like
  1. How many times can you refill your LN channel?
    As many times as you wish, there is no limit - in this way channels may be kept open for long periods of time (even years) to avoid repeated Bitcoin on-chain transaction fee each time an existing LN channel is closed and reopened.

  2. What’s the difference between Advertised and non-advertised channels?
    Non-advertised nodes will generally be user nodes (running on a smartphone, laptops etc). These nodes & channels will not be available for routing, not being publicly announced (or advertised) to the network and hence won’t appear in node/channel maps of the LN network. Whilst advertised nodes / channels are publicly visible and hence these public channels are directly available for payment routing.
    Non-advertised private nodes/channels are likely to form the majority of the network, and via extra routing information (“routing hints”) embedded in LN payment requests they will be accessible. In this way LN payments may be sent using a combination of hops over public (advertised) and non-public (non-advertised) channels.

  3. How does Buffer capital work?
    Each node must provide ‘buffer capital’ for the channels it has open. Buffer capital is reduced when transactions flow one way through the channel (outflows with Txs being sent) and increased when Txs flow the other way (inflows with Txs being received). Nodes that experience a predominance of transactions flowing in one direction will start to experience an imbalance in the buffer capital maintained and if a particular node’s channel buffer capital falls too low then the network will no longer be able to route transactions through this channel (i.e. if Tx value is to be potentially routed through a node is higher than remaining buffer capital for that node’s channel - which is called ‘channel exhaustion’). To avoid channel transaction failures, the node would have to add additional capital to the node’s channel buffer capital.

  4. What is onion routing?
    This is where that any node along the route will only know the identity of the immediately preceding node (who sent the transaction) and the next node (to whom the transaction is sent onto). This is important as together with ‘source routing’ (where the sender constructs the routing path) this gives privacy to the senders and receivers of transactions and hence increases censorship-resistance.

2 Likes

Excellent answer sir! really well documented! keep it like that please! :muscle:

Carlos Z.

  1. You can refill the channel as often and with as much money as you want

  2. Advertised channel are used for routing which means they are propagating payments through the network and are visible in the network graph. Non-advertised channels can be seen as “endpoints” which do not propagate transactions and only “receive” money instead of “sending and receiving” payments. Non-advertised channels are mostly end user nodes (laptops, smarthpone) which are accessible through extra routing information.

  3. In order to run a “healthy” node which means your node must have enough balance, your node must have enough buffer capital so that in cases of heavy payments in one direction (more sending than receiving) the node is not running “out of money”. When your node has not enough buffer capital and gets out of balance during some time the routing will failure because it is not capable of propagate payments in the network anymore. This could lead to disconnecting of nodes from your node.

  4. Lightnight is supporting onion routing which means that nodes only know the identity of the node where the payment is coming from and the node to which the payment is going to. This provides enhanced user privacy.

1 Like