Fix truncation in PRF^sn and PRF^pk. closes #686

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-02-02 23:40:44 +00:00
parent ce5cff9eeb
commit d4b5d5eed9
2 changed files with 2 additions and 5 deletions

Binary file not shown.

View File

@ -190,9 +190,6 @@ a few differently-sized fields.}
$\Leading{k}(x)$, where $k$ is an integer and $x$ is a bit sequence, returns
the leading (initial) $k$ bits of its input.
$\Trailing{k}(x)$, where $k$ is an integer and $x$ is a bit sequence, returns
the trailing (final) $k$ bits of its input.
\subsection{Cryptographic Functions}
$\CRH$ is a collision-resistant hash function. In \Zcash, the $\SHAName$ function
@ -226,7 +223,7 @@ independent.
\bitbox{242}{256 bit $\SpendAuthorityPrivate$} &
\bitbox{14}{0} &
\bitbox{14}{1} &
\bitbox{242}{$\Trailing{254}(\CoinAddressRand)$} &
\bitbox{242}{$\Leading{254}(\CoinAddressRand)$} &
\end{bytefield}
\end{lrbox}
@ -237,7 +234,7 @@ independent.
\bitbox{14}{1} &
\bitbox{14}{0} &
\bitbox{14}{$i$} &
\bitbox{228}{$\Trailing{253}(\hSig)$}
\bitbox{228}{$\Leading{253}(\hSig)$}
\end{bytefield}
\end{lrbox}