|
|
|
|
|
by underwires
3064 days ago
|
|
But (correct me if I'm wrong) payment channels are connected to particular sets of recipients, but not necessarily any and all recipients. Your money is locked into that channel until you close it. You might need to open a different channel to reach your actual recipient. |
|
So if I have a channel with you, and you have one with coinbase, I can buy bitcoin from coinbase through you without ever opening another channel, entirely counterparty-risk-free.
And in that scenario if you "refuse" to relay my transaction, or you try to do something sneeky like broadcast an old transaction that we made where I had .1 BTC and you had .9 BTC, that's breaking the agreement we have made and I can broadcast a counter-transaction to the blockchain proper which gives me all of the money in the channel (1 BTC).
And if I try to backstab you by broadcasting the "give me all the money" transaction when you haven't done anything wrong, you have a "counter-counter-transaction" you can broadcast that forces all the money in the channel to you (1 BTC). (and the counter-counter-transaction only works if you HAVE NOT broadcast the original transaction)
There is a bit more complexity to it, but that's the gist.