Browse Source

PIP-0032A: added security analysis section in workflow

Herman Schoenfeld 6 years ago
parent
commit
c505754d38
1 changed files with 7 additions and 0 deletions
  1. 7 0
      PIP/PIP-0032A.md

+ 7 - 0
PIP/PIP-0032A.md

@@ -86,6 +86,13 @@ _**NOTE** In the process of spending TXN1, Alice reveals the SECRET inside TXN2,
 10. **Atomic Swap Completed**
 
 
+_**IMPORTANT**_ 
+
+_Notice that Alice's offer to Bob was locked for 3 weeks, yet Bob's offer to Alice was locked for only 2 weeks._
+* _A Time-Lock differential is necessary to avoid the scenario where Alice takes both the 1 BTC and account X containing 100 PASC by revealing the SECRET at the moment the time-lock of X to Bob expires._
+* _With this time difference, if after 2 weeks Alice has not revealed SECRET, Bob can determine Alice is acting in bad faith (or has abandoned the contract) giving him 1 week to safely cancel the swap and reclaim his 1 BTC._ 
+* _In this eventuality, Alice does not lose her PASC since she never revealed SECRET. She can safely reclaim her PASC after account X's time-lock to Bob expires in 3 weeks_.
+
 ## Specification
 
 The following changes are required to implement this type of HLTC in PascalCoin.