Bitcoin Forum
June 21, 2024, 06:41:10 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 ... 136 »
381  Other / Beginners & Help / Re: A Beginner's guideline to Bitcoin Lightning Network on: July 06, 2021, 01:00:54 PM
is the period of that timelock every time a new commitment is broadcastet updated? so it is a moving timeframe? and that timeframe will be set in stone with the opening transaction on the base layer, is that correct?

I might have phrased that slightly wrong, so let me explain it in more detail. If you are closing a channel uncooperatively, there are actually two on-chain transactions involved instead of just one.

First of all, the timelock is decided before the channel is established. By default, most nodes force the other peer to wait 144 blocks (~1 day). The maximum acceptable value by default is 2016 blocks (~2 weeks). I configured my node to create channels with their_to_self_delay = 432 blocks (~3 days), so if someone decides to close the channel opened to my node uncooperatively, they will have to wait 432 blocks (after the commitment transaction has been included in a block) before they can spend the output belonging to them. Those timelocks are relative which means that you do not have to sign a new commitment transaction whenever a new block is mined. New commitment transactions are signed periodically because their fees need to match the current state of the mempool. There is no point in paying 60 sat/vbyte when 1 sat/vbyte transactions are getting confirmed in just a few minutes. It also applies the other way around.

The first transaction is the commitment transaction. Let's say there's node A(lice) and node B(ob), and node A broadcasts the commitment transaction. That commitment transaction includes two outputs:

- output #0: 3 BTC (spendable by node B's private key) - reflecting node B balance
- output #1: 6 BTC (RSMC) - reflecting node A balance

There is one more important detail before we go any further. Whenever a new commitment transaction is signed, both parties exchange revocation keys for the previous commitment transaction so that they can both be sure that the other party is very unlikely to broadcast an old state of the channel.

RSMC is short for Revocable Sequence Maturing Contract. Such an output contains a relative timelock. This means that you can't spend this output until a certain amount of blocks have been mined since the transaction which includes that output was mined.

Let's say node B didn't change the default value of 144 blocks and the commitment transaction has been confirmed. There are two possible scenarios.

1) Node A attempts to cheat and broadcast an old commitment transaction. Node B has 144 blocks to spend the RSMC output using his and node A's revocation key which he got while they were working on a new commitment transaction.

2) Node A broadcasts the latest commitment transaction. In such a case, node B never got node A's revocation key for that commitment transaction, so he cannot spend that RSMC. Node A can broadcast another transaction spending that output after 144 blocks have been mined.

I know it sounds complicated. I am working on a thread which will explain it in a more understandable way.
382  Other / Beginners & Help / Re: A Beginner's guideline to Bitcoin Lightning Network on: July 06, 2021, 08:48:18 AM
Curious, How if in the end or bad happened like lost of the private key then not able to make sign signature and the are not able to online, what's the next will be?

The other party would very likely close the channel forcefully after some time. It would be possible because channel participants constantly sign new commitment transactions which can be used to settle the balance on-chain once a certain timelock has passed.

Unfortunately, in this case, the other party could attempt to cheat by broadcasting some old commitment transaction. Normally, you would be able to revoke it and publish a penalty transaction. A watchtower could also do that but it would have had to be set up beforehand.

However, not all participants of the network have malicious intentions. If the channel was closed using the latest commitment transaction, you would get all of your coins back to your on-chain wallet which you should be able to recover using your seed.

I am not sure how mobile wallets behave, but LND generates a backup file which lets you close your channels thanks to data-loss protection (note that in this case your peers have to cooperate with you). C-lightning users can use a backup plugin which makes a copy of the whole channel database whenever it is updated. If you have such a copy, you can easily recover your node without having to close any channels.
383  Bitcoin / Bitcoin Discussion / Re: Lightning Network -- Is it GOOD? on: July 06, 2021, 08:21:04 AM
No matter how much advanced an innovation is, as long as ordinary people can't use it, for me it is worthless. Setting up payment channels and all can be quite hard.

You should take a closer look at BlueWallet and Strike.

BlueWallet is a custodial wallet, but it handles the channel management for their users. The payment success rate is quite high.

