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
0
votes
0answers
45 views

Lightning LND gRPC send direct payment returns invalid_key_length error

I’m trying to send a direct payment on testnet from my node A to my node B. Both have only channels with public nodes, not between themselves, so that a route contains multiple hops. I followed the ...
1
vote
1answer
66 views

What is “signature recovery”?

Bolt #11 defines a "tagged field," n, which identifies the payee by a public key, but it isn't required. It also requires a signature which can be verified only if the public key is known. When ...
2
votes
2answers
61 views

Why do multihop LN payments start settling from the recipient's end?

In HTLC, after all the parties have locked their funds in the contract, claiming payment happens in a reverse way, starting with the receiver who reveals the preimage of the corresponding payment hash....
1
vote
1answer
17 views

Run lightning-charge on c-lightning regtest

I'm trying to run lighting-charge (https://github.com/ElementsProject/lightning-charge) on top of one of my 2 lightning (https://github.com/ElementsProject/lightning) instances. I am running 2 nodes ...
2
votes
1answer
65 views

settling timelocked contracts based on amount of time elapsed in Lightning network

Suppose in a payment route A->B->C, A desires to pay 0.01 BTC to C. It locks in 0.01 BTC with B in the HTLC having timeout period of say 2 days and B locks 0.01 BTC with C in HTLC having timeout ...
1
vote
0answers
22 views

When is it intended to push to main network upgrades like Taproot, Submarine Swaps?

I have read about some interesting BIPs/projects. I am not asking for their explanations. I simply like to know about their current status - When the dev community intends to implement them on the ...
1
vote
0answers
17 views

How to open channel with output of closing channel? [Lightning Network]

How can I automatically open a new channel while closing another, avoiding to create an unnecessary intermediate transaction? Do any wallets support it at the moment, or would I have to do it with a ...
1
vote
3answers
31 views

Lightning network without main chain?

I've been reading about the working of LN. I had this interesting thought, what if we dont need the main blockchain and the miners to have a p2p cash system. Let me explain. The difference between ...
2
votes
1answer
39 views

Why does every htlc in a commitment transaction rquire its own signature?

