-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible counterparty risk with timelocks #2
Comments
That doesn't prevent him from
|
From my understanding:
|
|
Here I am assuming that Alice has the timelock on her side in case Bob never provides the decryption key, Bob receives regularly micropayments via LN from Alice to make sure that Alice is still interested in the data and committed to have them back eventually. This should also mitigate the risks of spam attack, with people asking to store large amount of data, and then just wait for their timelock to expire to get the money back. |
I think that's an improvement, but doesn't solve the fundamental problem. Since Bob has to deposit a stake Alice can just do nothing and gain that. |
To mitigate counterparty risk in the scenarios N2 and N3 as described in the protocol overview, timelocked conditions are used in the outputs of the funding transaction and of the HTLC settlement transaction, one to protect Bob in the case Alice is unresponsive and one to protect Alice in case Bob is unresponsive. The problem I see with the current scheme is that if Alice's timelock expires first, Alice can avoid paying Bob (assuming she is not interested in the service anymore) and redeem the reward before Bob can redeem with his timelock. Similarly, if Bob's timelock is the first to expire, he can just redeem the reward without providing any service before Alice is able to do anything with the HTLC's timelocked output.
Probably, the only solution to this problem is to implement lightning based payments so that Bob can receive frequent micropayments while providing probabilistic proofs that he is still storing the data. In this way, as soon as Alice stops paying for the service, he can stop storing the data.
The text was updated successfully, but these errors were encountered: