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
26 views

Settling the invoice/payment in lightning while the other party is unresponsive

Given that Alice wants to pay Bob in the lightning network, Bob first creates an invoice (using the python api) for A as follows: request = invoicesrpc.AddHoldInvoiceRequest(hash=r_hash, value=30000) ...
0
votes
0answers
25 views

Can we use lnurl-auth to create a better password manager?

LNURL-auth can be used to implement registration/login in a web app in which users don't need username/password or other credentials instead they can just use their LN wallet to login. However cannot ...
-1
votes
0answers
10 views

lightning network(lnd) on bitcoin private chain(regtset)

Can I install lightning network(lnd) on bitcoin private chain(regtset)? If so, how to install it? thank you very much!
1
vote
0answers
11 views

Why does the funder send the signed settlement to the counter-party in eltoo?

Quoting from the Eltoo paper: Before signing and broadcasting the funding transaction the funder requires the other endpoint to create an initial settlement transaction that returns the funds back to ...
1
vote
1answer
36 views

How does circular rebalance on LN work?

How does circular rebalance on LN work? (note: circular rebalance is term used in RTL, I use lnd). Let me describe the situation that happened to me: I have two channels, one with Alice, one with Bob. ...
0
votes
1answer
36 views

Autonomous Loop channel

Can I have an autonomous loop channel with myself where I would suck all excess inbound/outbound capacity to/from channels I have with other parties? In such a case, I would not have to even burden ...
1
vote
1answer
45 views

Is the Lightning Network sufficiently secure and well tested for wumbo channels?

Has the Lightning Network reached a level of security and maturity where I can open wumbo channels (channels over the previous 0.1677 BTC limit) and be reasonably confident that I won't lose funds or ...
3
votes
1answer
76 views

What are the different types of spam that the Lightning Network is subject to?

What are the different types of spam that the Lightning Network is subject to and what are the possible strategies for dealing with such spam?
0
votes
1answer
37 views

LND doesnt create macaroons or directories

I installed lnd and got to the point of creating a wallet with "lncli create" but I get an error "unable to read macaroon path" and gives the path of where the macaroon should be. ...
2
votes
2answers
45 views

Should the nodes of a channel have the same Time Lock Delta?

Consider this channel https://1ml.com/channel/612829298476056576 : Node 1: Caffeine Time Lock Delta: 10 Node 2: HODLcat.com Time Lock Delta: 144 How is an HTLC passing through this ...
3
votes
1answer
26 views

If I receive a LN payment from an anon sender… is there a way to send back to this individual?

I see the preimage, hash, and payment request but all of those are transaction specific and unrepeatable. Any idea how it would be possible to send back the other way without knowing the individual?
3
votes
1answer
67 views

Why do Anchor Outputs need to enforce an nSequence of 1?

Quote from https://bitcoinops.org/en/topics/anchor-outputs: As of this writing, the most recent versions of the design add two outputs to the commitment transaction—one for each LN party—and require ...
0
votes
2answers
90 views
2
votes
0answers
17 views

New Node User Opening Channels Through Zap

I recently set up my first node and connected through Zap. I currently have one channel open which is funded on my local side and on the remote side for a small amount. I was told that my node is not ...
3
votes
0answers
30 views

What is “Link-Level Multiplexing”?

In a discussion about private channels, Conner Fromknecht mentioned a concept called Link-Level Multiplexing. What is this and what is it useful for? How does it work?
0
votes
0answers
30 views

Time locked puzzle for payment in Lightning Network

Currently HTLC's timeout transaction relies on absolute timelock enforced on the script. It allows a counterparty to withdraw the money from the contract if the other party doesn't release the ...
0
votes
0answers
25 views

Lightning Node Full Pubkey

I have my lnd node pubkey, public IP address and an open port as follows: 0286712a3a81b0d5e54469042146137fbdf7b77802f21fad1261c031a8d917f5da@... Do I have to set parameters after the '@' sign - in ...
1
vote
1answer
24 views

Problem with the first Initialization of my LN node, dial tcp my-external-ip:9735: connect: connection timed out

Background I was following 402 Payment Required's LN video and everything was good until the moment of the first Initialization of my LN node. I got an error: dial tcp my-external-ip:9735: connect: ...
1
vote
1answer
26 views

Connect C-lightning to a remote bitcoind through tor

I would like to connect my C-lightning node to a remote Bitcoin node, in order to be able to run lightningd on a small storage capacity VPS. I could achieve this by using clearnet connection and ...
2
votes
1answer
87 views

