Adjust formatting of raw encoding layouts.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-01-29 00:42:16 +00:00
parent 5456ddf2a6
commit 131642e53b
2 changed files with 9 additions and 9 deletions

Binary file not shown.

View File

@ -595,10 +595,10 @@ of two points sharing an $x$ coordinate on an elliptic curve.
The raw encoding of a confidential address consists of:
\begin{equation*}
\begin{bytefield}[bitwidth=0.07em]{520}
\bitbox{80}{$\PublicAddressLeadByte$} &
\begin{bytefield}[bitwidth=0.07em]{528}
\bitbox{48}{$\PublicAddressLeadByte$} &
\bitbox{256}{$\SpendAuthorityPublic$ (32 bytes)} &
\bitbox{256}{A 33-byte encoding of $\TransmitPublic$}
\bitbox{264}{A 33-byte encoding of $\TransmitPublic$}
\end{bytefield}
\end{equation*}
@ -636,7 +636,7 @@ The raw encoding of a confidential address secret consists of, in order:
\begin{equation*}
\begin{bytefield}[bitwidth=0.07em]{520}
\bitbox{80}{$\PrivateAddressLeadByte$} &
\bitbox{48}{$\PrivateAddressLeadByte$} &
\bitbox{256}{$\SpendAuthorityPrivate$ (32 bytes)} &
\bitbox{256}{$\TransmitPrivate$ (32 bytes)}
\end{bytefield}
@ -668,7 +668,7 @@ where:
\begin{itemize}
\item $\Value$ is a 64-bit unsigned integer representing the value of the
\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.
\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:
\begin{equation*}
\begin{bytefield}[bitwidth=0.05em]{200}
\bitbox{80}{$\TransmitPlaintextVersionByte$} &
\bitbox{230}{$\Value$ (8 bytes, big endian)} &
\bitbox{230}{$\CoinAddressRand$ (32 bytes)} &
\begin{bytefield}[bitwidth=0.05em]{712}
\bitbox{64}{$\TransmitPlaintextVersionByte$} &
\bitbox{120}{$\Value$ (8 bytes)} &
\bitbox{256}{$\CoinAddressRand$ (32 bytes)} &
\bitbox{384}{$\CoinCommitRand$ (48 bytes)} &
\end{bytefield}
\end{equation*}