Skip to content

Commit

Permalink
data arguments passed as list
Browse files Browse the repository at this point in the history
  • Loading branch information
polinavino committed Jan 6, 2020
1 parent 23b59e0 commit b9579db
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions shelley/chain-and-ledger/formal-spec/transactions.tex
Expand Up @@ -253,7 +253,7 @@ \section{Transactions}
\fun{getDataHash} & \TxOut \to \HashDat & \text{data script hash} \\
\fun{forged} & \Tx \to \Value & \text{value forged by tx}\\
\fun{txexunits} & \Tx \to \ExUnits & \text{portion of fee allocated for scripts}\\
\fun{hashPP} & \Tx \to \HashPP^? & \text{hash of the protocol params}\\
\fun{hashPP} & \Tx \to \HashPP^? & \text{hash of the Plutus params}\\
\fun{txvaltag} & \Tx \to \IsValidating & \text{transaction validation tag}\\
\fun{txvlds} & \Tx \to \Vlds & \text{validator scripts}\\
\fun{txdats} & \Tx \to (\HashDat \mapsto \Data) & \text{data scripts}\\
Expand Down Expand Up @@ -327,21 +327,20 @@ \section{Transactions}
\ExUnits \to (\IsValidating \times \ExUnits) \\
& \text{resource-restricted validation of a multi-sig script} \\~\\
& \fun{valPLCupTo} \in \CostMod \to\ScriptPlutus\to
(\Data \times \Data \times \Data \times
\ExUnits) \to (\IsValidating \times \ExUnits) \\
(\seqof{\Data} \times \ExUnits) \to (\IsValidating \times \ExUnits) \\
& \text{resource-restricted validation of a Plutus script}
\end{align*}
%
\emph{Notation}
%
\begin{align*}
\llbracket \var{script_v} \rrbracket_{\var{cm},\var{exunits}}(\var{dataval},~\var{rdmr},~\var{ptx})
&=& \fun{valPLCupTo} ~{cm}~\var{script_v}~(\var{dataval},~\var{rdmr},~\var{ptx},~
&=& \fun{valPLCupTo} ~{cm}~\var{script_v}~((\var{dataval};~\var{rdmr};~\var{ptx};\epsilon),~
\var{exunits})
\nextdef
\llbracket \var{script_v} \rrbracket_{\var{cm},\var{exunits}} \var{ptx}
&=& \begin{cases}
\fun{valPLCupTo} ~\var{cm}~\var{script_v} ~ \var{\Nothing}~\var{\Nothing}~\var{ptx}~
\fun{valPLCupTo} ~\var{cm}~\var{script_v} ~(\var{ptx};\epsilon)~
\var{exunits} ~& \text{if}~\var{script_v} \in \ScriptPlutus \\
\fun{valMSIGupTo} ~\var{cm}~\var{script_v} ~\var{ptx}~
\var{exunits} & \text{if}~\var{script_v} \in \ScriptMSig
Expand Down

0 comments on commit b9579db

Please sign in to comment.