Strike has taken a different approach. Their users don't have to own any coins or know the difference between Bitcoin and Lightning Network invoices. All they need to do is to scan the invoice. Strike will automatically pay it and charge user's credit card.
384  Bitcoin / Bitcoin Discussion / Re: lightning network, basic questions on: July 05, 2021, 04:10:03 PM
i will do the same with the lightning node i am setting up right now

You can reach out to me once you have set up your node. I am willing to maintain channels with other forums members. What implementation have you chosen?
385  Bitcoin / Development & Technical Discussion / Re: The Lightning Network FAQ on: July 05, 2021, 10:30:33 AM
Edit: you probably asked about https://lightning.network/lightning-network-paper.pdf point "8.1 Decrementing Timelocks" in LN whitepaper version 0.5.9.2.
Quote
In the event a party outright disconnects, the counterparty will be responsible for broadcasting the current Commitment Transaction state in the channel to the blockchain.  Only the failed non-responsive channel state gets closed out on the blockchain, all other channels should continue to update their Commitment Transactions via novation inside the channel.

By the way, it is not cost-effective at all times. Assuming that it is a one-time thing, I would rather eat the loss than pay extra for an uncooperative channel close. Apparently, c-lightning will be taking that into account soon.

Also, if anyone is wondering how to open multiple channels in a single transaction (c-lightning), here's a command that I used a few moments ago.

lightning-cli multifundchannel -k destinations='[{"id": "03cde60a6323f7122d5178255766e38114b4722ede08f7c9e0c5df9b912cc201d6", "amount": 5000000}, {"id": "037659a0ac8eb3b8d0a720114efc861d3a940382dcfa1403746b4f8f6b2e8810ba", "amount" :1000000}]' feerate=1000perkb minchannels=2

I managed to get the node back up and broadcast the close channels.

Weren't you going to move your c-lightning node and keep it running?
386  Bitcoin / Development & Technical Discussion / Re: The Lightning Network FAQ on: June 29, 2021, 05:36:44 PM
the sender holds the keys..
the receiver is promised the funds. but does not have the key.

Since the funds are locked in a 2-of-2 multi-signature address, both the "receiver" and "sender" hold the keys.

the receiver only ever gets a key to the funds. to make the previous commitment void of spending.

Both the "receiver" and "sender" exchange revocation keys (in an appropriate order) before signing a new commitment transaction. The revocation key can be used only if one of them broadcasts an old commitment transaction.

EG i sign a tx giving value to rath.. i dont broadcast it..
is rath guaranteed to be paid.. nope because the funds are not on his keys, not confirmed on the blockchain
the funds are still on my locked UTXO

Your example is completely irrelevant. In this case, I would not be able to broadcast your transaction (because you never gave it to me) and you would be able to double-spend that UTXO fairly easily (since the funds are not on a multi-signature address). In the Lightning Network, both parties can broadcast a commitment transaction at any given time, they cannot send the coins anywhere without the agreement of the other peer and they can punish each other for any fraudulent behaviour. I wouldn't be able to do any of that.

a HTLC at a later time is negotiated into a commitment..

You should not accept an HTLC if you did not negotiate a new commitment transaction which includes that HTLC as one of the outputs. "At a later time" sounds just wrong.
387  Bitcoin / Development & Technical Discussion / Re: The Lightning Network FAQ on: June 29, 2021, 04:30:11 PM
@Rath_ , You keep letting everyone else talk about IOUs.

If you (or anyone else here) are concerned about the way I moderate this thread, feel free to PM me or create your own thread.

-snip

Let me throw a couple of random quotes at you as well!

Some people seem to see an IOU at work here. They might see bitcoin on Lightning like casino chips, which are tokens for money — as if users traded in their “real” bitcoin for “token” Lightning credit, like IOUs to be cashed in for “real money” at the end of the night.

But unlike a casino, you never relinquish custody of your money on Lightning. Not your keys, not your bitcoin. We’ve all heard that mantra a thousand times. But it’s true. And the converse is also true: as long as you hold the keys, you hold the bitcoin. Therefore, any non-custodial wallet — whether on-chain or off-chain — gives the user more control over her money than any custodial wallet on-chain or off-chain.

