Post
Topic
Board Bitcoin Discussion
Re: First coffe paid with offchain segwit tx using Twitter
by
Ilsk
on 24/08/2017, 10:59:18 UTC
I don`t understand this "commitment" thing those guys are talking about.What is this?
Two guys are sending each other a bunch of code.It isn`t very user-friendly, i think.
By the way,i don`t see the coffee purchased with this transaction delivered. Grin
Many people have concenrns about offchain transactions security and double spending issues.
Are offchain transactions secure enough?


The commitments are in fact transactions that can be pushed on the blockchain in case the counterparty tries to scam you. So if you want to close tha payment channel but the other party disappears, you can broadcast the last commitment and both get the money according to the last state of the channel.
If one of the parties tries to broadcast a commitment transaction that represents an older state of the channel, using the hashes and the preimages you can block him and punish him for the scam attempt.

It is a different security model than Bitcoin since you have to be online to check you don't get scammed, or you have to delegate someone to monitor the blockchain for you (can be done without trust), but still it's a pretty solid security model since it is build on top of the blockchain.