Skip to content

Commit f0f724f

Browse files
committed
add sticky note explanations to partial refund logic
1 parent a46da60 commit f0f724f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

schemas/old_tranasction_schem.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
% Position examples: below=3em, right=2em, above left=1em and 2em
5757
% Default width: 6em
5858
\newcommand\StickyNote[5][6em]{%
59-
\node[stickynote, text width=#1, #3 of #2] (#4) {#5};
59+
\node[stickynote, text width=#1, #3 of #2, scale=0.7] (#4) {#5};
6060
\draw[->, orange!70, thick] (#4) -- (#2);
6161
}
6262

@@ -100,6 +100,8 @@
100100
\node[rectangle, inner sep=0, minimum height=0, below=1em of secondBox] (bottomPadding) {};
101101
\node[rectangle, draw, rounded corners, minimum width=9.5em, fit=(nodeLabel)(firstBox)(secondBox)(spendingCondition)(bottomPadding)] (txBox) {};
102102
\end{scope}
103+
104+
\StickyNote[13em]{txtake-txBox}{above right=2em and 9em}{notePartialRefund}{Alice signs her part of this transaction during the negotiation phase and transmits it to Bob. Bob will signs his part of this transaction once tx\_cancel is published on chain and Alice has not transmitted tx\_btc\_full\_refund to him until then. Alice can extract S\_B from the transaction once she sees it}
103105

104106
\begin{scope}[name prefix = txamnesty-]
105107
\node[rectangle] at (12,-3) (center) {};
@@ -109,7 +111,7 @@
109111
\node[rectangle, draw, rounded corners, minimum height=5em, minimum width=8.5em, below=-0.em of center] (txBox) {};
110112
\end{scope}
111113

112-
\StickyNote[10em]{txamnesty-txBox}{below=6em}{noteAmnesty}{If Bob has done a partial refund, Alice can (choose) to publish this transaction to allow him a full refund. Bob signs this part of the transaction during the negotiation phase. Alice can publish this non-interactively.}
114+
\StickyNote[10em]{txamnesty-txBox}{below left=5em and 3em}{noteAmnesty}{If Bob has done a partial refund, Alice can (choose) to publish this transaction to allow him a full refund. Bob signs this part of the transaction during the negotiation phase. Alice can publish this non-interactively.}
113115

114116
\begin{scope}[name prefix = txpunish-]
115117
\TxBoxWithoutCondition{8}{-4.5}{$\punish$}{$\address{punish}{A}$}

0 commit comments

Comments
 (0)