mirror of https://github.com/zcash/zips.git
Adjust formatting of raw encoding layouts.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
5456ddf2a6
commit
131642e53b
Binary file not shown.
|
@ -595,10 +595,10 @@ of two points sharing an $x$ coordinate on an elliptic curve.
|
||||||
The raw encoding of a confidential address consists of:
|
The raw encoding of a confidential address consists of:
|
||||||
|
|
||||||
\begin{equation*}
|
\begin{equation*}
|
||||||
\begin{bytefield}[bitwidth=0.07em]{520}
|
\begin{bytefield}[bitwidth=0.07em]{528}
|
||||||
\bitbox{80}{$\PublicAddressLeadByte$} &
|
\bitbox{48}{$\PublicAddressLeadByte$} &
|
||||||
\bitbox{256}{$\SpendAuthorityPublic$ (32 bytes)} &
|
\bitbox{256}{$\SpendAuthorityPublic$ (32 bytes)} &
|
||||||
\bitbox{256}{A 33-byte encoding of $\TransmitPublic$}
|
\bitbox{264}{A 33-byte encoding of $\TransmitPublic$}
|
||||||
\end{bytefield}
|
\end{bytefield}
|
||||||
\end{equation*}
|
\end{equation*}
|
||||||
|
|
||||||
|
@ -636,7 +636,7 @@ The raw encoding of a confidential address secret consists of, in order:
|
||||||
|
|
||||||
\begin{equation*}
|
\begin{equation*}
|
||||||
\begin{bytefield}[bitwidth=0.07em]{520}
|
\begin{bytefield}[bitwidth=0.07em]{520}
|
||||||
\bitbox{80}{$\PrivateAddressLeadByte$} &
|
\bitbox{48}{$\PrivateAddressLeadByte$} &
|
||||||
\bitbox{256}{$\SpendAuthorityPrivate$ (32 bytes)} &
|
\bitbox{256}{$\SpendAuthorityPrivate$ (32 bytes)} &
|
||||||
\bitbox{256}{$\TransmitPrivate$ (32 bytes)}
|
\bitbox{256}{$\TransmitPrivate$ (32 bytes)}
|
||||||
\end{bytefield}
|
\end{bytefield}
|
||||||
|
@ -668,7 +668,7 @@ where:
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item $\Value$ is a 64-bit unsigned integer representing the value of the
|
\item $\Value$ is a 64-bit unsigned integer representing the value of the
|
||||||
\coin in \zatoshi (1 \ZEC = $10^8$ \zatoshi).
|
\coin in \zatoshi (1 \ZEC = $10^8$ \zatoshi).
|
||||||
\item $\CoinAddressRand$ is a 32-byte $\PRFsn{\SpendAuthorityPrivate}$ seed.
|
\item $\CoinAddressRand$ is a 32-byte $\PRFsn{\SpendAuthorityPrivate}$ preimage.
|
||||||
\item $\CoinCommitRand$ is a 48-byte \COMMtrapdoor.
|
\item $\CoinCommitRand$ is a 48-byte \COMMtrapdoor.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
@ -680,10 +680,10 @@ paper is not encoded because it is fixed to zero.
|
||||||
The raw encoding of a \transmittedPlaintext consists of, in order:
|
The raw encoding of a \transmittedPlaintext consists of, in order:
|
||||||
|
|
||||||
\begin{equation*}
|
\begin{equation*}
|
||||||
\begin{bytefield}[bitwidth=0.05em]{200}
|
\begin{bytefield}[bitwidth=0.05em]{712}
|
||||||
\bitbox{80}{$\TransmitPlaintextVersionByte$} &
|
\bitbox{64}{$\TransmitPlaintextVersionByte$} &
|
||||||
\bitbox{230}{$\Value$ (8 bytes, big endian)} &
|
\bitbox{120}{$\Value$ (8 bytes)} &
|
||||||
\bitbox{230}{$\CoinAddressRand$ (32 bytes)} &
|
\bitbox{256}{$\CoinAddressRand$ (32 bytes)} &
|
||||||
\bitbox{384}{$\CoinCommitRand$ (48 bytes)} &
|
\bitbox{384}{$\CoinCommitRand$ (48 bytes)} &
|
||||||
\end{bytefield}
|
\end{bytefield}
|
||||||
\end{equation*}
|
\end{equation*}
|
||||||
|
|
Loading…
Reference in New Issue