Browse Source

Fix raw encoding diagrams and descriptions.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
406.viewing-keys.0
Daira Hopwood 8 years ago
parent
commit
e57ce2056f
  1. BIN
      protocol/protocol.pdf
  2. 19
      protocol/protocol.tex

BIN
protocol/protocol.pdf

Binary file not shown.

19
protocol/protocol.tex

@ -939,8 +939,9 @@ The raw encoding of a confidential address consists of:
\begin{equation*}
\begin{bytefield}[bitwidth=0.07em]{520}
\bitbox{48}{\changed{$\PaymentAddressLeadByte$}} &
\bitbox{256}{$\AuthPublic$ (32 bytes)} &
\changed{
\bitbox{48}{$\PaymentAddressLeadByte$}
&}\bitbox{256}{$\AuthPublic$ (32 bytes)} &
\bitbox{256}{A \changed{32-byte} encoding of $\TransmitPublic$}
\end{bytefield}
\end{equation*}
@ -973,8 +974,9 @@ The raw encoding of a confidential address secret consists of, in order:
\begin{equation*}
\begin{bytefield}[bitwidth=0.07em]{520}
\bitbox{48}{\changed{$\SpendingKeyLeadByte$}} &
\bitbox{256}{$\AuthPrivate$ (32 bytes)} &
\changed{
\bitbox{48}{$\SpendingKeyLeadByte$}
&}\bitbox{256}{$\AuthPrivate$ (32 bytes)} &
\bitbox{256}{$\TransmitPrivate$ (32 bytes)}
\end{bytefield}
\end{equation*}
@ -1037,9 +1039,11 @@ does not use it.
The raw encoding of a \coinPlaintext consists of, in order:
\begin{equation*}
\begin{bytefield}[bitwidth=0.035em]{1224}
\bitbox{80}{\changed{$\TransmitPlaintextVersionByte$}} &
\bitbox{144}{$\Value$ (8 bytes)} &
\begin{bytefield}[bitwidth=0.03em]{1480}
\changed{
\bitbox{88}{$\TransmitPlaintextVersionByte$}&
\bitbox{256}{$\AuthPublic$ (32 bytes)}
&}\bitbox{168}{$\Value$ (8 bytes)} &
\bitbox{256}{$\CoinAddressRand$ (32 bytes)} &
\bitbox{384}{$\CoinCommitRand$ (48 bytes)} &
\changed{\bitbox{512}{$\Memo$ (64 bytes)}}
@ -1050,6 +1054,7 @@ The raw encoding of a \coinPlaintext consists of, in order:
\changed{
\item A byte $\TransmitPlaintextVersionByte$ indicating this version of the raw
encoding of a \coinPlaintext.
\item 32 bytes specifying the \authKeypair public key of the recipient.
}
\item 8 bytes specifying a big-endian encoding of $\Value$.
\item 32 bytes specifying $\CoinAddressRand$.

Loading…
Cancel
Save