Skip to content

Commit

Permalink
Remove duplicate check for required scripts in UTXOW
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatisRT authored and polinavino committed Jul 28, 2021
1 parent 93c1d76 commit ba20b8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alonzo/formal-spec/utxo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -874,11 +874,10 @@ \subsection{Witnessing}
\hldiff{\var{inputHashes}\leteq \{ h \mid (\_ \mapsto (a, \_, h)) \in \txins{txb} \restrictdom \var{utxo}, \fun{isTwoPhaseScriptAddress}~{tx}~{a}\}} \\~\\
\hldiff{\forall \var{s} \in \range (\fun{txscripts}~{txw}) \cap \ScriptPhOne,
\fun{validateScript}~\var{s}~\var{tx}}\\~\\
\hldiff{\{ s \mid (\_, s) \in \fun{scriptsNeeded}~\var{utxo}~\var{tx}\} = \dom (\fun{txscripts}~{txw})} \\~\\
\hldiff{\{ h \mid (\_, h) \in \fun{scriptsNeeded}~\var{utxo}~\var{tx}\} = \dom (\fun{txscripts}~{txw})} \\~\\
\hldiff{\var{inputHashes} \subseteq \dom (\fun{txdats}~{txw})} \\~\\
\hldiff{\dom (\fun{txdats}~{txw}) \subseteq \var{inputHashes} \cup \{h~\mid~ (\wcard, \wcard, h)\in\fun{txouts}\}}
\\~\\
\hldiff{\forall (\_, h) \in \fun{scriptsNeeded}~\var{utxo}~\var{tx},~h \in \dom (\fun{txscripts}~(\fun{txwits}~tx))} \\
\hldiff{\ \dom (\fun{txrdmrs}~tx) ~=~\{~\fun{rdptr}~txb~sp~
\vert~ (sp,h)~\in~\fun{scriptsNeeded}~\var{utxo}~\var{tx}, } \\
\hldiff{h\mapsto s~\in~\fun{txscripts}~{txw}, s~\in~\ScriptPhTwo \}}
Expand Down

0 comments on commit ba20b8e

Please sign in to comment.