Questions tagged [lightning-network]

Proposed payment system leveraging payment channels which allow re-negotiation of balances that finally get executed on the Bitcoin blockchain.

Filter by
Sorted by
Tagged with
2
votes
1answer
20 views

Lightning - why are commitment transactions supposed to use different keys

In the paper BIP32 and deterministic key derivation is mentioned. But why given that two peers directly exchange messages (i.e., there is no need to obscure anything)? Alice always exchanges state ...
0
votes
1answer
11 views

How to obtain your nodeID (QR code) in eclair-mobile?

I want someone to open a direct (no hops between us) channel to me in lightning (she will be the funder, I'll be the fundee). How can I get the QR code of my node in my eclair wallet to show to the ...
1
vote
2answers
39 views

Can someone explain how an HTLC is redeemed?

I'm looking at Bolt 3 in the Lightning rfc. My question is about how a HTLC is redeemed. Example HTLC script for reference: # To remote node with revocation key OP_DUP OP_HASH160
1
vote
1answer
33 views

Eltoo channel - can opening be off-chain

In Eltoo the set-up phase is similar to Lightning. You fund a n-of-n multisig (usually 2-of-2). Of course you don't want to publish this until you have a bail-out possibility - called "settlement ...
2
votes
1answer
46 views

What is the rationale for the Lightning network's path length limit (20 hops)?

A sender in the Lightning network can choose a path with up to 20 intermediaries (BOLT4). Tor is another network that uses onion routing for anonymity. However, in Tor all paths have 3 intermediaries,...
2
votes
1answer
19 views

Does node order have meaning in a JSON describing the Lightning network graph?

LN clients can export their view of the network as a JSON file. For instance, in a file obtained from LND, a channel (edge) is described by this structure: { "channel_id": "555479871492063233", ...
2
votes
1answer
66 views

Lost funds on my lightning node?

I've been using lightning network daemon (LND). In an effort to have a balanced node with somewhat equal amounts on both side of my channels, I've sometimes opened channels with the command lncli ...
0
votes
1answer
26 views

Help signing a P2WSH Multisig

I'm trying to construct a transaction in regtest mode that spends from a P2WSH 2-of-2 multisig. Here is the funding transaction for 5 btc. It also contains a change output for 5 btc. ...
0
votes
0answers
18 views

Creating beck32 address on bitcoin core automatically generate another address on lightning network

my lightning network backend is bitcoind. Interesting when I execute getnewaddress label bech32 another bech32 address is automatically generated. I found it because at the lightning network console ...
2
votes
1answer
30 views

“private” agreement between two c-lightning nodes on channel closure fee

When i was at LNConf, one of the devs of c-lightning (IIRC) told me that there is a custom, manual way to agree between two nodes on channel closing fees. Can anyone elaborate how this is possible? I ...
3
votes
2answers
88 views

Will a channel be automatically closed if there's a expiring HTLC that doesn't have its own output in the commitment transaction?

When routed Lightning payments are smaller than some amount they don't get their own HTLC output in the commitment transaction. Instead the funds reserved to it are directed to transaction fees. When ...
2
votes
1answer
17 views

How and When are lightning channels disabled?

On the testnet and some mainnet there are channels which are disabled, so if you try to route a payment through them it failed with this as an error message. Reading through the RPC commands, it seems ...
2
votes
1answer
39 views

lightning network bitcoin howto install

Hello fellow bitcoiners, I would like to install lightning over Bitcoin core - I already have a full node. But every guide I follow ends up with a broken build or some issue preventing to finish the ...
0
votes
1answer
27 views

Bidirectional channel opening in c-lightning

With the current version of c-lightning is it possible to open a bidirectional channel funded by both parties? I managed to open a channel with fundchannel command, but that seems to be a ...
2
votes
1answer
31 views

How does the 'queryroutes' function in lightning's LND calculate the route fees?

I am testing my own routing implementation and for some weird reason a handful of channels reject my payment stating InsufficientFee. The scenario is A -c1-> B -c2-> C whereby Node A is ...
0
votes
1answer
22 views

Doubt on lightning channel opening

It's 5 days since I opened my first (and unique, for now) lightning channel. Unfortunately it seems that only me have funded the channel while the counterparty didn't, so the channel it's actually a ...
2
votes
2answers
153 views

Throughput of Lightning Network

Is there any reliable source of information regarding the estimation of the number of payments that occur in Lightning Network every day? If the total number is impossible to estimate are there any ...
2
votes
1answer
83 views

In Lightning commitment transactions, what do the upper 8 bits of sequence and locktime represent?

In Bolt 3 of the Lightning Network specs, for commitment transactions it states: locktime: upper 8 bits are 0x20, lower 24 bits are the lower 24 bits of the obscured commitment number. ...
1
vote
2answers
43 views

Could someone provide an example of a tx spending from an input with a relative LockTime?

I want to see an example of a raw transaction which spends from an input which has a relative LockTime applied to it. An example would be a transaction from a Lightning payment channel in which a user ...
2
votes
2answers
84 views

What is the difference between listpeers vs listnodes commands?

In c-lightning implementation, what is the difference between the listpeers and listnodes commands of lightning-cli?
2
votes
1answer
27 views

Would a dual-funded channel be a single UTXO?

Would a dual-funded channel be a single tx? The peers would cooperatively create a single tx with at least 1 input each. Is this correctly understood?
0
votes
1answer
39 views

How to securely update and verify C-Lightning release?

Recently, a new version (v0.7.3) of C-Lightning was released. The GitHub page has detailed instructions on how to build the software from source, but does not provide much details as to how to update ...
1
vote
0answers
38 views

How can I check my transaction signature is correct?

I have tried recreating the exact transaction from "Appendix B: Funding Transaction Test Vectors" from BOLT 3 from the Lightning RFCs. My transaction looks exactly the same when parsed, except my ...
1
vote
1answer
63 views

If a user recovered data directory of LN node software with an old backup, what would happen? Would cooperative channel closing be possible?

As far as I know, the "Data Loss Protection" feature would just request the counterparty to unilaterally close the channel. I wonder if mutual closing is still possible, with old channel states? By ...
1
vote
1answer
44 views

lightning node data visibility on explorers

I'm trying to set my first c-lightning node with docker-compose using image from https://hub.docker.com/r/elementsproject/lightningd. currently, my node can connect and open channel with other nodes (...
0
votes
1answer
43 views

Is there a limit to the TLV size?

I hear that a TLV field was recently added to the payment format. This will allow the sender to attach a message to the recipient in the payment package. How much data can be included in the TLV field?...
1
vote
1answer
38 views

Why do we need revocation in both the offered/received HTLC outputs and HTLC timeout/success outputs?

The witness script for the output in the HTLC success/timeout transaction is: OP_IF # Penalty transaction OP_ELSE `to_self_delay` OP_CHECKSEQUENCEVERIFY ...
2
votes
1answer
52 views

Multisig refund transaction flaw in Lightning Network talk

I was watching Tadje Dryja's talk at SF Bitcoin Devs conference on transaction malleability, which formed part of the basis behind the Lightning Network. At 17'45", I saw this example. Prior to ...
2
votes
1answer
51 views

Possible race condition(double spend) on HTLC-Timeout in the lightning network?

From the offered HTLC Outputs, # To remote node with revocation key OP_DUP OP_HASH160 OP_EQUAL OP_IF OP_CHECKSIG OP_ELSE ...
2
votes
2answers
177 views

How can someone lose funds in Lightning Network?

In Bitcoin once you own a private key associated with an address that had bitcoins on it, your funds are theoretically safe for ever. But on the Lightning Network, I see that once you send bitcoin to ...
6
votes
1answer
278 views

What are the downsides of Hodl Invoices?

As far as I understand hodl invoices enable some interesting use cases. However, I heard that they can be detrimental to the network. Is that correct and in what way? Additionally, at a talk at the ...
2
votes
1answer
36 views

How does lnd make sure it does not reuse the same route twice for a retry after the first payment failed?

Suppose LND node A wants to send a payment to another node D. The pathfind algorithm based on Dijkstra found a route through B and C and initiates the payment. It fails, as B -> C does not have ...
1
vote
0answers
53 views

Bitcoin Lightning Network

I created a channel in lightning network, did the payment and the channel balance of the receiver got updated. But after closing the channel , the wallet balance of the receiver is not getting updated ...
1
vote
1answer
32 views

How much time does it take for a Lightning node to forward an HTLC?

How much time passes between the moment an intermediary node receives an HTLC and the moment it forwards if to the next hop? At least what order of magnitude is it? Is it comparable with network-...
2
votes
1answer
127 views

Can BitML encode Lightning?

I have been reading the BitML paper. The language compiles to another language (Balzac [which in turn compiles to Bitcoin Script]), which can do relative and absolute timelocks. Balzac can also do ...
0
votes
1answer
21 views

Sweep all functionality for a Bitcoin Lightning private key using mobile, desktop, or cli wallet?

Bitcoin wallets have a sweep all function to transfer all coins from one private key to another. Is there such a feature in a bitcoin lightning wallet where you can sweep all coins from a lightning ...
1
vote
1answer
50 views

What does a Bitcoin lightning private key look like?

I know bitcoin private keys start with a 5... But how does a lightning bitcoin private key look like? Say I wanted to printed it out as a paper wallet.
7
votes
1answer
552 views

How many paths are tried on average before a payment succeeds in Lightning?

In Lightning, the sender can never be sure that a multi-hop payment will go through, as intermediary nodes don't announce the distribution of funds in their channels (only the total capacity). Is ...
1
vote
1answer
81 views

What happens if R is not revealed by one of Lightning Network nodes? (Payment cancelation)

Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise ...
0
votes
1answer
36 views

How can I generate preimage for lightning network invoice? Should I?

I'm developing API library for LND REST API. Method POST /v1/invoices requires r_preimage parameter. Should I generate it or LND can do it itself if I'll not specify it? If I should do that - how to ...
2
votes
1answer
44 views

Python implementation for LND path finding algorithm

The most common Lightning nodes use GO, C or Scala for their implementation. Is there any publicly available Python implementation for the path finding algorithm any of the most known clients use (LND,...
3
votes
1answer
37 views

Finding paths NOT originating from you with lnd

I'm interested in finding paths from senders whose node you don't run to potential receivers. According to https://api.lightning.community/?python#queryroutes , you can do that by specifying the ...
3
votes
2answers
34 views

What defines the standard Bitcoin transaction size? [duplicate]

The Lightning Network specifications limit the number of (unsettled) HTLCs in a channel to 483 at each side (maximum 967 total). The rationale behind this is that the penalty transaction must be under ...
3
votes
1answer
205 views

How does Lightning Network over TOR work?

I'm interested to understand in detail how the lightning network works over Tor. Implementations like lnd, c-lightning etc. offer an extension which allow running TOR with Lightning. I would like to ...
1
vote
1answer
41 views

From LND Bitcoin Wallet to Bitcoin Wallet

Let's say I have some Sats on Zap Desktop wallet. Is it possible to transfer the Sats out of the Zap Desktop Wallet to for example MyCelium?
2
votes
2answers
74 views

Is it possible to watch the chain to count the number of Lightning channels? [duplicate]

I know it's possible to get number of public Lightning channels from Lightning Network gossip and some implementations offer network graph and it can be queried. But it's not possible to see private ...
4
votes
1answer
163 views

How fast can a LN payment be over TOR?

I wonder how fast a LN payment can be over TOR if all possible optimizations have been implemented?
1
vote
2answers
252 views

What are Zombie Channels?

In the Lightning Network, what is the definition of a zombie channel? Can they clearly be identified or is it more of a undefined term that is used for channels that are assumed to be obsolete?
4
votes
0answers
49 views

Can ECDH peers waste each other's time at will?

Peter Dettman notes that ECDH peers can waste each other's time at will. What does he mean? Can this be weaponized against Lightning nodes?
2
votes
1answer
95 views

Networking & Lightning Network

So I have a question regarding network connectivity within LN nodes. Scenario #1: I have public lightning network node. it has real public IP address (let's say 123.123.123.123), which one is ...