An IOU is different. It implies a counterparty claim. If a friend lent you $100, he may have a claim on it — at least in the sense that you probably shouldn’t let him see you on Instagram treating yourself to front-row seats until you’ve paid back the debt. With an IOU, custody of the funds doesn’t translate into the freedom to use them.

An IOU differs from a promissory note in that an IOU is not a negotiable instrument and does not specify repayment terms such as the time of repayment.

An IOU does not specify the repayment terms? What is a negotiable instrument then?

A negotiable instrument is a document guaranteeing the payment of a specific amount of money, either on demand, or at a set time, whose payer is usually named on the document. More specifically, it is a document contemplated by or consisting of a contract, which promises the payment of money without condition, which may be paid either on demand or at a future date.

That totally sounds like a commitment transaction to me.
388  Bitcoin / Development & Technical Discussion / Re: The Lightning Network FAQ on: June 29, 2021, 07:38:10 AM
Just to make it absolutely clear, the unconfirmed transaction is only a “problem” between you and Phoenix wallet which is your custodian to use Lightning, and that Phoenix wallet itself cannot open a channel in Lightning without a confirmed transaction.

In this case, Phoenix Wallet (or more precisely ACINQ) initiates the payment from their node rather than route it from you. They expect you to pay them back once the channel between you and them has become active. How can they trust you? Well, you are using their software which was programmed to do that automatically.

Because I’m made to believe that it’s possible to open a channel WITHOUT an onchain transaction.

Under normal circumstances, it would not be possible. If you set up your own node then it's impossible for someone to open a channel to you without a valid on-chain transaction. In fact, by default, that transactions needs to have either 1 or 3 confirmations (it depends on the implementation) before the channel becomes active.
389  Bitcoin / Bitcoin Discussion / Re: Will the Lightning Network Solve ALL Scalability Issues? on: June 29, 2021, 01:00:09 AM
I'll tell you what would really be handy is an Electrum-type wallet for Lightning. You can't expect everybody who wants to participate to run their own node

I am not sure what you would exactly expect from an Electrum-like Lightning wallet, but actually, Electrum has introduced support for the Lightning Network in the 4.x update. I even wrote a step-by-step guide. In short, a user can easily open a channel with any Lightning Network node. The only caveat is that the user has to either set up a watchtower or launch their wallet every few days to check if the other party did not broadcast an outdated state of the channel.

There are even more user-friendly wallets out there but most of them are custodial, for example, BlueWallet which takes care of the channel management so that users don't have to worry about incoming/outbound liquidity.
390  Bitcoin / Development & Technical Discussion / Re: The Lightning Network FAQ on: June 26, 2021, 11:08:31 PM
Let me throw in my two cents.

franky1 makes some good points. I am also a little bit concerned about large nodes which set the minimum channel funding value to ridiculously high values.

I don't agree with the statement that the Lightning Network as a whole consists of IOUs. I do agree that milisatoshis are backed only by trust, but...

I don't think that's a major issue. Putting the msats value aside, if you are the channel founder then you do not lose any money. The moment you decide to close the channel both balances are rounded down to whole satoshis and the remaining 1 satoshi is added to the transaction fee, which as a channel founder you have to pay anyway. If you are not the channel founder then... well, that's a negligible loss for you. By the time msats become valuable, the number of on-chain decimal places might have been already changed as a result of some hardfork.

when you can understand the concept of an payment in millisats(htlc).. being a separate thing to an exchange to a bitcoin transaction at a different time. then you might understand that the HTLC(msat) payment (agreement of who owes what) is not the same as a bitcoin transaction.

While it's true that HTLCs are denominated in msats, they are still enforceable on the blockchain. The moment you send/receive an HTLC to/from someone, you also need to sign a new commitment transaction. Commitment transactions can include not only the current balance of both parties but also offered and incoming HTLCs. Both of these (locked) outputs obviously need to be rounded down to whole satoshis in order for the transaction to be valid.