From BOLT 02 we can learn When a node has changes for the remote commitment, it can apply them, sign the resulting transaction (as defined in BOLT #3), and send a commitment_signed message. ...
2
votes
1answer
52 views

Is it possible to link one single LN node to Bitcoin addresses?

In René Pickhardt's presentation (slide 166) (here is the interesting talk), it's written that on-chain funds and addresses can be linked to LN nodes. How can this be achieved? From my understanding, ...
0
votes
2answers
22 views

The state update order of Lightning Network when exchanging private keys and new commitment transactions

I was studying Lightning Network recently and got into confusion. I want to know that the process order of generating a new state to revoke the old state in the Lightning Network. When a new ...
0
votes
1answer
33 views

Converting NodeID and BitcoinKey from Lightning Network (LND) logs

From the LND logs I have something like this (I changed some characters for privacy): NodeID1: ([33]uint8) (len=33 cap=33) { 00000000 02 19 8b 61 42 18 89 24 74 fc 95 ed 64 c4 77 91 |.9.a@(.$t......
1
vote
1answer
31 views

Is Z-man's PTLC construction implementable using libsecp256k1-zkp?

In a mailing list post Z-man details a PTLC construction which he claims is "is almost entirely a MuSig ritual". My question is whether this MusigTweak is what is called the adaptor (last argument of ...
1
vote
1answer
19 views

How can a closing transaction in LN have more than 2 outputs?

I collected some data regarding closing transactions of channels in LN and I see that a small percentage of them have more than two outputs. How is this possible? An example of such closing ...
3
votes
1answer
60 views

Get invoice amount from payment request - LND REST API

I'm using the REST API of my LN node to generate and pay invoices. I would like to know how to get the invoice amount/value in sats from the payment request I receive. I found this : https://api....
0
votes
1answer
36 views

Do payment channels have an address? And where are their transactions actually being written to?

In the Lighting Network or with micropayment it's possible to open up payment channels that basically work like a smart contract. At the beginning, the channel is funded by one or two parties with ...
2
votes
1answer
20 views

LN Payment Channels: Can you have more than two nodes in a channel?

I can't seem to find an answer to this but apologies if this exists somewhere already. From the last paragraph of section 2.0 in the lightning network paper version 0.5.9.2, "Micropayment channels ...
-1
votes
2answers
38 views

Calculation of max_num_htlcs on Lightning Network

Why max_num_htlcs on lightning network is 483? I read the BOLT specification, but i can't understand the calculation. What is the 'maximum standard weight'? Does anyone explain the calculation? Plz ...
0
votes
1answer
39 views

Receiving payment on Lightning Network with LNBig as initial funder?

I was able to open a channel to myself from LNBig and withdrew 100 sats from Reddit's lntipbot. This appeared to be successful! Output of lncli channelbalance: { "balance": "100", "...
0
votes
2answers
25 views

c-lightning channel announcement/establishment issue

I've been running a c-lightning node over Tor with 2 open channel for a few months and it still hasn't forwarded any payment. Maybe it's normal due to the low amount of liquidity provided by my node, ...
3
votes
1answer
51 views

How to provide a proof-of-payment to an offline Lightning Network vending machine?

I'm considering building a Lightning Network vending machine that is offline but has the capability to create LN invoices and verify payments. As an example the scheme has: One offline vending ...
0
votes
2answers
25 views

Exact syntax for lightning-cli txprepare

I have tried many different forms but I cannot prepare a transaction with lightning-cli txprepare from the Linux prompt. lightning-cli txprepare [{\"bc1qvzr0mwps952d0cdmchyd2pe5rlee5tfces5dzf\":\"all\...
0
votes
1answer
38 views

Lightning Network LND - Retrieve payment by hash

How do I get an outgoing Payment by paymentHash using LND REST API? I know that GET /v1/payments returns all payments, but I would like to get one in particular, not all as there may be thousands. ...
3
votes
3answers
118 views

Adversarial Question: Why not fork LND Loop and provide the service freely/cheaply?

Adversarial Question: Now that LND Loop is paid product, what stops someone from forking the software and selling the product themselves, or integrating it freely? The only reason I can think of is ...
1
vote
1answer
75 views

When will my Lightning channel be closed?

I have a force closed channel from lnbig.com and it has been pending in closing state for over 2 weeks (42600+ blocks). When might it be closed so I can request a new one? What are the default/...
2
votes
0answers
30 views

How private is Strike by Zap? [closed]

I am asking myself how much information can Strike theoretically collect on its users? Does Lightning have any benefits in this case? https://medium.com/@JimmyMow/announcing-strike-by-zap-4f578c7c8984
5
votes
2answers
75 views

Can failed Transactions figure out which Channel is exhausted?

According to information in this LND PR the sender of an TemporaryChannelFailure can be determined: In many cases it is impossible for the sender to determine which of the two nodes in a pair is ...
3
votes
2answers
578 views

What happens with the bitcoin locked in the payment channel if both sides lose the backup?

If none of the sides closes the channel, is the coin locked up forever?
0
votes
1answer
72 views

What is the 'tlv_payload' in lnd route?

When creating a custom route, if you use the queryroutes from lnd it sometimes with tlv_payload set to either True or False. How does the node figure whether to set this flag? I cant seem to find ...
3
votes
3answers
107 views

how are lightning network payments instant and secure at the same time?

I have a question regarding lightning network. It's a bit of a long question so please bear with me. If have 1 bitcoin in my wallet and buy an item costing that amount from a shop. I leave the shop ...
2
votes
1answer
36 views

What additional considerations are there for dual-funded payment channels?

Naively, it seems like a dual-funded channel should not be much more complicated than a single funded channel; You'd just have an extra input from Bob and it would be reflected in the balances of the ...
0
votes
1answer
51 views

c-lightning missing outputs

A few days ago I did a submarine swap in order to rebalance a channel of mine. I opted to be refunded on-chain using a brand-new address generated with c-lightning newaddr command. I used the p2sh ...
1
vote
1answer
34 views

Are both CSV and nLocktime unnecessary in Eltoo?

The Eltoo paper says "Notice that we could use nSequence for this purpose, but due to the interplay with OP_CSV we opted to use nLocktime". Now that Lau showed CSV not to be necessary, does that mean ...
2
votes
1answer
37 views

What happens if the commitment tx fee is too low?

How often are commitment tx fees negotiated? Is it every time a payment is made and a new commitment transaction is formed? What about if there are no payments but both nodes see that the on chain ...
0
votes
2answers
26 views

How to get the capacity of remote channel in Eclair?

I want to query an Eclair node for properties of a channel which I'm not a party of. Obviously, this information is in the local view of the network graph and is used for routing. However, the API ...
4
votes
2answers
204 views

Lightning Node High Availability/High Throughput

Are there any resources/best practises on running a highly available/high throughput lightning node? If my lightning service where to take off, should I be running multiple lightning nodes or a single ...
4
votes
1answer
314 views

In LN, how could a payer prove to 3rd party that he indeedly made a payment to the payee?

For regular on-chain payments, a txid can prove at least a transferring of value indeedly happened, at a specific time, despite that it may be totally irrelevant. For example, a malicious user can ...
0
votes
1answer
37 views

Lnd - how to open a double-funded channel

I know about lncli openchannel, however this means I will open a (bidirectional) channel with my peer, but initially just my side will have some balance. Let's say I agree with a collegue running ...
2
votes
2answers
77 views

Lightning - why are commitment transactions supposed to use different keys

In the paper BIP32 and deterministic key derivation are 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
20 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
87 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 <RIPEMD160(SHA256(...
2
votes
1answer
52 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
2answers
132 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
31 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
74 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
66 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
40 views

Creating bech32 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
47 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
125 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
36 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 ...

1
2 3 4 5
12