refactor: Separate MSG4F and lock txn sending
This commit is contained in:
17 files changed
+1003
-140
No files matched your search
@@ -1,3 +1,3 @@
|
||||
name = "basicswap"
|
||||
|
||||
__version__ = "0.0.33"
|
||||
__version__ = "0.0.34"
|
||||
+77
-70
@@ -225,6 +225,8 @@ class BasicSwap(BaseApp):
|
||||
# TODO: Adjust ranges
|
||||
self.min_delay_event = self.settings.get('min_delay_event', 10)
|
||||
self.max_delay_event = self.settings.get('max_delay_event', 60)
|
||||
self.min_delay_event_short = self.settings.get('min_delay_event_short', 2)
|
||||
self.max_delay_event_short = self.settings.get('max_delay_event_short', 30)
|
||||
|
||||
self.min_delay_retry = self.settings.get('min_delay_retry', 60)
|
||||
self.max_delay_retry = self.settings.get('max_delay_retry', 5 * 60)
|
||||
@@ -893,6 +895,21 @@ class BasicSwap(BaseApp):
|
||||
nm += 1
|
||||
self.log.info('Scanned %d unread messages.', nm)
|
||||
|
||||
def getActiveBidMsgValidTime(self):
|
||||
return self.SMSG_SECONDS_IN_HOUR * 48
|
||||
|
||||
def getAcceptBidMsgValidTime(self, bid):
|
||||
now = int(time.time())
|
||||
smsg_max_valid = self.SMSG_SECONDS_IN_HOUR * 48
|
||||
smsg_min_valid = self.SMSG_SECONDS_IN_HOUR * 1
|
||||
bid_valid = (bid.expire_at - now) + 10 * 60 # Add 10 minute buffer
|
||||
return max(smsg_min_valid, min(smsg_max_valid, bid_valid))
|
||||
|
||||
def sendSmsg(self, addr_from, addr_to, payload_hex, msg_valid):
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
ro = self.callrpc('smsgsend', [addr_from, addr_to, payload_hex, False, msg_valid, False, options])
|
||||
return bytes.fromhex(ro['msgid'])
|
||||
|
||||
def validateSwapType(self, coin_from, coin_to, swap_type):
|
||||
if coin_from == Coins.XMR:
|
||||
raise ValueError('TODO: XMR coin_from')
|
||||
@@ -1054,13 +1071,8 @@ class BasicSwap(BaseApp):
|
||||
|
||||
offer_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.OFFER) + offer_bytes.hex()
|
||||
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
msg_valid = max(self.SMSG_SECONDS_IN_HOUR * 1, valid_for_seconds)
|
||||
ro = self.callrpc('smsgsend', [offer_addr, offer_addr_to, payload_hex, False, msg_valid, False, options])
|
||||
msg_id = ro['msgid']
|
||||
|
||||
offer_id = bytes.fromhex(msg_id)
|
||||
offer_id = self.sendSmsg(offer_addr, offer_addr_to, payload_hex, msg_valid)
|
||||
|
||||
security_token = extra_options.get('security_token', None)
|
||||
if security_token is not None and len(security_token) != 20:
|
||||
@@ -1145,10 +1157,8 @@ class BasicSwap(BaseApp):
|
||||
|
||||
msg_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.OFFER_REVOKE) + msg_bytes.hex()
|
||||
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, self.network_addr, payload_hex, False, offer.time_valid, False, options])
|
||||
msg_id = ro['msgid']
|
||||
msg_id = self.sendSmsg(offer.addr_from, self.network_addr, payload_hex, offer.time_valid)
|
||||
self.log.debug('Revoked offer %s in msg %s', offer_id.hex(), msg_id.hex())
|
||||
finally:
|
||||
if session:
|
||||
session.close()
|
||||
@@ -1680,10 +1690,8 @@ class BasicSwap(BaseApp):
|
||||
bid_addr = self.newSMSGAddress(use_type=AddressTypes.BID)[0] if addr_send_from is None else addr_send_from
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
msg_valid = max(self.SMSG_SECONDS_IN_HOUR * 1, valid_for_seconds)
|
||||
ro = self.callrpc('smsgsend', [bid_addr, offer.addr_from, payload_hex, False, msg_valid, False, options])
|
||||
msg_id = ro['msgid']
|
||||
|
||||
bid_id = bytes.fromhex(msg_id)
|
||||
bid_id = self.sendSmsg(bid_addr, offer.addr_from, payload_hex, msg_valid)
|
||||
bid = Bid(
|
||||
protocol_version=msg_buf.protocol_version,
|
||||
active_ind=1,
|
||||
@@ -1962,19 +1970,13 @@ class BasicSwap(BaseApp):
|
||||
|
||||
bid_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.BID_ACCEPT) + bid_bytes.hex()
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
# TODO: set msg_valid based on bid / offer parameters
|
||||
msg_valid = self.SMSG_SECONDS_IN_HOUR * 48
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, bid.bid_addr, payload_hex, False, msg_valid, False, options])
|
||||
msg_id = ro['msgid']
|
||||
|
||||
accept_msg_id = bytes.fromhex(msg_id)
|
||||
msg_valid = self.getAcceptBidMsgValidTime(bid)
|
||||
bid.accept_msg_id = self.sendSmsg(offer.addr_from, bid.bid_addr, payload_hex, msg_valid)
|
||||
|
||||
bid.accept_msg_id = accept_msg_id
|
||||
self.log.info('Sent BID_ACCEPT %s', bid.accept_msg_id.hex())
|
||||
bid.setState(BidStates.BID_ACCEPTED)
|
||||
|
||||
self.log.info('Sent BID_ACCEPT %s', accept_msg_id.hex())
|
||||
|
||||
self.saveBid(bid_id, bid)
|
||||
self.swaps_in_progress[bid_id] = (bid, offer)
|
||||
|
||||
@@ -2064,8 +2066,7 @@ class BasicSwap(BaseApp):
|
||||
bid_addr = self.newSMSGAddress(use_type=AddressTypes.BID)[0] if addr_send_from is None else addr_send_from
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
msg_valid = max(self.SMSG_SECONDS_IN_HOUR * 1, valid_for_seconds)
|
||||
ro = self.callrpc('smsgsend', [bid_addr, offer.addr_from, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.bid_id = bytes.fromhex(ro['msgid'])
|
||||
xmr_swap.bid_id = self.sendSmsg(bid_addr, offer.addr_from, payload_hex, msg_valid)
|
||||
|
||||
if coin_to == Coins.XMR:
|
||||
msg_buf2 = XmrSplitMessage(
|
||||
@@ -2076,8 +2077,7 @@ class BasicSwap(BaseApp):
|
||||
)
|
||||
msg_bytes = msg_buf2.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_SPLIT) + msg_bytes.hex()
|
||||
ro = self.callrpc('smsgsend', [bid_addr, offer.addr_from, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.bid_msg_id2 = bytes.fromhex(ro['msgid'])
|
||||
xmr_swap.bid_msg_id2 = self.sendSmsg(bid_addr, offer.addr_from, payload_hex, msg_valid)
|
||||
|
||||
msg_buf3 = XmrSplitMessage(
|
||||
msg_id=xmr_swap.bid_id,
|
||||
@@ -2087,8 +2087,7 @@ class BasicSwap(BaseApp):
|
||||
)
|
||||
msg_bytes = msg_buf3.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_SPLIT) + msg_bytes.hex()
|
||||
ro = self.callrpc('smsgsend', [bid_addr, offer.addr_from, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.bid_msg_id3 = bytes.fromhex(ro['msgid'])
|
||||
xmr_swap.bid_msg_id3 = self.sendSmsg(bid_addr, offer.addr_from, payload_hex, msg_valid)
|
||||
|
||||
bid = Bid(
|
||||
protocol_version=msg_buf.protocol_version,
|
||||
@@ -2266,11 +2265,9 @@ class BasicSwap(BaseApp):
|
||||
|
||||
msg_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_ACCEPT_LF) + msg_bytes.hex()
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
msg_valid = self.SMSG_SECONDS_IN_HOUR * 48
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, bid.bid_addr, payload_hex, False, msg_valid, False, options])
|
||||
msg_id = ro['msgid']
|
||||
bid.accept_msg_id = bytes.fromhex(msg_id)
|
||||
|
||||
msg_valid = self.getAcceptBidMsgValidTime(bid)
|
||||
bid.accept_msg_id = self.sendSmsg(offer.addr_from, bid.bid_addr, payload_hex, msg_valid)
|
||||
xmr_swap.bid_accept_msg_id = bid.accept_msg_id
|
||||
|
||||
if coin_to == Coins.XMR:
|
||||
@@ -2282,8 +2279,7 @@ class BasicSwap(BaseApp):
|
||||
)
|
||||
msg_bytes = msg_buf2.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_SPLIT) + msg_bytes.hex()
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, bid.bid_addr, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.bid_accept_msg_id2 = bytes.fromhex(ro['msgid'])
|
||||
xmr_swap.bid_accept_msg_id2 = self.sendSmsg(offer.addr_from, bid.bid_addr, payload_hex, msg_valid)
|
||||
|
||||
msg_buf3 = XmrSplitMessage(
|
||||
msg_id=bid_id,
|
||||
@@ -2293,8 +2289,7 @@ class BasicSwap(BaseApp):
|
||||
)
|
||||
msg_bytes = msg_buf3.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_SPLIT) + msg_bytes.hex()
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, bid.bid_addr, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.bid_accept_msg_id3 = bytes.fromhex(ro['msgid'])
|
||||
xmr_swap.bid_accept_msg_id3 = self.sendSmsg(offer.addr_from, bid.bid_addr, payload_hex, msg_valid)
|
||||
|
||||
bid.setState(BidStates.BID_ACCEPTED)
|
||||
|
||||
@@ -2946,7 +2941,7 @@ class BasicSwap(BaseApp):
|
||||
rv = True # Remove from swaps_in_progress
|
||||
elif state == BidStates.XMR_SWAP_FAILED_SWIPED:
|
||||
rv = True # Remove from swaps_in_progress
|
||||
elif state == BidStates.XMR_SWAP_HAVE_SCRIPT_COIN_SPEND_TX:
|
||||
elif state in (BidStates.XMR_SWAP_HAVE_SCRIPT_COIN_SPEND_TX, BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX):
|
||||
if bid.xmr_a_lock_tx is None:
|
||||
return rv
|
||||
|
||||
@@ -3585,6 +3580,8 @@ class BasicSwap(BaseApp):
|
||||
self.redeemXmrBidCoinBLockTx(row.linked_id, session)
|
||||
elif row.action_type == ActionTypes.RECOVER_XMR_SWAP_LOCK_TX_B:
|
||||
self.recoverXmrBidCoinBLockTx(row.linked_id, session)
|
||||
elif row.action_type == ActionTypes.SEND_XMR_SWAP_LOCK_SPEND_MSG:
|
||||
self.sendXmrBidCoinALockSpendTxMsg(row.linked_id, session)
|
||||
else:
|
||||
self.log.warning('Unknown event type: %d', row.event_type)
|
||||
except Exception as ex:
|
||||
@@ -4165,7 +4162,7 @@ class BasicSwap(BaseApp):
|
||||
if xmr_swap.pkal == xmr_swap.pkaf:
|
||||
raise ValueError('Duplicate script spend pubkey.')
|
||||
|
||||
bid.setState(BidStates.SWAP_DELAYING)
|
||||
bid.setState(BidStates.BID_ACCEPTED) # XMR
|
||||
self.saveBidInSession(bid.bid_id, bid, session, xmr_swap)
|
||||
|
||||
delay = random.randrange(self.min_delay_event, self.max_delay_event)
|
||||
@@ -4387,11 +4384,8 @@ class BasicSwap(BaseApp):
|
||||
msg_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_TXN_SIGS_FL) + msg_bytes.hex()
|
||||
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
# TODO: set msg_valid based on bid / offer parameters
|
||||
msg_valid = self.SMSG_SECONDS_IN_HOUR * 48
|
||||
ro = self.callrpc('smsgsend', [bid.bid_addr, offer.addr_from, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.coin_a_lock_tx_sigs_l_msg_id = bytes.fromhex(ro['msgid'])
|
||||
msg_valid = self.getActiveBidMsgValidTime()
|
||||
xmr_swap.coin_a_lock_tx_sigs_l_msg_id = self.sendSmsg(bid.bid_addr, offer.addr_from, payload_hex, msg_valid)
|
||||
|
||||
self.log.info('Sent XMR_BID_TXN_SIGS_FL %s', xmr_swap.coin_a_lock_tx_sigs_l_msg_id.hex())
|
||||
|
||||
@@ -4406,7 +4400,7 @@ class BasicSwap(BaseApp):
|
||||
)
|
||||
bid.xmr_a_lock_tx.setState(TxStates.TX_NONE)
|
||||
|
||||
bid.setState(BidStates.BID_ACCEPTED) # XMR
|
||||
bid.setState(BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS)
|
||||
self.watchXmrSwap(bid, offer, xmr_swap)
|
||||
self.saveBidInSession(bid_id, bid, session, xmr_swap)
|
||||
except Exception as ex:
|
||||
@@ -4414,7 +4408,7 @@ class BasicSwap(BaseApp):
|
||||
self.log.error(traceback.format_exc())
|
||||
|
||||
def sendXmrBidCoinALockTx(self, bid_id, session):
|
||||
# Send coin A lock tx and MSG4F L -> F
|
||||
# Offerer/Leader. Send coin A lock tx
|
||||
self.log.debug('Sending coin A lock tx for xmr bid %s', bid_id.hex())
|
||||
|
||||
bid, xmr_swap = self.getXmrBidFromSession(session, bid_id)
|
||||
@@ -4431,6 +4425,10 @@ class BasicSwap(BaseApp):
|
||||
|
||||
kal = self.getPathKey(coin_from, coin_to, bid.created_at, xmr_swap.contract_count, KeyTypes.KAL)
|
||||
|
||||
# Prove leader can sign for kal, sent in MSG4F
|
||||
xmr_swap.kal_sig = ci_from.signCompact(kal, 'proof key owned for swap')
|
||||
|
||||
# Create Script lock spend tx
|
||||
xmr_swap.a_lock_spend_tx = ci_from.createScriptLockSpendTx(
|
||||
xmr_swap.a_lock_tx, xmr_swap.a_lock_tx_script,
|
||||
xmr_swap.dest_af,
|
||||
@@ -4440,24 +4438,9 @@ class BasicSwap(BaseApp):
|
||||
prevout_amount = ci_from.getLockTxSwapOutputValue(bid, xmr_swap)
|
||||
xmr_swap.al_lock_spend_tx_esig = ci_from.signTxOtVES(kal, xmr_swap.pkasf, xmr_swap.a_lock_spend_tx, 0, xmr_swap.a_lock_tx_script, prevout_amount)
|
||||
|
||||
# Prove leader can sign for kal
|
||||
xmr_swap.kal_sig = ci_from.signCompact(kal, 'proof key owned for swap')
|
||||
|
||||
msg_buf = XmrBidLockSpendTxMessage(
|
||||
bid_msg_id=bid_id,
|
||||
a_lock_spend_tx=xmr_swap.a_lock_spend_tx,
|
||||
kal_sig=xmr_swap.kal_sig)
|
||||
|
||||
msg_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_LOCK_SPEND_TX_LF) + msg_bytes.hex()
|
||||
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
# TODO: set msg_valid based on bid / offer parameters
|
||||
msg_valid = self.SMSG_SECONDS_IN_HOUR * 48
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, bid.bid_addr, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.coin_a_lock_refund_spend_tx_msg_id = bytes.fromhex(ro['msgid'])
|
||||
|
||||
# TODO: Separate MSG4F and txn sending
|
||||
delay = random.randrange(self.min_delay_event_short, self.max_delay_event_short)
|
||||
self.log.info('Sending lock spend tx message for bid %s in %d seconds', bid_id.hex(), delay)
|
||||
self.createActionInSession(delay, ActionTypes.SEND_XMR_SWAP_LOCK_SPEND_MSG, bid_id, session)
|
||||
|
||||
# publishalocktx
|
||||
lock_tx_signed = ci_from.signTxWithWallet(xmr_swap.a_lock_tx)
|
||||
@@ -4560,11 +4543,8 @@ class BasicSwap(BaseApp):
|
||||
msg_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_LOCK_RELEASE_LF) + msg_bytes.hex()
|
||||
|
||||
options = {'decodehex': True, 'ttl_is_seconds': True}
|
||||
# TODO: set msg_valid based on bid / offer parameters
|
||||
msg_valid = self.SMSG_SECONDS_IN_HOUR * 48
|
||||
ro = self.callrpc('smsgsend', [offer.addr_from, bid.bid_addr, payload_hex, False, msg_valid, False, options])
|
||||
xmr_swap.coin_a_lock_refund_spend_tx_msg_id = bytes.fromhex(ro['msgid'])
|
||||
msg_valid = self.getActiveBidMsgValidTime()
|
||||
xmr_swap.coin_a_lock_release_msg_id = self.sendSmsg(offer.addr_from, bid.bid_addr, payload_hex, msg_valid)
|
||||
|
||||
bid.setState(BidStates.XMR_SWAP_LOCK_RELEASED)
|
||||
self.saveBidInSession(bid_id, bid, session, xmr_swap, save_in_progress=offer)
|
||||
@@ -4740,6 +4720,33 @@ class BasicSwap(BaseApp):
|
||||
bid.setState(BidStates.XMR_SWAP_NOSCRIPT_TX_RECOVERED)
|
||||
self.saveBidInSession(bid_id, bid, session, xmr_swap, save_in_progress=offer)
|
||||
|
||||
def sendXmrBidCoinALockSpendTxMsg(self, bid_id, session):
|
||||
# Send MSG4F L -> F
|
||||
self.log.debug('Sending coin A lock spend tx msg for xmr bid %s', bid_id.hex())
|
||||
|
||||
bid, xmr_swap = self.getXmrBidFromSession(session, bid_id)
|
||||
ensure(bid, 'Bid not found: {}.'.format(bid_id.hex()))
|
||||
ensure(xmr_swap, 'XMR swap not found: {}.'.format(bid_id.hex()))
|
||||
|
||||
offer, xmr_offer = self.getXmrOfferFromSession(session, bid.offer_id, sent=False)
|
||||
ensure(offer, 'Offer not found: {}.'.format(bid.offer_id.hex()))
|
||||
ensure(xmr_offer, 'XMR offer not found: {}.'.format(bid.offer_id.hex()))
|
||||
ci_from = self.ci(offer.coin_from)
|
||||
|
||||
msg_buf = XmrBidLockSpendTxMessage(
|
||||
bid_msg_id=bid_id,
|
||||
a_lock_spend_tx=xmr_swap.a_lock_spend_tx,
|
||||
kal_sig=xmr_swap.kal_sig)
|
||||
|
||||
msg_bytes = msg_buf.SerializeToString()
|
||||
payload_hex = str.format('{:02x}', MessageTypes.XMR_BID_LOCK_SPEND_TX_LF) + msg_bytes.hex()
|
||||
|
||||
msg_valid = self.getActiveBidMsgValidTime()
|
||||
xmr_swap.coin_a_lock_refund_spend_tx_msg_id = self.sendSmsg(offer.addr_from, bid.bid_addr, payload_hex, msg_valid)
|
||||
|
||||
bid.setState(BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX)
|
||||
self.saveBidInSession(bid_id, bid, session, xmr_swap, save_in_progress=offer)
|
||||
|
||||
def processXmrBidCoinALockSigs(self, msg):
|
||||
# Leader processing MSG3L
|
||||
self.log.debug('Processing xmr coin a follower lock sigs msg %s', msg['msgid'])
|
||||
@@ -4795,7 +4802,7 @@ class BasicSwap(BaseApp):
|
||||
self.log.info('Sending coin A lock tx for xmr bid %s in %d seconds', bid_id.hex(), delay)
|
||||
self.createAction(delay, ActionTypes.SEND_XMR_SWAP_LOCK_TX_A, bid_id)
|
||||
|
||||
bid.setState(BidStates.SWAP_DELAYING)
|
||||
bid.setState(BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS)
|
||||
self.saveBid(bid_id, bid, xmr_swap=xmr_swap)
|
||||
except Exception as ex:
|
||||
if self.debug:
|
||||
|
||||
@@ -96,6 +96,8 @@ class BidStates(IntEnum):
|
||||
BID_STALLED_FOR_TEST = 24
|
||||
BID_REJECTED = 25
|
||||
BID_STATE_UNKNOWN = 26
|
||||
XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS = 27 # XmrBidLockTxSigsMessage
|
||||
XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX = 28 # XmrBidLockSpendTxMessage
|
||||
|
||||
|
||||
class TxStates(IntEnum):
|
||||
@@ -132,6 +134,7 @@ class ActionTypes(IntEnum):
|
||||
REDEEM_XMR_SWAP_LOCK_TX_A = auto() # Follower
|
||||
REDEEM_XMR_SWAP_LOCK_TX_B = auto() # Leader
|
||||
RECOVER_XMR_SWAP_LOCK_TX_B = auto()
|
||||
SEND_XMR_SWAP_LOCK_SPEND_MSG = auto()
|
||||
|
||||
|
||||
class EventLogTypes(IntEnum):
|
||||
@@ -235,6 +238,10 @@ def strBidState(state):
|
||||
return 'Failed'
|
||||
if state == BidStates.SWAP_DELAYING:
|
||||
return 'Delaying'
|
||||
if state == BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS:
|
||||
return 'Exchanged script lock tx sigs msg'
|
||||
if state == BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX:
|
||||
return 'Exchanged script lock spend tx msg'
|
||||
return 'Unknown' + ' ' + str(state)
|
||||
|
||||
|
||||
@@ -408,4 +415,8 @@ def isActiveBidState(state):
|
||||
return True
|
||||
if state == BidStates.XMR_SWAP_SCRIPT_TX_PREREFUND:
|
||||
return True
|
||||
if state == BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS:
|
||||
return True
|
||||
if state == BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX:
|
||||
return True
|
||||
return False
|
||||
+4
-3
@@ -12,8 +12,8 @@ from enum import IntEnum, auto
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
|
||||
CURRENT_DB_VERSION = 14
|
||||
CURRENT_DB_DATA_VERSION = 1
|
||||
CURRENT_DB_VERSION = 15
|
||||
CURRENT_DB_DATA_VERSION = 2
|
||||
Base = declarative_base()
|
||||
|
||||
|
||||
@@ -301,7 +301,8 @@ class XmrSwap(Base):
|
||||
bid_accept_msg_id3 = sa.Column(sa.LargeBinary)
|
||||
|
||||
coin_a_lock_tx_sigs_l_msg_id = sa.Column(sa.LargeBinary) # MSG3L F -> L
|
||||
coin_a_lock_refund_spend_tx_msg_id = sa.Column(sa.LargeBinary) # MSG4F L -> F
|
||||
coin_a_lock_spend_tx_msg_id = sa.Column(sa.LargeBinary) # MSG4F L -> F
|
||||
coin_a_lock_release_msg_id = sa.Column(sa.LargeBinary) # MSG5F L -> F
|
||||
|
||||
contract_count = sa.Column(sa.Integer)
|
||||
|
||||
|
||||
@@ -59,6 +59,15 @@ def upgradeDatabaseData(self, data_version):
|
||||
label=strBidState(state),
|
||||
created_at=now))
|
||||
|
||||
if data_version < 2:
|
||||
for state in (BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS, BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX):
|
||||
session.add(BidState(
|
||||
active_ind=1,
|
||||
state_id=int(state),
|
||||
in_progress=isActiveBidState(state),
|
||||
label=strBidState(state),
|
||||
created_at=now))
|
||||
|
||||
self.db_data_version = CURRENT_DB_DATA_VERSION
|
||||
self.setIntKVInSession('db_data_version', self.db_data_version, session)
|
||||
session.commit()
|
||||
@@ -203,7 +212,10 @@ def upgradeDatabase(self, db_version):
|
||||
session.execute('ALTER TABLE actions RENAME COLUMN event_id TO action_id')
|
||||
session.execute('ALTER TABLE actions RENAME COLUMN event_type TO action_type')
|
||||
session.execute('ALTER TABLE actions RENAME COLUMN event_data TO action_data')
|
||||
|
||||
elif current_version == 14:
|
||||
db_version += 1
|
||||
session.execute('ALTER TABLE xmr_swaps ADD COLUMN coin_a_lock_release_msg_id BLOB')
|
||||
session.execute('ALTER TABLE xmr_swaps RENAME COLUMN coin_a_lock_refund_spend_tx_msg_id TO coin_a_lock_spend_tx_msg_id')
|
||||
if current_version != db_version:
|
||||
self.db_version = db_version
|
||||
self.setIntKVInSession('db_version', db_version, session)
|
||||
|
||||
@@ -1 +1,407 @@
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1272" height="1987.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2"><defs><marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/></marker><style>.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme .inline_expression_divider{stroke-dasharray:10,5}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}</style></defs><g id="mscgenjsreplaceme_body" transform="translate(51 3)"><path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-51-3h1272v1987.3H-51z" id="mscgenjsreplaceme_background"/><g id="mscgenjsreplaceme_arcspans"><path class="box inline_expression alt" d="M-41 642.06h1044V1962.3H-41z"/><path class="box inline_expression alt" d="M-37 1334.18H999v590.12H-37z"/></g><g id="mscgenjsreplaceme_lifelines"><path class="arcrow" style="stroke:transparent" d="M65 38v38"/><path class="arcrow" style="stroke:#080" d="M273 38v38"/><path class="arcrow" style="stroke:red" d="M481 38v38"/><path class="arcrow" style="stroke:#00f" d="M689 38v38"/><path class="arcrow" style="stroke:transparent" d="M897 38v38M1105 38v38M65 76v38"/><path class="arcrow" style="stroke:#080" d="M273 76v38"/><path class="arcrow" style="stroke:red" d="M481 76v38"/><path class="arcrow" style="stroke:#00f" d="M689 76v38"/><path class="arcrow" style="stroke:transparent" d="M897 76v38M1105 76v38M65 114v38"/><path class="arcrow" style="stroke:#080" d="M273 114v38"/><path class="arcrow" style="stroke:red" d="M481 114v38"/><path class="arcrow" style="stroke:#00f" d="M689 114v38"/><path class="arcrow" style="stroke:transparent" d="M897 114v38M1105 114v38M65 152v38"/><path class="arcrow" style="stroke:#080" d="M273 152v38"/><path class="arcrow" style="stroke:red" d="M481 152v38"/><path claLine truncated
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1272" height="2025.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2">
|
||||
<defs>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/>
|
||||
</marker>
|
||||
<style>
|
||||
.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme .inline_expression_divider{stroke-dasharray:10,5}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}
|
||||
</style>
|
||||
</defs>
|
||||
<g id="mscgenjsreplaceme_body" transform="translate(51 3)">
|
||||
<path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-51-3h1272v2025.3H-51z" id="mscgenjsreplaceme_background"/>
|
||||
<g id="mscgenjsreplaceme_arcspans">
|
||||
<path class="box inline_expression alt" d="M-41 680.06h1044V2000.3H-41z"/>
|
||||
<path class="box inline_expression alt" d="M-37 1372.18H999v590.12H-37z"/>
|
||||
</g>
|
||||
<g id="mscgenjsreplaceme_lifelines">
|
||||
<path class="arcrow" style="stroke:transparent" d="M65 38v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 38v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 38v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 38v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 38v38M1105 38v38M65 76v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 76v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 76v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 76v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 76v38M1105 76v38M65 114v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 114v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 114v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 114v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 114v38M1105 114v38M65 152v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 152v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 152v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 152v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 152v38M1105 152v38M65 190v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 190v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 190v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 190v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 190v38M1105 190v38M65 228v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 228v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 228v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 228v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 228v38M1105 228v38M65 266v54"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 266v54"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 266v54"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 266v54"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 266v54M1105 266v54M65 320v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 320v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 320v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 320v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 320v38M1105 320v38M65 358v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 358v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 358v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 358v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 358v38M1105 358v38M65 396v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 396v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 396v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 396v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 396v38M1105 396v38M65 434v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 434v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 434v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 434v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 434v38M1105 434v38M65 472v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 472v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 472v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 472v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 472v38M1105 472v38M65 510v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 510v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 510v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 510v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 510v38M1105 510v38M65 548v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 548v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 548v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 548v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 548v75.06M1105 548v75.06M65 623.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 623.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 623.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 623.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 623.06v38M1105 623.06v38M65 661.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 661.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 661.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 661.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 661.06v38M1105 661.06v38M65 699.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 699.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 699.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 699.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 699.06v38M1105 699.06v38M65 737.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 737.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 737.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 737.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 737.06v75.06M1105 737.06v75.06M65 812.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 812.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 812.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 812.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 812.12v38M1105 812.12v38M65 850.12v86"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 850.12v86"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 850.12v86"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 850.12v86"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 850.12v86M1105 850.12v86M65 936.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 936.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 936.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 936.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 936.12v38M1105 936.12v38M65 974.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 974.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 974.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 974.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 974.12v38M1105 974.12v38M65 1012.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1012.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1012.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1012.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1012.12v38M1105 1012.12v38M65 1050.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1050.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1050.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1050.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1050.12v38M1105 1050.12v38M65 1088.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1088.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1088.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1088.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1088.12v38M1105 1088.12v38M65 1126.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1126.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1126.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1126.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1126.12v38M1105 1126.12v38M65 1164.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1164.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1164.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1164.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1164.12v75.06M1105 1164.12v75.06M65 1239.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1239.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1239.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1239.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1239.18v38M1105 1239.18v38M65 1277.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1277.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1277.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1277.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1277.18v38M1105 1277.18v38M65 1315.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1315.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1315.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1315.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1315.18v38M1105 1315.18v38M65 1353.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1353.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1353.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1353.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1353.18v38M1105 1353.18v38M65 1391.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1391.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1391.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1391.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1391.18v38M1105 1391.18v38M65 1429.18v59.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1429.18v59.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1429.18v59.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1429.18v59.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1429.18v59.06M1105 1429.18v59.06M65 1488.24v54"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1488.24v54"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1488.24v54"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1488.24v54"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1488.24v54M1105 1488.24v54M65 1542.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1542.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1542.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1542.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1542.24v38M1105 1542.24v38M65 1580.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1580.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1580.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1580.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1580.24v38M1105 1580.24v38M65 1618.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1618.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1618.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1618.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1618.24v38M1105 1618.24v38M65 1656.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1656.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1656.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1656.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1656.24v38M1105 1656.24v38M65 1694.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1694.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1694.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1694.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1694.24v38M1105 1694.24v38M65 1732.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1732.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1732.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1732.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1732.24v38M1105 1732.24v38M65 1770.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1770.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1770.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1770.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1770.24v38M1105 1770.24v38M65 1808.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1808.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1808.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1808.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1808.24v59.06M1105 1808.24v59.06M65 1867.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1867.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1867.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1867.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1867.3v38M1105 1867.3v38M65 1905.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1905.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1905.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1905.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1905.3v38M1105 1905.3v38M65 1943.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1943.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1943.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1943.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1943.3v38M1105 1943.3v38M65 1981.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1981.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1981.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1981.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1981.3v38M1105 1981.3v38"/>
|
||||
</g>
|
||||
<g id="mscgenjsreplaceme_sequence">
|
||||
<path class="entity" style="stroke:transparent" d="M0 0h130v38H0z"/>
|
||||
<text x="65" y="22.75" class="entity-text"><tspan> </tspan></text>
|
||||
<path class="entity" style="fill:#cfc;stroke:#080" d="M208 0h130v38H208z"/>
|
||||
<text x="273" y="22.75" class="entity-text"><tspan>Network</tspan></text>
|
||||
<path class="entity" style="fill:#fcc;stroke:red" d="M416 0h130v38H416z"/>
|
||||
<text x="481" y="22.75" class="entity-text"><tspan>Offerer</tspan></text>
|
||||
<path class="entity" style="fill:#ccf;stroke:#00f" d="M624 0h130v38H624z"/>
|
||||
<text x="689" y="22.75" class="entity-text"><tspan>Bidder</tspan></text>
|
||||
<path class="entity" style="stroke:transparent" d="M832 0h130v38H832z"/>
|
||||
<text x="897" y="22.75" class="entity-text"><tspan> </tspan></text>
|
||||
<path class="entity" style="stroke:transparent" d="M1040 0h130v38h-130z"/>
|
||||
<text x="1105" y="22.75" class="entity-text"><tspan> </tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 95H273"/>
|
||||
<path class="label-text-background" d="M345.08 79.25h63.84v14h-63.84z"/>
|
||||
<text x="377" y="90.25" class="directional-text callback-text"><tspan>Sends Offer</tspan></text>
|
||||
<path class="arc directional return" style="stroke:#080" marker-end="url(#mscgenjsreplacemecallback-#008800)" d="M273 133h416"/>
|
||||
<path class="label-text-background" d="M445.75 117.25h70.5v14h-70.5z"/>
|
||||
<text x="481" y="128.25" class="directional-text return-text"><tspan>Detects Offer</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 171H481"/>
|
||||
<path class="label-text-background" d="M557.64 155.25h54.72v14h-54.72z"/>
|
||||
<text x="585" y="166.25" class="directional-text callback-text"><tspan>Sends Bid</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 293h208"/>
|
||||
<path class="label-text-background" d="M513.28 277.25h143.77v14H513.28z"/>
|
||||
<text x="585" y="288.25" class="directional-text callback-text"><tspan>Sends BidAccept message</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 415H481"/>
|
||||
<path class="label-text-background" d="M491.28 399.25h187.77v14H491.28z"/>
|
||||
<text x="585" y="410.25" class="directional-text callback-text"><tspan>Sends XmrBidLockTxSigsMessage</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 491h208"/>
|
||||
<path class="label-text-background" d="M485.61 475.25h199.11v14H485.61z"/>
|
||||
<text x="585" y="486.25" class="directional-text callback-text"><tspan>Sends XmrBidLockSpendTxMessage</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 529H273"/>
|
||||
<path class="label-text-background" d="M311.64 513.25h130.72v14H311.64z"/>
|
||||
<text x="377" y="524.25" class="directional-text callback-text"><tspan>Sends script-coin-lock-tx</tspan></text>
|
||||
<path d="M689 577.93c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:#00f" marker-end="url(#mscgenjsreplacememethod-#0000FF)"/>
|
||||
<path class="label-text-background" d="M692 529.67h40.91v14.02H692z"/>
|
||||
<text x="692" y="540.68" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M692 545.67h107.02v14.02H692z"/>
|
||||
<text x="692" y="556.68" class="directional-text method-text anchor-start"><tspan>script-coin-lock-tx to</tspan></text>
|
||||
<path class="label-text-background" d="M692 561.67h39.34v14.02H692z"/>
|
||||
<text x="692" y="572.68" class="directional-text method-text anchor-start"><tspan>confirm</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 718.06H273"/>
|
||||
<path class="label-text-background" d="M408.97 702.3h144.06v14.02H408.97z"/>
|
||||
<text x="481" y="713.31" class="directional-text callback-text"><tspan>Sends noscript-coin-lock-tx</tspan></text>
|
||||
<path d="M689 766.99c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:#00f" marker-end="url(#mscgenjsreplacememethod-#0000FF)"/>
|
||||
<path class="label-text-background" d="M692 718.73h40.91v14.02H692z"/>
|
||||
<text x="692" y="729.74" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M692 734.73h120.38v14.02H692z"/>
|
||||
<text x="692" y="745.74" class="directional-text method-text anchor-start"><tspan>noscript-coin-lock-tx to</tspan></text>
|
||||
<path class="label-text-background" d="M692 750.73h39.34v14.02H692z"/>
|
||||
<text x="692" y="761.74" class="directional-text method-text anchor-start"><tspan>confirm</tspan></text>
|
||||
<path d="M481 766.99c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 718.73h40.91v14.02H484z"/>
|
||||
<text x="484" y="729.74" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 734.73h120.38v14.02H484z"/>
|
||||
<text x="484" y="745.74" class="directional-text method-text anchor-start"><tspan>noscript-coin-lock-tx to</tspan></text>
|
||||
<path class="label-text-background" d="M484 750.73h39.34v14.02H484z"/>
|
||||
<text x="484" y="761.74" class="directional-text method-text anchor-start"><tspan>confirm</tspan></text>
|
||||
<path class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)" d="M481 893.12h208"/>
|
||||
<path class="label-text-background" d="M519.64 877.36h130.72v14.02H519.64z"/>
|
||||
<text x="585" y="888.37" class="directional-text method-text"><tspan>Sends script-coin-lock-tx</tspan></text>
|
||||
<path class="label-text-background" d="M539.3 895.36h91.73v14.02H539.3z"/>
|
||||
<text x="585" y="906.37" class="directional-text method-text"><tspan>release message</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 993.12H273"/>
|
||||
<path class="label-text-background" d="M397.3 977.36h167.41v14.02H397.3z"/>
|
||||
<text x="481" y="988.37" class="directional-text callback-text"><tspan>Sends script-coin-lock-spend-tx</tspan></text>
|
||||
<path class="inline_expression_divider" d="M-41 1107.12h1044"/>
|
||||
<path class="label-text-background" d="M459.98 1099.86h42.03v14.02h-42.03z"/>
|
||||
<text x="481" y="1110.87" class="empty-text comment-row-text"><tspan>fail path</tspan></text>
|
||||
<path d="M689 1194.05c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:#00f" marker-end="url(#mscgenjsreplacememethod-#0000FF)"/>
|
||||
<path class="label-text-background" d="M692 1145.8h40.91v14.02H692z"/>
|
||||
<text x="692" y="1156.8" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M692 1161.8h131.69v14.02H692z"/>
|
||||
<text x="692" y="1172.8" class="directional-text method-text anchor-start"><tspan>script-coin-lock-tx lock to</tspan></text>
|
||||
<path class="label-text-background" d="M692 1177.8h33.02v14.02H692z"/>
|
||||
<text x="692" y="1188.8" class="directional-text method-text anchor-start"><tspan>expire</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 1258.18H273"/>
|
||||
<path class="label-text-background" d="M359.98 1242.42h34.03v14.02h-34.03z"/>
|
||||
<text x="377" y="1253.43" class="directional-text callback-text"><tspan>Sends</tspan></text>
|
||||
<path class="label-text-background" d="M300.64 1260.42h152.72v14.02H300.64z"/>
|
||||
<text x="377" y="1271.43" class="directional-text callback-text"><tspan>script-coin-lock-pre-refund-tx</tspan></text>
|
||||
<path class="arc directional return" style="stroke:#080" marker-end="url(#mscgenjsreplacemecallback-#008800)" d="M273 1296.18h208"/>
|
||||
<path class="label-text-background" d="M300.64 1280.42h152.72v14.02H300.64z"/>
|
||||
<text x="377" y="1291.43" class="directional-text return-text"><tspan>script-coin-lock-pre-refund-tx</tspan></text>
|
||||
<path d="M481 1451.11c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 1418.86h40.91v14.02H484z"/>
|
||||
<text x="484" y="1429.86" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 1434.86h124.06v14.02H484z"/>
|
||||
<text x="484" y="1445.86" class="directional-text method-text anchor-start"><tspan>pre-refund tx to confirm</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 1515.24H273"/>
|
||||
<path class="label-text-background" d="M359.98 1499.48h34.03v14.02h-34.03z"/>
|
||||
<text x="377" y="1510.49" class="directional-text callback-text"><tspan>Sends</tspan></text>
|
||||
<path class="label-text-background" d="M282.3 1517.48h189.41v14.02H282.3z"/>
|
||||
<text x="377" y="1528.49" class="directional-text callback-text"><tspan>script-coin-lock-pre-refund-spend-tx</tspan></text>
|
||||
<path class="arc directional return" style="stroke:#080" marker-end="url(#mscgenjsreplacemecallback-#008800)" d="M273 1599.24h416"/>
|
||||
<path class="label-text-background" d="M364.28 1583.48h233.44v14.02H364.28z"/>
|
||||
<text x="481" y="1594.49" class="directional-text return-text"><tspan>Detects script-coin-lock-pre-refund-spend-tx</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 1637.24H273"/>
|
||||
<path class="label-text-background" d="M382.97 1621.48h196.06v14.02H382.97z"/>
|
||||
<text x="481" y="1632.49" class="directional-text callback-text"><tspan>Sends scriptless-coin-lock-recover-tx</tspan></text>
|
||||
<path class="inline_expression_divider" d="M-37 1751.24H999"/>
|
||||
<path class="label-text-background" d="M396.95 1743.98h168.09V1758H396.95z"/>
|
||||
<text x="481" y="1754.99" class="empty-text comment-row-text"><tspan>bidder swipes script coin lock tx</tspan></text>
|
||||
<path d="M689 1830.17c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:#00f" marker-end="url(#mscgenjsreplacememethod-#0000FF)"/>
|
||||
<path class="label-text-background" d="M692 1797.91h40.91v14.02H692z"/>
|
||||
<text x="692" y="1808.92" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M692 1813.91h142.41v14.02H692z"/>
|
||||
<text x="692" y="1824.92" class="directional-text method-text anchor-start"><tspan>pre-refund tx lock to expire</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 1886.3H273"/>
|
||||
<path class="label-text-background" d="M368.63 1870.55h224.75v14.02H368.63z"/>
|
||||
<text x="481" y="1881.55" class="directional-text callback-text"><tspan>Sends script-coin-lock-pre-refund-swipe-tx</tspan></text>
|
||||
</g>
|
||||
<g id="mscgenjsreplaceme_notes">
|
||||
<path d="m591 209 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="212.75" class="box-text abox-text"><tspan>Bid Sent</tspan></text>
|
||||
<path class="box" style="stroke:red" d="M383 230h196v34H383z"/>
|
||||
<text x="481" y="250.75" class="box-text"><tspan>User accepts bid</tspan></text>
|
||||
<path d="M799 268h395v9h9m-9-9 9 9v41H799v-50z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="280.75" class="box-text note-text"><tspan>The BidAccept message contains the pubkeys the offerer will use and</tspan></text>
|
||||
<text x="1001" y="296.75" class="box-text note-text"><tspan>a DLEAG proof one key will work across both chains of the swapping</tspan></text>
|
||||
<text x="1001" y="312.75" class="box-text note-text"><tspan>coins</tspan></text>
|
||||
<path d="m591 339 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="342.75" class="box-text abox-text"><tspan>Bid Receiving accept</tspan></text>
|
||||
<path d="m591 377 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="380.75" class="box-text abox-text"><tspan>Bid Accepted</tspan></text>
|
||||
<path d="M799 398h395v9h9m-9-9 9 9v25H799v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="410.75" class="box-text note-text"><tspan>The XmrBidLockTxSigsMessage contains the bidder's signatures for the</tspan></text>
|
||||
<text x="1001" y="426.75" class="box-text note-text"><tspan>script-coin-lock-refund and script-coin-lock-refund-spend txns.</tspan></text>
|
||||
<path d="m591 453 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="448.75" class="box-text abox-text"><tspan>Exchanged script lock tx sigs</tspan></text>
|
||||
<text x="689" y="464.75" class="box-text abox-text"><tspan>msg</tspan></text>
|
||||
<path d="M799 474h395v9h9m-9-9 9 9v25H799v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="486.75" class="box-text note-text"><tspan>The XmrBidLockSpendTxMessage contains the script-coin-lock-tx and</tspan></text>
|
||||
<text x="1001" y="502.75" class="box-text note-text"><tspan>the offerer's signature for it.</tspan></text>
|
||||
<path d="m591 529 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="532.75" class="box-text abox-text"><tspan>Bid Script coin spend tx valid</tspan></text>
|
||||
<path d="m591 642.06 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="645.81" class="box-text abox-text"><tspan>Bid Script coin locked</tspan></text>
|
||||
<path d="M-40 680.06h98.39v11.02l-7 7H-40" class="box inline_expression_label"/>
|
||||
<text x="-38" y="693.31" class="inline_expression-text alt-text anchor-start"><tspan>alt: success path</tspan></text>
|
||||
<path d="m591 831.12 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="834.87" class="box-text abox-text"><tspan>Bid Scriptless coin locked</tspan></text>
|
||||
<path d="M799 852.11h395v9h9m-9-9 9 9v73.02H799v-82.02z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="864.87" class="box-text note-text"><tspan>The XmrBidLockReleaseMessage contains the offerer's OTVES for it. </tspan></text>
|
||||
<text x="1001" y="880.87" class="box-text note-text"><tspan> The bidder decodes the offerer's signature</tspan></text>
|
||||
<text x="1001" y="896.87" class="box-text note-text"><tspan>from the OTVES. When the offerer has the</tspan></text>
|
||||
<text x="1001" y="912.87" class="box-text note-text"><tspan>plaintext signature, they can decode the bidder's noscript-coin-lock-tx</tspan></text>
|
||||
<text x="1001" y="928.87" class="box-text note-text"><tspan>signature.</tspan></text>
|
||||
<path d="m591 955.12 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="958.87" class="box-text abox-text"><tspan>Script coin lock released</tspan></text>
|
||||
<path d="m591 1031.12 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="1034.87" class="box-text abox-text"><tspan>Script tx redeemed</tspan></text>
|
||||
<path d="m591 1069.12 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="1072.87" class="box-text abox-text"><tspan>Bid Completed</tspan></text>
|
||||
<path d="M799 1241.18h395v9h9m-9-9 9 9v25H799v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1261.93" class="box-text note-text"><tspan>tx can be sent by either party.</tspan></text>
|
||||
<path d="m591 1334.18 3-17.01h190l3 17.01-3 17.01H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="1329.93" class="box-text abox-text"><tspan>Bid Script pre-refund tx in</tspan></text>
|
||||
<text x="689" y="1345.93" class="box-text abox-text"><tspan>chain</tspan></text>
|
||||
<path d="M-36 1372.18h200.86v11.02l-7 7H-36" class="box inline_expression_label"/>
|
||||
<text x="-34" y="1385.43" class="inline_expression-text alt-text anchor-start"><tspan>alt: offerer refunds script coin lock tx</tspan></text>
|
||||
<path d="M799 1490.23h395v9h9m-9-9 9 9v41.02H799v-50.02z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1502.99" class="box-text note-text"><tspan>Refunds the script lock tx, with the offerer's cleartext signature</tspan></text>
|
||||
<text x="1001" y="1518.99" class="box-text note-text"><tspan>the bidder can refund the noscript lock tx. </tspan></text>
|
||||
<text x="1001" y="1534.99" class="box-text note-text"><tspan>Once the lock expires the pre-refund tx can be spent by the bidder.</tspan></text>
|
||||
<path d="m383 1561.24 3-17h190l3 17-3 17H386z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1564.99" class="box-text abox-text"><tspan>Bid Failed, refunded</tspan></text>
|
||||
<path d="M799 1582.24h395v9h9m-9-9 9 9v25H799v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1602.99" class="box-text note-text"><tspan>Bidder recovers the offerer's scriptless chain key-shard.</tspan></text>
|
||||
<path d="m591 1675.24 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="1678.99" class="box-text abox-text"><tspan>Bid Scriptless tx recovered</tspan></text>
|
||||
<path d="m591 1713.24 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="1716.99" class="box-text abox-text"><tspan>Bid Failed, refunded</tspan></text>
|
||||
<path d="m591 1924.3 3-17h190l3 17-3 17H594z" class="box abox" style="stroke:#00f"/>
|
||||
<text x="689" y="1928.05" class="box-text abox-text"><tspan>Bid Failed, swiped</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 38 KiB |
@@ -1 +1,388 @@
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1264" height="1819.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2"><defs><marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/></marker><marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10"><path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/></marker><style>.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}</style></defs><g id="mscgenjsreplaceme_body" transform="translate(47 3)"><path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-47-3h1264v1819.3H-47z" id="mscgenjsreplaceme_background"/><path class="box inline_expression alt" d="M-39 664.06h1040V1794.3H-39z" id="mscgenjsreplaceme_arcspans"/><g id="mscgenjsreplaceme_lifelines"><path class="arcrow" style="stroke:transparent" d="M65 38v38"/><path class="arcrow" style="stroke:#080" d="M273 38v38"/><path class="arcrow" style="stroke:red" d="M481 38v38"/><path class="arcrow" style="stroke:#00f" d="M689 38v38"/><path class="arcrow" style="stroke:transparent" d="M897 38v38M1105 38v38M65 76v38"/><path class="arcrow" style="stroke:#080" d="M273 76v38"/><path class="arcrow" style="stroke:red" d="M481 76v38"/><path class="arcrow" style="stroke:#00f" d="M689 76v38"/><path class="arcrow" style="stroke:transparent" d="M897 76v38M1105 76v38M65 114v38"/><path class="arcrow" style="stroke:#080" d="M273 114v38"/><path class="arcrow" style="stroke:red" d="M481 114v38"/><path class="arcrow" style="stroke:#00f" d="M689 114v38"/><path class="arcrow" style="stroke:transparent" d="M897 114v38M1105 114v38M65 152v38"/><path class="arcrow" style="stroke:#080" d="M273 152v38"/><path class="arcrow" style="stroke:red" d="M481 152v38"/><path class="arcrow" style="stroke:#00f" d="M689 152v38"/><path class="arcrow" style="stroke:transparent" d="M897 152v38M1105 152v38M65 190v38"/><path class="Line truncated
|
||||
<svg version="1.1" id="mscgenjsreplaceme" class="mscgenjsreplaceme" xmlns="http://www.w3.org/2000/svg" width="1264" height="1933.3" style="font-family:Helvetica,sans-serif;font-size:12px;font-weight:400;font-style:normal;text-decoration:none;background-color:#fff;stroke:#000;stroke-width:2">
|
||||
<defs>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#00f"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-l-#008800" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:#080"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="m1 1 8 2-8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacemecallback-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path d="M17 1 9 3l8 2" class="arrow-style" style="stroke-dasharray:100,1;stroke:red"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="#00F" fill="#00F" d="m1 1 8 2-8 2z"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-l-#0000FF" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="#00F" fill="#00F" d="M17 1 9 3l8 2z"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="red" fill="red" d="m1 1 8 2-8 2z"/>
|
||||
</marker>
|
||||
<marker orient="auto" id="mscgenjsreplacememethod-l-#FF0000" class="arrow-marker" viewBox="0 0 10 10" refX="9" refY="3" markerUnits="strokeWidth" markerWidth="10" markerHeight="10">
|
||||
<path class="arrow-style" stroke="red" fill="red" d="M17 1 9 3l8 2z"/>
|
||||
</marker>
|
||||
<style>
|
||||
.mscgenjsreplaceme path,.mscgenjsreplaceme rect{fill:none}.mscgenjsreplaceme .label-text-background{fill:#fff;stroke:#fff;stroke-width:0}.mscgenjsreplaceme .return{stroke-dasharray:5,3}.mscgenjsreplaceme text{color:inherit;stroke:none;text-anchor:middle}.mscgenjsreplaceme text.anchor-start{text-anchor:start}.mscgenjsreplaceme .arrow-marker{overflow:visible}.mscgenjsreplaceme .arrow-style{stroke-width:1}.mscgenjsreplaceme .arcrow{stroke-linecap:butt}.mscgenjsreplaceme .box,.mscgenjsreplaceme .entity{fill:#fff;stroke-linejoin:round}
|
||||
</style>
|
||||
</defs>
|
||||
<g id="mscgenjsreplaceme_body" transform="translate(47 3)">
|
||||
<path class="bglayer" style="fill:#fff;stroke:#fff;stroke-width:0" d="M-47-3h1264v1933.3H-47z" id="mscgenjsreplaceme_background"/>
|
||||
<path class="box inline_expression alt" d="M-39 778.06h1040V1908.3H-39z" id="mscgenjsreplaceme_arcspans"/>
|
||||
<g id="mscgenjsreplaceme_lifelines">
|
||||
<path class="arcrow" style="stroke:transparent" d="M65 38v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 38v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 38v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 38v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 38v38M1105 38v38M65 76v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 76v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 76v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 76v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 76v38M1105 76v38M65 114v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 114v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 114v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 114v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 114v38M1105 114v38M65 152v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 152v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 152v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 152v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 152v38M1105 152v38M65 190v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 190v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 190v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 190v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 190v38M1105 190v38M65 228v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 228v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 228v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 228v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 228v38M1105 228v38M65 266v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 266v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 266v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 266v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 266v38M1105 266v38M65 304v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 304v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 304v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 304v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 304v38M1105 304v38M65 342v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 342v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 342v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 342v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 342v38M1105 342v38M65 380v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 380v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 380v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 380v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 380v38M1105 380v38M65 418v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 418v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 418v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 418v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 418v38M1105 418v38M65 456v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 456v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 456v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 456v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 456v38M1105 456v38M65 494v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 494v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 494v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 494v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 494v38M1105 494v38M65 532v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 532v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 532v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 532v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 532v38M1105 532v38M65 570v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 570v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 570v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 570v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 570v38M1105 570v38M65 608v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 608v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 608v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 608v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 608v38M1105 608v38M65 646v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 646v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 646v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 646v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 646v75.06M1105 646v75.06M65 721.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 721.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 721.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 721.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 721.06v38M1105 721.06v38M65 759.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 759.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 759.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 759.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 759.06v38M1105 759.06v38M65 797.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 797.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 797.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 797.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 797.06v38M1105 797.06v38M65 835.06v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 835.06v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 835.06v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 835.06v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 835.06v38M1105 835.06v38M65 873.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 873.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 873.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 873.06v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 873.06v75.06M1105 873.06v75.06M65 948.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 948.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 948.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 948.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 948.12v38M1105 948.12v38M65 986.12v86"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 986.12v86"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 986.12v86"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 986.12v86"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 986.12v86M1105 986.12v86M65 1072.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1072.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1072.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1072.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1072.12v38M1105 1072.12v38M65 1110.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1110.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1110.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1110.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1110.12v38M1105 1110.12v38M65 1148.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1148.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1148.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1148.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1148.12v38M1105 1148.12v38M65 1186.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1186.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1186.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1186.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1186.12v38M1105 1186.12v38M65 1224.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1224.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1224.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1224.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1224.12v38M1105 1224.12v38M65 1262.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1262.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1262.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1262.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1262.12v38M1105 1262.12v38M65 1300.12v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1300.12v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1300.12v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1300.12v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1300.12v38M1105 1300.12v38M65 1338.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1338.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1338.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1338.12v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1338.12v75.06M1105 1338.12v75.06M65 1413.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1413.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1413.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1413.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1413.18v38M1105 1413.18v38M65 1451.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1451.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1451.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1451.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1451.18v38M1105 1451.18v38M65 1489.18v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1489.18v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1489.18v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1489.18v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1489.18v38M1105 1489.18v38M65 1527.18v75.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1527.18v75.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1527.18v75.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1527.18v75.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1527.18v75.06M1105 1527.18v75.06M65 1602.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1602.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1602.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1602.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1602.24v38M1105 1602.24v38M65 1640.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1640.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1640.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1640.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1640.24v38M1105 1640.24v38M65 1678.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1678.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1678.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1678.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1678.24v38M1105 1678.24v38M65 1716.24v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1716.24v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1716.24v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1716.24v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1716.24v38M1105 1716.24v38M65 1754.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1754.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1754.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1754.24v59.06"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1754.24v59.06M1105 1754.24v59.06M65 1813.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1813.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1813.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1813.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1813.3v38M1105 1813.3v38M65 1851.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1851.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1851.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1851.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1851.3v38M1105 1851.3v38M65 1889.3v38"/>
|
||||
<path class="arcrow" style="stroke:#080" d="M273 1889.3v38"/>
|
||||
<path class="arcrow" style="stroke:red" d="M481 1889.3v38"/>
|
||||
<path class="arcrow" style="stroke:#00f" d="M689 1889.3v38"/>
|
||||
<path class="arcrow" style="stroke:transparent" d="M897 1889.3v38M1105 1889.3v38"/>
|
||||
</g>
|
||||
<g id="mscgenjsreplaceme_sequence">
|
||||
<path class="entity" style="stroke:transparent" d="M0 0h130v38H0z"/>
|
||||
<text x="65" y="22.75" class="entity-text"><tspan> </tspan></text>
|
||||
<path class="entity" style="fill:#cfc;stroke:#080" d="M208 0h130v38H208z"/>
|
||||
<text x="273" y="22.75" class="entity-text"><tspan>Network</tspan></text>
|
||||
<path class="entity" style="fill:#fcc;stroke:red" d="M416 0h130v38H416z"/>
|
||||
<text x="481" y="22.75" class="entity-text"><tspan>Offerer</tspan></text>
|
||||
<path class="entity" style="fill:#ccf;stroke:#00f" d="M624 0h130v38H624z"/>
|
||||
<text x="689" y="22.75" class="entity-text"><tspan>Bidder</tspan></text>
|
||||
<path class="entity" style="stroke:transparent" d="M832 0h130v38H832z"/>
|
||||
<text x="897" y="22.75" class="entity-text"><tspan> </tspan></text>
|
||||
<path class="entity" style="stroke:transparent" d="M1040 0h130v38h-130z"/>
|
||||
<text x="1105" y="22.75" class="entity-text"><tspan> </tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 95H273"/>
|
||||
<path class="label-text-background" d="M345.08 79.25h63.84v14h-63.84z"/>
|
||||
<text x="377" y="90.25" class="directional-text callback-text"><tspan>Sends Offer</tspan></text>
|
||||
<path class="arc directional return" style="stroke:#080" marker-end="url(#mscgenjsreplacemecallback-#008800)" d="M273 133h416"/>
|
||||
<path class="label-text-background" d="M445.75 117.25h70.5v14h-70.5z"/>
|
||||
<text x="481" y="128.25" class="directional-text return-text"><tspan>Detects Offer</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 171H481"/>
|
||||
<path class="label-text-background" d="M557.64 155.25h54.72v14h-54.72z"/>
|
||||
<text x="585" y="166.25" class="directional-text callback-text"><tspan>Sends Bid</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 323h208"/>
|
||||
<path class="label-text-background" d="M513.28 307.25h143.77v14H513.28z"/>
|
||||
<text x="585" y="318.25" class="directional-text callback-text"><tspan>Sends BidAccept message</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 399H481"/>
|
||||
<path class="label-text-background" d="M491.28 383.25h187.77v14H491.28z"/>
|
||||
<text x="585" y="394.25" class="directional-text callback-text"><tspan>Sends XmrBidLockTxSigsMessage</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 475H273"/>
|
||||
<path class="label-text-background" d="M311.64 459.25h130.72v14H311.64z"/>
|
||||
<text x="377" y="470.25" class="directional-text callback-text"><tspan>Sends script-coin-lock-tx</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 551h208"/>
|
||||
<path class="label-text-background" d="M485.61 535.25h199.11v14H485.61z"/>
|
||||
<text x="585" y="546.25" class="directional-text callback-text"><tspan>Sends XmrBidLockSpendTxMessage</tspan></text>
|
||||
<path d="M689 675.93c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:#00f" marker-end="url(#mscgenjsreplacememethod-#0000FF)"/>
|
||||
<path class="label-text-background" d="M692 627.67h40.91v14.02H692z"/>
|
||||
<text x="692" y="638.68" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M692 643.67h107.02v14.02H692z"/>
|
||||
<text x="692" y="654.68" class="directional-text method-text anchor-start"><tspan>script-coin-lock-tx to</tspan></text>
|
||||
<path class="label-text-background" d="M692 659.67h39.34v14.02H692z"/>
|
||||
<text x="692" y="670.68" class="directional-text method-text anchor-start"><tspan>confirm</tspan></text>
|
||||
<path d="M481 675.93c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 627.67h40.91v14.02H484z"/>
|
||||
<text x="484" y="638.68" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 643.67h107.02v14.02H484z"/>
|
||||
<text x="484" y="654.68" class="directional-text method-text anchor-start"><tspan>script-coin-lock-tx to</tspan></text>
|
||||
<path class="label-text-background" d="M484 659.67h39.34v14.02H484z"/>
|
||||
<text x="484" y="670.68" class="directional-text method-text anchor-start"><tspan>confirm</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 816.06H273"/>
|
||||
<path class="label-text-background" d="M408.97 800.3h144.06v14.02H408.97z"/>
|
||||
<text x="481" y="811.31" class="directional-text callback-text"><tspan>Sends noscript-coin-lock-tx</tspan></text>
|
||||
<path d="M481 902.99c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 854.73h40.91v14.02H484z"/>
|
||||
<text x="484" y="865.74" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 870.73h120.38v14.02H484z"/>
|
||||
<text x="484" y="881.74" class="directional-text method-text anchor-start"><tspan>noscript-coin-lock-tx to</tspan></text>
|
||||
<path class="label-text-background" d="M484 886.73h39.34v14.02H484z"/>
|
||||
<text x="484" y="897.74" class="directional-text method-text anchor-start"><tspan>confirm</tspan></text>
|
||||
<path class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)" d="M481 1029.12h208"/>
|
||||
<path class="label-text-background" d="M519.64 1013.36h130.72v14.02H519.64z"/>
|
||||
<text x="585" y="1024.37" class="directional-text method-text"><tspan>Sends script-coin-lock-tx</tspan></text>
|
||||
<path class="label-text-background" d="M539.3 1031.36h91.73v14.02H539.3z"/>
|
||||
<text x="585" y="1042.37" class="directional-text method-text"><tspan>release message</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:#00f" marker-end="url(#mscgenjsreplacemecallback-#0000FF)" d="M689 1129.12H273"/>
|
||||
<path class="label-text-background" d="M397.3 1113.36h167.41v14.02H397.3z"/>
|
||||
<text x="481" y="1124.37" class="directional-text callback-text"><tspan>Sends script-coin-lock-spend-tx</tspan></text>
|
||||
<path class="arc directional return" style="stroke:#080" marker-end="url(#mscgenjsreplacemecallback-#008800)" d="M273 1167.12h208"/>
|
||||
<path class="label-text-background" d="M289.97 1151.36h174.06v14.02H289.97z"/>
|
||||
<text x="377" y="1162.37" class="directional-text return-text"><tspan>Detects script-coin-lock-spend-tx</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 1243.12H273"/>
|
||||
<path class="label-text-background" d="M286.63 1227.36h180.75v14.02H286.63z"/>
|
||||
<text x="377" y="1238.37" class="directional-text callback-text"><tspan>Sends noscript-coin-lock-spend-tx</tspan></text>
|
||||
<path d="M481 1368.05c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 1319.8h40.91v14.02H484z"/>
|
||||
<text x="484" y="1330.8" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 1335.8h143.39v14.02H484z"/>
|
||||
<text x="484" y="1346.8" class="directional-text method-text anchor-start"><tspan>noscript-coin-lock-spend-tx</tspan></text>
|
||||
<path class="label-text-background" d="M484 1351.8h52.69v14.02H484z"/>
|
||||
<text x="484" y="1362.8" class="directional-text method-text anchor-start"><tspan>to confirm</tspan></text>
|
||||
<path class="inline_expression_divider" style="stroke-dasharray:10,5" d="M-39 1470.18h1040"/>
|
||||
<path class="label-text-background" d="M459.98 1462.92h42.03v14.02h-42.03z"/>
|
||||
<text x="481" y="1473.93" class="empty-text comment-row-text"><tspan>fail path</tspan></text>
|
||||
<path d="M481 1557.11c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 1508.86h40.91v14.02H484z"/>
|
||||
<text x="484" y="1519.86" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 1524.86h93.36v14.02H484z"/>
|
||||
<text x="484" y="1535.86" class="directional-text method-text anchor-start"><tspan>script-coin-lock-tx</tspan></text>
|
||||
<path class="label-text-background" d="M484 1540.86h93.7v14.02H484z"/>
|
||||
<text x="484" y="1551.86" class="directional-text method-text anchor-start"><tspan>locktime to expire</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 1621.24H273"/>
|
||||
<path class="label-text-background" d="M359.98 1605.48h34.03v14.02h-34.03z"/>
|
||||
<text x="377" y="1616.49" class="directional-text callback-text"><tspan>Sends</tspan></text>
|
||||
<path class="label-text-background" d="M300.64 1623.48h152.72v14.02H300.64z"/>
|
||||
<text x="377" y="1634.49" class="directional-text callback-text"><tspan>script-coin-lock-pre-refund-tx</tspan></text>
|
||||
<path class="arc directional return" style="stroke:#080" marker-end="url(#mscgenjsreplacemecallback-#008800)" d="M273 1659.24h208"/>
|
||||
<path class="label-text-background" d="M300.64 1643.48h152.72v14.02H300.64z"/>
|
||||
<text x="377" y="1654.49" class="directional-text return-text"><tspan>script-coin-lock-pre-refund-tx</tspan></text>
|
||||
<path d="M481 1776.17c104 .1 104 22.8 0 22.8" class="arc directional method" style="stroke:red" marker-end="url(#mscgenjsreplacememethod-#FF0000)"/>
|
||||
<path class="label-text-background" d="M484 1743.91h40.91v14.02H484z"/>
|
||||
<text x="484" y="1754.92" class="directional-text method-text anchor-start"><tspan>Wait for</tspan></text>
|
||||
<path class="label-text-background" d="M484 1759.91h124.06v14.02H484z"/>
|
||||
<text x="484" y="1770.92" class="directional-text method-text anchor-start"><tspan>pre-refund tx to confirm</tspan></text>
|
||||
<path class="arc directional callback" style="stroke:red" marker-end="url(#mscgenjsreplacemecallback-#FF0000)" d="M481 1832.3H273"/>
|
||||
<path class="label-text-background" d="M359.98 1816.55h34.03v14.02h-34.03z"/>
|
||||
<text x="377" y="1827.55" class="directional-text callback-text"><tspan>Sends</tspan></text>
|
||||
<path class="label-text-background" d="M282.3 1834.55h189.41v14.02H282.3z"/>
|
||||
<text x="377" y="1845.55" class="directional-text callback-text"><tspan>script-coin-lock-pre-refund-spend-tx</tspan></text>
|
||||
</g>
|
||||
<g id="mscgenjsreplaceme_notes">
|
||||
<path d="m381 209 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="212.75" class="box-text abox-text"><tspan>Bid Receiving</tspan></text>
|
||||
<path d="m381 247 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="250.75" class="box-text abox-text"><tspan>Bid Received</tspan></text>
|
||||
<path class="box" style="stroke:red" d="M381 268h200v34H381z"/>
|
||||
<text x="481" y="288.75" class="box-text"><tspan>User accepts bid</tspan></text>
|
||||
<path d="M797 306h399v9h9m-9-9 9 9v25H797v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="318.75" class="box-text note-text"><tspan>The BidAccept message contains the pubkeys the offerer will use and a</tspan></text>
|
||||
<text x="1001" y="334.75" class="box-text note-text"><tspan>DLEAG proof one key will work across both chains of the swapping coins</tspan></text>
|
||||
<path d="m381 361 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="364.75" class="box-text abox-text"><tspan>Bid Accepted</tspan></text>
|
||||
<path d="M797 382h399v9h9m-9-9 9 9v25H797v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="394.75" class="box-text note-text"><tspan>The XmrBidLockTxSigsMessage contains the bidder's signatures for the</tspan></text>
|
||||
<text x="1001" y="410.75" class="box-text note-text"><tspan>script-coin-lock-refund and script-coin-lock-refund-spend txns.</tspan></text>
|
||||
<path d="m381 437 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="432.75" class="box-text abox-text"><tspan>Exchanged script lock tx sigs</tspan></text>
|
||||
<text x="481" y="448.75" class="box-text abox-text"><tspan>msg</tspan></text>
|
||||
<path d="m381 513 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="516.75" class="box-text abox-text"><tspan>Bid Script coin spend tx valid</tspan></text>
|
||||
<path d="M797 534h399v9h9m-9-9 9 9v25H797v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="546.75" class="box-text note-text"><tspan>The XmrBidLockSpendTxMessage contains the script-coin-lock-tx and the</tspan></text>
|
||||
<text x="1001" y="562.75" class="box-text note-text"><tspan>offerer's signature for it.</tspan></text>
|
||||
<path d="m381 589 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="584.75" class="box-text abox-text"><tspan>Exchanged script lock spend tx</tspan></text>
|
||||
<text x="481" y="600.75" class="box-text abox-text"><tspan>msg</tspan></text>
|
||||
<path d="m381 740.06 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="743.81" class="box-text abox-text"><tspan>Bid Script coin locked</tspan></text>
|
||||
<path d="M-38 778.06h98.39v11.02l-7 7H-38" class="box inline_expression_label"/>
|
||||
<text x="-36" y="791.31" class="inline_expression-text alt-text anchor-start"><tspan>alt: success path</tspan></text>
|
||||
<path d="m381 967.12 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="970.87" class="box-text abox-text"><tspan>Bid Scriptless coin locked</tspan></text>
|
||||
<path d="M797 988.11h399v9h9m-9-9 9 9v73.02H797v-82.02z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1000.87" class="box-text note-text"><tspan>The XmrBidLockReleaseMessage contains the offerer's OTVES for the</tspan></text>
|
||||
<text x="1001" y="1016.87" class="box-text note-text"><tspan>script-coin-lock-tx. The bidder decodes the</tspan></text>
|
||||
<text x="1001" y="1032.87" class="box-text note-text"><tspan>offerer's signature from the OTVES. When the</tspan></text>
|
||||
<text x="1001" y="1048.87" class="box-text note-text"><tspan>offerer has the plaintext signature, they can decode the bidder's key</tspan></text>
|
||||
<text x="1001" y="1064.87" class="box-text note-text"><tspan>for the noscript-lock-tx.</tspan></text>
|
||||
<path d="m381 1091.12 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1094.87" class="box-text abox-text"><tspan>Bid Script coin lock released</tspan></text>
|
||||
<path d="m381 1205.12 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1208.87" class="box-text abox-text"><tspan>Bid Script tx redeemed</tspan></text>
|
||||
<path d="M797 1188.11h399v9h9m-9-9 9 9v25.02H797v-34.02z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1200.87" class="box-text note-text"><tspan>The offerer extracts the bidder's plaintext signature and derives the</tspan></text>
|
||||
<text x="1001" y="1216.87" class="box-text note-text"><tspan>bidder's noscript-lock-tx keyhalf.</tspan></text>
|
||||
<path d="m381 1281.12 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1284.87" class="box-text abox-text"><tspan>Bid Scriptless tx redeemed</tspan></text>
|
||||
<path d="m381 1432.18 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1435.93" class="box-text abox-text"><tspan>Bid Completed</tspan></text>
|
||||
<path d="M797 1604.24h399v9h9m-9-9 9 9v25H797v-34z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1624.99" class="box-text note-text"><tspan>tx can be sent by either party.</tspan></text>
|
||||
<path d="m381 1697.24 3-17.01h194l3 17.01-3 17.01H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1692.99" class="box-text abox-text"><tspan>Bid Script pre-refund tx in</tspan></text>
|
||||
<text x="481" y="1708.99" class="box-text abox-text"><tspan>chain</tspan></text>
|
||||
<path d="M797 1815.29h399v9h9m-9-9 9 9v25.02H797v-34.02z" class="box note" style="fill:#ffc"/>
|
||||
<text x="1001" y="1828.05" class="box-text note-text"><tspan>Refunds the script lock tx, with the offerer's cleartext signature</tspan></text>
|
||||
<text x="1001" y="1844.05" class="box-text note-text"><tspan>the bidder can refund the noscript lock tx.</tspan></text>
|
||||
<path d="m381 1870.3 3-17h194l3 17-3 17H384z" class="box abox" style="stroke:red"/>
|
||||
<text x="481" y="1874.05" class="box-text abox-text"><tspan>Bid Failed, refunded</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 36 KiB |
Reference in new issue
Block a user