by 45h34jh53k4j · 8y ago · 0 comments
LN tx's are actually bitcoin tx's. Micro ones! Proper real bitcoin segwittx's! Secured by the network. Its just they are not registered on chain until the payment channel is closed.
This is an oversimplification. LN transactions have much different properties than regular bitcoin transactions. Most notably, LN transactions require the user (or someone they trust) to be online in order to verify that they aren't being defrauded by someone broadcasting and earlier state of the payment channel.
You're right but to clarify, the user getting online once a week or so is enough. They don't have to continuously be online.
Nobody verifies the order, but if you try to broadcast an intermediate state without your counterparty's permission, you can't actually spend it for 1000 (?) blocks.
If your counterparty is able to present a proof that that was an intermediate state rather than the latest state then he gets to spend all of the money in the channel immediately.
So all you need to do is monitor for transactions that are spending old channel states, and take all of the money if your counterparty tries to do it. This is even out-sourceable, so you could have a third-party monitoring the blockchain for old channel states and spending the money to you if anything goes wrong.