How to use the lightning network with Electrum multisig wallet?

I want to experience the lightning network transactions with my Electrum wallet. But the lightning network is not available, and it shows the following information: "Lightning is currently ...
3
votes
1answer
33 views

Lightning Network state deprecation secret keeping

When using a lightning channel, two sides are sending transactions representing the current state (or balance) between them, and for each state sent, they invalidate the previous state by sending a ...
0
votes
1answer
31 views

Is there already reached consensus on network upgrades like Taproot, Submarine Swaps?

I have read about some very interesting new protocol amendments. I am not asking for their explanations, but would be great if anyone explained their current status, if they are still considered to ...
4
votes
1answer
79 views

Cheat Lightning network (c-lightning)

I want to understand how cheat lightning network using c-lightning. I understand that if a participant of che channel send not last commitment transaction, it means that he tries to cheat. I'd like to ...
0
votes
1answer
19 views

Simulate HTLC in regtest c-lightning

I have three nodes in regtest environment l1, l2, and l3 l1 create a channel with l2 l2 create a channel with l3 l3 create an invoice for l1. l1 can pays it because use the route l1-l2-l3 I presume ...
1
vote
0answers
24 views

When commit_fee (fee_per_kw) renegotiation?

Looking at my channels on lnd node, fee_per_kw values are different for some channels (13332 or 6422). How is the fee_per_kw calculated when opening the channel? Does it take current bitcoin fees ...
2
votes
1answer
39 views

Sending lightning payment between TOR lighning nodes, any specific setup required?

I have two c-lightning nodes in different VMs in Qubes OS, both routed through TOR VM. They both can connect to other public nodes and establish channels with them but when I try sending satoshis ...
2
votes
1answer
43 views

Retrieve address when create a channel lightning network

I have two nodes in regtest. the first one is: $ l1-cli getinfo { "id": "02c3f99e70c8da59e428dd119d36c0a1317e5cd85218a760355b5f9b4f822f6109", "alias": "ALICE&...
1
vote
0answers
31 views

LSAT - stateless proof of payment through specific form of preimage

I am aware LSAT consists of macaroon and preimage. Preimage is part of the HTLC construction to route payments in lightning. It is generated by the receiver and eventually known by all participants on ...
2
votes
1answer
66 views

Get public or private key from address with C-lightning

I'm studying Lightning network and I use c-lightning. I can Get a new address with newaddr method, but I can't find private key. My address is bcrt1qmckts70jsq2u5886lgcq2yn7xjmp97t09zlrg, how can I ...
1
vote
1answer
34 views

Who bears the transaction fee for settling HTLC in Lightning Network?

Given a channel that exist between Alice and Bob, where Alice wants to transfer 0.0001 BTC to Bob. Alice makes HTLC payment to Bob contingent to the secret for the payment hash within a timelock of ...
1
vote
1answer
37 views

How can wallet software implement automatic channel management for Lightning Network?

If I'm building a desktop Bitcoin wallet with Lightning support, and I don't want the user to have to worry about channel management, what's the way to achieve that? I've seen the autopilot solutions ...
1
vote
1answer
34 views

How does the 12 keyword back phrase works and how does it allow the creation of infinite number wallet address across multiple cryptocoins?

I wonder how crypto wallet like BitPay works? They claim to be an offline wallet that you can back up with simply a 12 words phrase. Yet, they allow you to create an infinite number of wallets across ...
1
vote
1answer
27 views

Two party payment channels, how to set one up?

Most guides to LN describe it working "through 'payment-channels', wherein two parties commit funds", usually Alice and Bob. But I cannot see a way to actually create this scenario. I've just started ...
0
votes
1answer
84 views

My lightning node is unreachable and lightning-rpc': Connection refused

I'm trying to use c-lightning on my raspberry. When start the lightning daemon I get two errors: the first one is: 2020-06-05T17:02:08.784Z DEBUG connectd: Failed to connect 10 socket: Network is ...
2
votes
1answer
24 views

what is the macaroon max length

In an LND node, what is the max size, in bytes, of a macaroon. If there is no explicit max length, what can you reasonably expect to be the size of your macaroon?
1
vote
1answer
74 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
82 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
29 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
66 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
20 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
35 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 ...
3
votes
1answer
66 views

Why does every HTLC in a commitment transaction require 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. 1. type: ...
2
votes
1answer
55 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
25 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
39 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
43 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
33 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
103 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
39 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 ...
3
votes
1answer
25 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
2 3 4 5
13