diff --git a/basicswap/static/sequence_diagrams/ads.rev.offerer.xu.min.svg b/basicswap/static/sequence_diagrams/ads.rev.offerer.xu.min.svg index f1b4199..7178670 100644 --- a/basicswap/static/sequence_diagrams/ads.rev.offerer.xu.min.svg +++ b/basicswap/static/sequence_diagrams/ads.rev.offerer.xu.min.svg @@ -1,4 +1,4 @@ - + @@ -35,10 +35,10 @@ - + - - + + @@ -97,39 +97,39 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + @@ -149,15 +149,15 @@ - - - - - - - - - + + + + + + + + + @@ -173,19 +173,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -209,15 +209,15 @@ - - - - - - - - - + + + + + + + + + @@ -229,7 +229,11 @@ - + + + + + @@ -268,85 +272,85 @@ Sends script-coin-lock-tx - - - Wait for - - script-coin-lock-tx to - - confirm - - - Sends noscript-coin-lock-tx - - - Wait for - - noscript-coin-lock-tx to - - confirm - - - Wait for - - noscript-coin-lock-tx to - - confirm - - - Sends script-coin-lock-tx - - release message - - - Sends script-coin-lock-spend-tx - - - fail path - - - Wait for - - script-coin-lock-tx lock to - - expire - - - Sends script-coin-lock-pre-refund-tx - - - script-coin-lock-pre-refund-tx - - - Wait for - - pre-refund tx to confirm - - - Sends script-coin-lock-pre-refund-spend-tx - - - Detects - - script-coin-lock-pre-refund-spend-tx - - - Sends - - scriptless-coin-lock-recover-tx - - - offerer swipes script coin lock tx - - - Wait for - - pre-refund tx lock to expire - - - Sends - - script-coin-lock-pre-refund-swipe-tx + + + Wait for + + script-coin-lock-tx to + + confirm + + + Sends noscript-coin-lock-tx + + + Wait for + + noscript-coin-lock-tx to + + confirm + + + Wait for + + noscript-coin-lock-tx to + + confirm + + + Sends script-coin-lock-tx + + release message + + + Sends script-coin-lock-spend-tx + + + fail path + + + Wait for + + script-coin-lock-tx lock to + + expire + + + Sends script-coin-lock-pre-refund-tx + + + script-coin-lock-pre-refund-tx + + + Wait for + + pre-refund tx to confirm + + + Sends script-coin-lock-pre-refund-spend-tx + + + Detects + + script-coin-lock-pre-refund-spend-tx + + + Sends + + scriptless-coin-lock-recover-tx + + + offerer swipes script coin lock tx + + + Wait for + + pre-refund tx lock to expire + + + Sends + + script-coin-lock-pre-refund-swipe-tx @@ -371,50 +375,50 @@ The XmrBidLockSpendTxMessage contains the script-coin-lock-tx and proof the bidder can sign it. - - Bid Script coin spend tx valid - Exchanged script lock spend tx - msg - - Bid Script coin locked - - Bid Scriptless coin locked - - alt: success path - - The XmrBidLockReleaseMessage contains the bidder's OTVES for it. - The offerer decodes the bidder's signature - from the OTVES. When the bidder has the - plaintext signature, they can decode the offerer's noscript-coin-lock-tx - signature. - - Script coin lock released - - Script tx redeemed + Bid Script coin spend tx valid + + Exchanged script lock spend tx + msg + + Bid Script coin locked + + Bid Scriptless coin locked + + alt: success path + + The XmrBidLockReleaseMessage contains the bidder's OTVES for it. + The offerer decodes the bidder's signature + from the OTVES. When the bidder has the + plaintext signature, they can decode the offerer's noscript-coin-lock-tx + signature. + + Script coin lock released - Bid Completed - - tx can be sent by either party. - - Bid Script pre-refund tx in - chain - - alt: bidder refunds script coin lock tx - - Refunds the script lock tx, with the bidder's cleartext signature - the offerer can refund the noscript lock tx. - Once the lock expires the pre-refund tx can be spent by the offerer. - - Bid Failed, refunded - - offerer recovers the bidder's scriptless chain key-shard. - - Bid Scriptless tx recovered + Script tx redeemed + + Bid Completed + + tx can be sent by either party. + + Bid Script pre-refund tx in + chain + + alt: bidder refunds script coin lock tx + + Refunds the script lock tx, with the bidder's cleartext signature + the offerer can refund the noscript lock tx. + Once the lock expires the pre-refund tx can be spent by the offerer. + + Bid Failed, refunded + + offerer recovers the bidder's scriptless chain key-shard. - Bid Failed, refunded - - Bid Failed, swiped + Bid Scriptless tx recovered + + Bid Failed, refunded + + Bid Failed, swiped diff --git a/doc/protocols/sequence_diagrams/ads.rev.offerer.xu b/doc/protocols/sequence_diagrams/ads.rev.offerer.xu index 7c919de..10fb305 100644 --- a/doc/protocols/sequence_diagrams/ads.rev.offerer.xu +++ b/doc/protocols/sequence_diagrams/ads.rev.offerer.xu @@ -31,7 +31,7 @@ xu { C note C2 [label="The XmrBidLockSpendTxMessage contains the script-coin-lock-tx and proof the bidder can sign it.", textbgcolor="#FFFFCC"]; - B =>> N [label="Sends script-coin-lock-tx"], + B =>> N [label="Sends script-coin-lock-tx"]; O abox O [label="Bid Script coin spend tx valid"]; O abox O [label="Exchanged script lock spend tx msg"]; O => O [label="Wait for script-coin-lock-tx to confirm"];