-
Notifications
You must be signed in to change notification settings - Fork 3
⚗️ Create basic expiry model of RFC003 #14
Comments
Findings@LLFourn and I had a couple of meetings and we figured out some things:
Given this, the topic of this spike changed from creating a security model to, more generally, creating a basic model to calculate expiry times. Alpha expiryThere are two ways in which
It would therefore be ideal to find a value of Assumptions
ModelTo determine where is the expected value for the time it would take for the redeem transaction to obtain confirmations on The sum of mutually independent exponential random variables with the same parameter is an Erlang. The expected value for an Erlang random variable is given by . Therefore, from which Beta expiryThere are two ways in which
Consequently, it would be ideal to find a value of Assumptions
ModelTo determine Given the assumptions, where is the time when the swap parameters are set, and is the expected value for the time it would take for the redeem transaction to obtain confirmations on The sum of mutually independent exponential random variables with the same parameter is an Erlang. The expected value for an Erlang random variable is given by . Therefore, |
Hey nice work. Here's a few notes on first reading:
Obviously we haven't figured out the right answer™ here but I think we know enough about the problem to start reading research papers in this area. Well done! |
Can we finish with the spike PR and move this outcome to our spike repo? It'll be easier to review :) |
Absolutely. As soon as that's done I'll submit it there! |
Well written, thanks. Here some comments:
Thanks for the model, looks good in general but I'd be interested in some numbers and examples please :) |
Yep, that's a typo.
I agree, but I'd say we have direct control of whether we show the redeem action to Alice, so it's on us to not show the action if it's getting too close to
Good catch, another typo 😛
Good idea! |
I'm not sure if I understand your comment correctly: My understanding of this model is exactly for making this secure for anyone (not just our implementation) |
Alice's risk is determined by whether she attempts to redeem The model calculates Obviously, for egregiously large values of |
The latex conversion I made of the previous work is here: https://www.overleaf.com/read/sswbyytnfjhy Please review. |
@LLFourn who should be reviewing? |
Really good work on that so far. I've added some comments and discussed with @LLFourn offline. |
Calculate the appropriate
alpha_expiry
andbeta_expiry
for each party given the following:DOD:
alpha_expiry
,beta_expiry
values for BTC-ETH and ETH-BTC.Child of comit-network/comit-rs#670
The text was updated successfully, but these errors were encountered: