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
1
vote
0answers
45 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
79 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
63 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
77 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?...
2
votes
2answers
166 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 <revocationpubkey> OP_ELSE `to_self_delay` OP_CHECKSEQUENCEVERIFY ...
2
votes
1answer
108 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
115 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 <RIPEMD160(SHA256(revocationpubkey))> OP_EQUAL OP_IF OP_CHECKSIG OP_ELSE <remote_htlcpubkey> ...
3
votes
2answers
822 views

How can someone lose funds in Lightning Network?

In Bitcoin once you own a private key associated with an address that has bitcoins on it, your funds are theoretically safe forever. But on the Lightning Network, I see that once you send bitcoin to ...
7
votes
1answer
382 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
2answers
173 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
63 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
48 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
142 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
90 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
171 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.
8
votes
1answer
580 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
163 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
314 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
128 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
72 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
72 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
1k 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
210 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
149 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
188 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
331 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
1answer
65 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
131 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 ...
1
vote
3answers
75 views

Can Initial Channel Balances be figured out from the Funding Transaction?

The Initial Funding Transaction happens in Bitcoin and is linked to the Lightning Network. Can an adversary figure out the initial channel balances by identifying the according Bitcoin Funding ...
2
votes
2answers
144 views

How can I interact with Eclair from Python?

I want to write some scripts for experiments with Lightning. Python is the language I'm most comfortable with. From the three major implementations, LND has python-grpc and c-lightning has pylightning,...
1
vote
3answers
916 views

Running into ELIFECYCLE error while trying to install filebazaar

Trying to install filebazaar on Ubuntu 18.04 and getting an error on the canvas module... anyone familiar with this issue? I've been all over node-canvas's github issues (such as this one where I left ...
1
vote
1answer
95 views

BOLT 11 - Why is the description field limited to 639 bytes?

Why is the description field in a Lightning Network invoice limited to 639 bytes? https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md#tagged-fields https://github....
1
vote
1answer
332 views

Possible to run a Lightning node on same computer as Bitcoin Core node?

I have a Windows 10 laptop that is running a full Bitcoin node using Bitcoin Core. Is it possible to also run a Lightning node on the same laptop simultaneously with the Bitcoin node?
2
votes
1answer
191 views

How to capture c-lightining logs?

Where does c-lightning save its debug.log file? I know you can run the lightning daemon with --log-level=debug and access the logs in the terminal. But, I run my node on a remote server and I access ...
0
votes
1answer
45 views

What is the difference between reliance on miners on Drivechains and Lightning?

It's commonly said that the Drivechains proposal gives much power to miners and that they can steal money from these drivechains, but I keep thinking that if what they can do is to vote on which ...
3
votes
1answer
186 views

Generating Lightning invoice with an optional parameter

I have a question on the command invoice with the optional parameter. I don't understand how to create the invoice with the optional parameter. The c-lighitning documentations do not have an example ...
3
votes
1answer
423 views

What is the definition of an inactive channel?

On the Lightning Network, after how much time since the last received channel update is a channel considered inactive?
9
votes
2answers
881 views

How to recover funds from a force-closed Lnd lightning channel?

I lost my Lnd channel backup in a boating accident, but I still have the mnemonic. I had one freshly opened channel to my own c-lightning node which has never been used. I force closed the channel ...
5
votes
2answers
433 views

Some questions about Lightning and Tor

Currently there is a wave of articles claiming the Lightning Network is shrinking. If you look at official statistics, like on p2sh.info, this seems true. I was told that some of it might be an ...
1
vote
2answers
108 views

For how long has a channel been inactive?

I would like to close channels for which there is enough evidence that the remote node disappeared and won't come back. So my idea was to check for how long a channel has been inactive, and if it is > ...
1
vote
1answer
55 views

How create a personal node c-lighting for create a new channel with other node

I want to create my personal node to create a new channel with another personal node, an example my node with URL 12345678@192.164.1.7 I want create a channel with another personal node. I could not ...
2
votes
2answers
132 views

What the maximum expenditure on a lighting network channel depends on

I'm new in the lighting network world, and now I have a question on "How it work", so the light network, work with channel and one node for connection to a channel must spend a little of satoshi for "...
2
votes
1answer
55 views

Migrate lightning node daemon software

Is there a way to migrate from c-lightning to LND without having to close and reopen all channels?
1
vote
1answer
49 views

How does a Lightning transaction work if one party starts with no Bitcoin and no wallet?

Let's say Alice wants to give Bob 1₿, and Bob doesn't have a regular blockchain wallet address yet. The classic example assumes that Bob is locking some Bitcoin of his own on the blockchain, and ...
1
vote
1answer
251 views

c-lightning: single tx multi-channel open stuck on CHANNELD_AWAITING_LOCKIN:We've confirmed funding, they haven't yet

I've tried to open multiple Lightning Network channels using a single Bitcoin transaction, with these steps: For every peer in PEERS (n=25) run: lightning-cli connect ${peer} lightning-cli ...
0
votes
2answers
183 views

A couple questions on lightning network

I want to develop Exchange where people would use my service to make payments using lightning network I configured the LND node and created a wallet. To implement this I would like to allow users to ...
2
votes
0answers
39 views

What are the pros/cons of preferring sending the latest commitment or the oldest commitment?

Roasbeef mentioned on IRC that the Lightning specification allows a client to either assume that the latest co-signed commitment has been received by the counterparty, or that it hasn't. (as far as I ...
3
votes
1answer
154 views

How can I send a payment to myself with lightening to rebalance 2 channels?

I have an active channel with bitstamp with a balance on my side. Bitstamp has an active channel with lightening power users (lpu) with balance on their side (I checked this with lncli queryroutes ...
2
votes
2answers
1k views

What is a decent value for Time Lock Delta on a lightning network node?

Looking at the settings of some nodes on 1ml.com, I noticed the Time Lock Delta variable could vary a lot. How does it affect a node, and what is considered to be a decent value for it?
3
votes
2answers
635 views

Single-hop Payment vs Multi-hop payments

I am beginner of lightning network. When i am looking roughly lightning network whitepaper, i was confused about the types of contracts used in single-hop and multi-hop. As far as I understand, In ...

1
3 4
5
6 7
15