You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
There is currently no spec for the expiry handling in COMIT. Even though COMIT can come up with default expiries, they are only safe under the assumption that the application takes the constraints that are used to come up with the expiries into consideration.
Goal
Be able to build applications on top of COMIT in a secure way.
Given an asset pair, the default expiries are calculated as X time-units for Alice and Y time-units for Bob because of constraints Z (e.g. underlaying ledger constraints). An application on top of COMIT has to ensure that the redeem transaction is done in due time according to the calculated expiries (X for Alice and Y for Bob).
Additionally add some guidelines for achieving this, e.g. for Ethereum adapting the gas price according to the current network constraints, suggest using metamask or https://www.ethgasstation.info/
Problem
There is currently no spec for the expiry handling in COMIT. Even though COMIT can come up with default expiries, they are only safe under the assumption that the application takes the constraints that are used to come up with the expiries into consideration.
Goal
Be able to build applications on top of COMIT in a secure way.
Proposal
Specify where:
Update the security section in https://github.com/comit-network/RFCs/blob/master/RFC-003-SWAP-Basic.adoc#security-considerations
Specify what:
Given an asset pair, the default expiries are calculated as X time-units for Alice and Y time-units for Bob because of constraints Z (e.g. underlaying ledger constraints). An application on top of COMIT has to ensure that the redeem transaction is done in due time according to the calculated expiries (X for Alice and Y for Bob).
Additionally add some guidelines for achieving this, e.g. for Ethereum adapting the gas price according to the current network constraints, suggest using metamask or https://www.ethgasstation.info/