Skip to content

Commit

Permalink
Unmark red items which were addressed in hydra#777
Browse files Browse the repository at this point in the history
Also update the collectComTx figure and fix some typos.
  • Loading branch information
ch1bo committed Apr 27, 2023
1 parent 8bcd88e commit 93055fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Binary file modified spec/figures/collectComTx.pdf
Binary file not shown.
26 changes: 15 additions & 11 deletions spec/onchain.tex
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ \subsection{Commit Transaction}\label{sec:commit-tx}
\begin{menumerate}
\item Committed value is in the output
$\valCommit{i} = \valInitial{i} \cup \val_{\mathsf{committed}}$
\item \textcolor{red}{Currency id and committed output are recorded in the
output datum} $\datumCommit{} = (\cid, C_{i})$ where
\item Currency id and committed output are recorded in the
output datum $\datumCommit{} = (\cid, C_{i})$ where
$C_{i} = (\txOutRef_{\mathsf{committed}},\bytes(o_{\mathsf{committed}}))$ if
$\txOutRef_{\mathsf{committed}}$ was given, or $C_{i} = (\Diamond, \emptyset)$
if nothing committed.
Expand Down Expand Up @@ -183,7 +183,9 @@ \subsection{CollectCom Transaction}\label{sec:collect-tx}
\noindent The state-machine validator $\nuHead$ is spent with
$\redeemerHead = \mathsf{collect}$ and checks:
\begin{menumerate}
\item \textcolor{red}{State is advanced from $\datumHead \sim \stInitial$ to $\datumHead' \sim \stOpen$, parameters $\cid,\hydraKeysAgg,\nop,\cPer$ stay unchanged and the new state is governed again by $\nuHead$:}
\item State is advanced from $\datumHead \sim \stInitial$ to
$\datumHead' \sim \stOpen$, parameters $\cid,\hydraKeysAgg,\nop,\cPer$ stay
unchanged and the new state is governed again by $\nuHead$:
\[
(\stInitial,\cid,\seed,\hydraKeysAgg,\nop,\cPer) \xrightarrow{\stCollect} (\stOpen,\cid,\hydraKeysAgg,\nop,\cPer,\eta)
\]
Expand All @@ -204,8 +206,8 @@ \subsection{CollectCom Transaction}\label{sec:collect-tx}
result\footnote{Sorting is required to ensure a canonical representation
which can also be reproduced from the UTxO set later in the fanout.}.

\item \textcolor{red}{All committed value captured and no value is extracted}
$\valHead' = \mathsf{ST} \cup (\bigcup_{i=1}^{n} \valCommit{i})$.
\item All committed value captured and no value is extracted
$\valHead' = \valHead \cup (\bigcup_{i=1}^{n} \valCommit{i})$.
\item Every participant had the chance to commit, by checking all tokens are
present in output\footnote{This is sufficient as a Head participant would
check off-chain whether a Head is initialized correctly with the right
Expand Down Expand Up @@ -320,12 +322,14 @@ \subsection{Close Transaction}\label{sec:close-tx}
$\redeemerHead = (\mathsf{close}, \xi)$, where $\xi$ is a multi-signature of
the to be closed snapshot, and checks:
\begin{menumerate}
\item \textcolor{red}{State is advanced from $\datumHead \sim \stOpen$ to $\datumHead' \sim \stClosed$, parameters $\cid,\hydraKeysAgg,\nop,\cPer$ stay unchanged and the new state is governed again by $\nuHead$:}
\item State is advanced from $\datumHead \sim \stOpen$ to
$\datumHead' \sim \stClosed$, parameters $\cid,\hydraKeysAgg,\nop,\cPer$
stay unchanged and the new state is governed again by $\nuHead$:
\[
(\stOpen,\cid,\hydraKeysAgg,\nop,\cPer,\eta) \xrightarrow[\xi]{\stClose} (\stClosed,\cid,\hydraKeysAgg,\nop,\cPer,\eta_0,\eta',\contesters,\Tfinal)
\]
\item Records the initial snapshot state $\eta_0 = \eta$. \\
This is makes off-chain signatures rollback and replay resistant,
This makes off-chain signatures rollback and replay resistant,
see~\ref{sec:rollbacks} for details.
\item New snapshot state is the initial $\eta_{0}$
or correctly signed by all participants in $\xi$. \\
Expand All @@ -346,7 +350,7 @@ \subsection{Close Transaction}\label{sec:close-tx}
used to delegate head closing.

\item Correct contestation deadline is set $\Tfinal = \txValidityMax + T$.
\item Tranasction validity range is bounded by
\item Transaction validity range is bounded by
$\txValidityMax - \txValidityMin \leq T$. \\
This ensures the contestation deadline $\Tfinal$ is at most $2*T$ in the future.
\item Value in the head is preserved $\valHead' = \valHead$.
Expand Down Expand Up @@ -377,9 +381,9 @@ \subsection{Contest Transaction}\label{sec:contest-tx}
$\redeemerHead = (\mathsf{contest}, \xi)$, where $\xi$ is a multi-signature of
the contest snapshot, and checks:
\begin{menumerate}
\item \textcolor{red}{State stays $stClosed$ in both $\datumHead$ and
$\datumHead'$, parameters $\cid,\hydraKeysAgg,\nop,\cPer, \eta_{0}$
stay unchanged and the new state is governed again by $\nuHead$:}
\item State stays $\stClosed$ in both $\datumHead$ and $\datumHead'$,
parameters $\cid,\hydraKeysAgg,\nop,\cPer, \textcolor{red}{\eta_{0}}$ stay
unchanged and the new state is governed again by $\nuHead$:
\[
(\stClosed,\cid,\hydraKeysAgg,\nop,\cPer,\eta_0,\eta,\contesters,\Tfinal) \xrightarrow[\xi]{\stContest} (\stClosed,\cid,\hydraKeysAgg,\nop,\cPer,\eta_0,\eta',\contesters',\Tfinal')
\]
Expand Down

0 comments on commit 93055fa

Please sign in to comment.