Skip to content

Commit 6925823

Browse files
committed
add bitcoin early refund transaction
1 parent f0f724f commit 6925823

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

schemas/old_tranasction_schem.tex

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
\TxBoxWithCondition{5}{-3}{$\cancel$}{$a \land b$}
8383
\end{scope}
8484

85+
\begin{scope}[name prefix = txearlyrefund-]
86+
\TxBoxWithoutCondition{4}{3}{$tx_{\textsf{early refund}}^{\textsf{btc}}$}{$\address{refund}{B}$}
87+
\end{scope}
88+
89+
\StickyNote[12em]{txearlyrefund-txBox}{above right=1em and 9em}{noteEarlyRefund}{Alice and Bob pre-sign this transaction during the negotiation phase but only Alice has the fully signed transaction. She can choose to publish this to allow Bob to do a full refund without having to wait for the timelock to expire. Alice will typically publish this transaction if she cannot lock her Monero.}
90+
8591
\begin{scope}[name prefix = txrefundfull-]
8692
\TxBoxWithoutCondition{8}{1}{$tx_{\textsf{full refund}}^{\textsf{btc}}$}{$\address{refund}{B}$}
8793
\end{scope}
@@ -117,12 +123,15 @@
117123
\TxBoxWithoutCondition{8}{-4.5}{$\punish$}{$\address{punish}{A}$}
118124
\end{scope}
119125

126+
\draw [line] (txfund-spendingCondition.north) |- (txearlyrefund-txBox.west)
127+
node [labelBelow_small, font=\scriptsize]{$\A, \B$};
128+
120129
\draw [line] (txfund-spendingCondition.north) |- (txredeem-txBox.west)
121-
node [labelBelow_small, font=\scriptsize]{$\A, \B$};
122-
123-
\draw [line] (txfund-spendingCondition.south) |- (txcancel-txBox.west)
124-
node [labelAbove_small, font=\scriptsize] {$\checkRelative{t_1}$}
125-
node [labelBelow_small, font=\scriptsize]{$\A, \B$};
130+
node [labelBelow_small, font=\scriptsize]{$\A, \B$};
131+
132+
\draw [line] (txfund-spendingCondition.south) |- (txcancel-txBox.west)
133+
node [labelAbove_small, font=\scriptsize] {$\checkRelative{t_1}$}
134+
node [labelBelow_small, font=\scriptsize]{$\A, \B$};
126135

127136
\draw [line] (txcancel-spendingCondition.north) |- (txrefundfull-txBox.west)
128137
node [labelBelow_small, font=\scriptsize]{$\A, \B$};

0 commit comments

Comments
 (0)