Questions tagged [hash-time-locked-contract]

Filter by
Sorted by
Tagged with
2
votes
2answers
359 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
vote
1answer
27 views

Do HTLCs get “carried over” in the subsequent commitment transactions?

With regular commitment transactions, current transaction invalidates the previous one. This is fine, since TXs between A and B in their channel happen one after another. However, HTLCs are sort of ...
0
votes
1answer
43 views

lightning to lightning non custodial swaps [closed]

Do you know the way to freeze funds in lightning tx to implement atomic swap between two independent lightning networks?
0
votes
0answers
23 views

Method to create P2SH address

I am trying to create a htlc smart contract manually by writing a script and finding the hex using the btcc compiler. Now node A has to create a transaction using that hex and lock money in that p2sh ...
2
votes
1answer
50 views

HTLCs and commitment transactions

Why commitment transactions can't simply be HTLCs instead of contracts revocable by having the second half of the Revocable Private Key? I mean, why bother to create a Revocable Public Key from two ...
0
votes
1answer
76 views

BOLT #3: Shouldn't timeout be included in the script of “Offered HTLC Outputs” for the local node?

According to the BOLT #3 documentation, the offered HTLC output has the following script that allows the remote node to claim the funds with the payment pre-image and the local node to claim it after ...
1
vote
1answer
46 views

Remote node signature for HTLC-success and HTLC-timeout transactions

According to BOLT #3, when constructing a HTLC output in the version of the local node (both received and offered HTLC), it requires that the payment to the local node is locked with CHECKMULTISIG ...
0
votes
1answer
24 views

How multiple unfinished payments in single LN channel work?

I think I understand HTLCs, at least if they are on chain. I also have a basic understanding of how off chain channel looks like. I understand it as follows. It is a 2-of-2 multisig transaction ...
1
vote
2answers
50 views

Why do we use CLTV instead of CSV in the HTLC output of the commitment transaction?

In lightning network commitment transactions, the HTLC offered/received outputs generally pay the offering node after a timeout which is scripted using CLTV. In other parts of the commitment ...
0
votes
1answer
45 views

Implement HTLC manually by writing scripts

Is there any way to implement HTLC manually for locking funds in the channels in lightning network for a period of time (by setting intervals) and releasing the funds after the time lock expired using ...
0
votes
1answer
27 views

How can I create HTLCs below dust_limit_satoshi in Lightning Network?

BOLT#2 documentation for open_channel message has two points (dust_limit_satoshi and htlc_min_msat) in the data message that I found confusing. Below is the statement related to dust_limit_satoshi: ...
5
votes
3answers
1k views

“HTLCs don't work for micropayments”?

I read this tweet by Tadge Dryja recently. What exactly did he mean? Is this an issue? If so, is this issue fixable?
0
votes
1answer
27 views

Destination address(es) when redeeming an HTLC

Starting from this text at https://en.bitcoin.it/wiki/Script: "The script for a typical Bitcoin transfer to destination Bitcoin address D simply encumbers future spending of the bitcoins with two ...
2
votes
1answer
58 views

In which cases could I find funds locked in a failed route?

I received an invoice from node Z and my node (A) suggests me 4 possible routes. If the first two routes fail, are there cases in which funds can get stuck in one of these routes until the HTLC ...
1
vote
1answer
51 views

Security implications of removing CHECKSIG in a test

If I conduct an htlc transaction on testnet that does not include OP_CHECKSIG will it still cost an attacker more than (say) $10 in processing power or storage to subvert my tests? Details: I'm ...
0
votes
1answer
82 views

What is the relation between a Hash Time Lock Contract(HTLC) and a Commitment transaction?

I want to know about what happens to the commitment transactions as the HTLC's are sent and cleared along to peers in a route.
0
votes
1answer
151 views

How to perform atomic swap Bitcoin-Litecoin

I am running Bitcoin and Litecoin nodes fully synced on testnet.Can I perform atomic swapping by using this networks? I heard it can be done through HTLC(Hash Time Locked Contracts). How can I do ...
2
votes
1answer
266 views

Basic questions about lightning network HTLC

I'm reading about lightning and I have a few questions: The HTLC contract seems to be different at each new path payment channel is opened (due to a different Hash value that needs to be provided), ...
0
votes
0answers
17 views

Hash Time Locked Contract (HTLC) using bitcoin-qt [duplicate]

Is it possible to manually create a Hash Time Locked Contract using the bitcoin-qt command line? I have dabbled with manually creating createrawtransaction / sendrawtransaction using the bitcoin-qt ...
5
votes
2answers
1k views

HTLC (Hash Time Lock Contract) using bitcoin-qt

Is it possible to manually create a HTLC using the bitcoin-qt command line? I know how to manually creating createrawtransaction/sendrawtransaction using the bitcoin-qt clients command line, and ...
2
votes
1answer
503 views

Lightning Network: hashlocks vs private keys exchange

I am reading the Lightning Network paper and noticed that when describing bidirectional payment channels, the authors used "Breach Remedy transactions" and the exchange of the two parties' private ...