I think that we have had enough. Please, move to some other thread if you wish to discuss it further. Feel free to quote me there. I will be removing any IOU related posts from now on.
391  Economy / Service Discussion / Re: Interest in a Full Node + Block Explorer as a Service? on: June 24, 2021, 08:24:38 PM
I could also throw in LN nodes if there's enough interest in that

Doesn't it contradict your "not interested in being liable for people's money" policy?

maybe even an LN explorer if software for that exists

I don't think there is any up-to-date open-source LN explorer worth attention. Unfortunately, most projects were abandoned years ago. I'd love to host something similar to 1ml.com myself.
392  Bitcoin / Hardware wallets / Re: 25th Word in Nano Ledger S on: June 24, 2021, 08:32:28 AM
But what percentage of nano ledger s or trezor wallets are not accessible because the user forgot the 25th Word?  I got to assume this happens much more than talked about?

10%, 25%, 75%, 100%... maybe 200%? Who knows?

But the big difference is even if you forget your 25th Word, well you have as many tries as possible right?

Yes. If you have your seed then you can even use third-party software (btcrecover) to guess the lost passphrase. It could take a lot of time, though.

I remember that story of a guy who forgot his passphrase or pin but then only had like three tries remaining.

Trezor devices reset after 16 invalid PIN attempts. Every time you enter a wrong PIN, the delay between attempts increases twofold. Ledger devices reset after 3 invalid attempts and there is no delay.
393  Other / Beginners & Help / Re: POLL: Have You Ever Used the Lightning Network? on: June 21, 2021, 11:03:35 PM
1. Apart from the timeliness of transactions procession, are there any other advantages of the LN?

It is possible to build more layers on top of the Lightning Network. For example, Sphinx Chat takes advantage of the way LN transactions work and provides a decentralised encrypted messaging service.

2. The cost of opening/closing channels and the minimal cost of transaction fees, if summed together, will it not equate to the original transaction fee on the blockchain?

The Lightning Network was not designed for one-time payments. You are supposed to use your channels multiple times before you close them. You have to pay an on-chain transaction fee for both channel opening and closing transactions. Since LN fees in most cases are extremely low, those channels will quickly pay themselves off if you use them more than once.

3. In terms of fraudulent transactions or transactions complications, if the channel is not closed, can the transaction also be tracked in the blockchain?

I am not sure if I understand your question correctly. Lightning Network payments are not recorded on the blockchain. Instead, both participants of the channel update its balance without broadcasting anything to the Bitcoin network. If your Lightning payment is routed through multiple nodes then it becomes nearly impossible to track your transaction. Once you decide to close your channel, the closing transaction will include only yours and your peer's address (or either of them).
394  Bitcoin / Bitcoin Discussion / Re: lightning network, basic questions on: June 21, 2021, 12:02:37 AM
If you are worried about your node going down then you can set up a watchtower on some cheap VPS or a Raspberry Pi at a different location. The watchtower can publish a penalty transaction if the other party attempts to cheat while your node is offline. By default, one has to wait 144 blocks (~ 1 day) before an uncooperative channel close can be settled. Mobile wallets usually force the other party to wait 2016 blocks (~2 weeks).

Also, you don't need to run your own node. If you are comfortable with using a custodial wallet then you can consider using BlueWallet. You wouldn't have to worry about launching your wallet every now and then since you wouldn't be managing channels on your own. It's not a good choice if you want to minimise trust or want to earn money through payment routing.

This can be a maximum of 2016 blocks, which works out to 2 weeks at average block times.

It can be more than that if the remote peer changes that default maximum value. Still, ~2 weeks is more than enough.
395  Bitcoin / Hardware wallets / Re: Encrypting and signing with Trezor on: June 20, 2021, 02:21:22 PM
You can sign and verify messages with Trezor hardware wallet using their web wallet wallet.trezor.io and same functionality is in the roadmap for Trezor Suite software, planned for September 8th.

He was probably referring to PGP signed messages and not Bitcoin signed messages.

I shall see if I can move onto Linux in the future.

You don't have to move at all; that's what WSL is for. After following my instructions, launch Ubuntu through WSL (you should be able to launch it easily by typing in "Ubuntu" in the search bar), create a new key pair using Trezor's instructions, type in explorer.exe . and put the files you want to sign/encrypt or verify/decrypt in the new explorer window, follow Trezor's instruction again and you should be able to copy the output files from the same explorer window.
396  Bitcoin / Hardware wallets / Re: Encrypting and signing with Trezor on: June 19, 2021, 03:51:45 PM
Is there any program to encrypt messages/files and sign/verify messages on Windows with a Trezor one?

Trezor does not provide any instructions for Windows. You can follow these instructions for Linux if you use Ubuntu through Windows Subsystem for Linux. I managed to get trezor-cli to work this way. I don't think there is any easier workaround.
397  Bitcoin / Bitcoin Discussion / Re: Bitcoin Maximalism on: June 17, 2021, 10:13:46 PM
At what point are we simply re-inventing the wheel?  If the general idea behind Bitcoin was to empower people to handle their own money, going down that route, it sounds more as though we've effectively just added another middleman to the existing group of financial middlemen

The problem is that you can't expect everyone to take advantage of the potential financial independency. Simply put, people are lazy and seek the easy way of doing things. Most of them might never use a non-custodial wallet.

Unless I've misunderstood something, I get the impression there's no real benefit to the average customer beyond what they'd get using fiat alone?

That depends on what you think that the average customer is more likely to value. For example, Bitcoin transactions are irreversible. Assuming that most merchants will use third-party payment processors, this probably won't be a problem if they have some refund policy like Visa or MasterCard. Otherwise, there are going to be a ton of complaints. Unless governments push CBDCs and negative interest rates, I don't think that ordinary people have any significant incentive to switch over.

Or do the benefits stack more on the side of the merchants who wish to receive payment in BTC?

That's a good remark. I see Strike as a necessary product for the transitional period where more and more merchants start accepting Bitcoin while users are slowly catching up.
398  Other / Meta / Re: Lightning Network subforum proposal. on: June 17, 2021, 09:47:03 PM
AFAIK, creating boards about demand and not technology or the extent of its use outside the forum.

What about the Mycelium board then?

If you want to have a subforum here, contribute to the increase in the number of topics and discussions that talk about the Lightning Network. Over time, the topics will increase and a dedicated section will be created.

I have been already doing it for 3 years! Take a look at the FAQ thread (there is also a non-self-moderated version). Both have 49 pages in total which could make up quite a lot of separate threads.

If a person does not know how to use the forum, then allocating a subforum will not make a difference to him, as he will either use the search feature or Google, or he will ask his question and the mods will move it to the appropriate section.
if he knows how to use the forum, adding a new section only means more spams.

Still, those topics could be moved to the Lightning section where they could be answered by more people. Right now, I am using ninjastic.space to keep track of new threads and I sometimes miss some of them. I am afraid that some users might get too frustrated if they don't get an answer, and they might give up on the LN.
399  Local / Polski / Re: Pospekulujmy o aktualnej i przyszłej cenie BTC. on: June 17, 2021, 10:59:27 AM
A z polskiego na nasze .... czy softfork taproot pozwoli na poziom prywatności xmr lub podobnej monety zapewniającej anonimowość

Na pewno nie będzie to poziom XMR. Nadal będzie wiadomo kto jest nadawcą i odbiorcą płatności oraz jaka jest wartość transakcji. Adresy taproot będą korzystały z sygnatur Schnorra, które pozwalają na agregację sygnatur. W praktyce oznacza to, że transakcje z adresów multisig będą nieodróżnialne od zwykłych adresów.
400  Local / Polski / Re: Pospekulujmy o aktualnej i przyszłej cenie BTC. on: June 16, 2021, 08:19:11 PM
Nie jestem zbytnio fanem dyskutowania o cenie, ale jestem ciekaw Waszego zdania. Jak myślicie, jak duży (o ile w ogóle) będzie wzrost ceny po aktywacji Taproot w listopadzie? Podejrzewam, że im bliżej będziemy aktywacji, tym więcej ludzi zacznie mówić jak bardzo jest to ważna aktualizacja i, że możemy spodziewać się wzrostów podobnych do tych po aktualizacji SegWit.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 ... 136 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!