mirror of https://github.com/zcash/zips.git
Memo field fixes.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
906975de12
commit
3d56cf291a
Binary file not shown.
|
@ -721,10 +721,11 @@ and produces `z' as the Base58Check leading character.}
|
|||
Transmitted coins are stored on the blockchain in encrypted form, together with
|
||||
a \coinCommitment $\cm$.
|
||||
|
||||
A \coinsCiphertext is an encryption of a \coinPlaintext to a
|
||||
\transmitPublicAlgorithm key $\TransmitPublic$.
|
||||
The \coinPlaintexts associated with a \PourDescription are encrypted to the
|
||||
respective \transmitPublicAlgorithm keys $\TransmitPublicNew{1..\NNew}$, and the
|
||||
result forms a \coinsCiphertext.
|
||||
|
||||
A \coinPlaintext consists of $(\Value, \CoinAddressRand, \CoinCommitRand, \Memo)$,
|
||||
Each \coinPlaintext consists of $(\Value, \CoinAddressRand, \CoinCommitRand, \Memo)$,
|
||||
where:
|
||||
|
||||
\begin{itemize}
|
||||
|
@ -752,11 +753,12 @@ does not use it.
|
|||
The raw encoding of a \coinPlaintext consists of, in order:
|
||||
|
||||
\begin{equation*}
|
||||
\begin{bytefield}[bitwidth=0.05em]{712}
|
||||
\bitbox{64}{$\TransmitPlaintextVersionByte$} &
|
||||
\bitbox{120}{$\Value$ (8 bytes)} &
|
||||
\begin{bytefield}[bitwidth=0.035em]{1224}
|
||||
\bitbox{80}{$\TransmitPlaintextVersionByte$} &
|
||||
\bitbox{144}{$\Value$ (8 bytes)} &
|
||||
\bitbox{256}{$\CoinAddressRand$ (32 bytes)} &
|
||||
\bitbox{384}{$\CoinCommitRand$ (48 bytes)} &
|
||||
\bitbox{512}{$\Memo$ (64 bytes)}
|
||||
\end{bytefield}
|
||||
\end{equation*}
|
||||
|
||||
|
@ -766,6 +768,7 @@ encoding of a \coinPlaintext.
|
|||
\item 8 bytes specifying a big-endian encoding of $\Value$.
|
||||
\item 32 bytes specifying $\CoinAddressRand$.
|
||||
\item 48 bytes specifying $\CoinCommitRand$.
|
||||
\item 64 bytes specifying $\Memo$.
|
||||
\end{itemize}
|
||||
|
||||
\section{Pours (within a transaction on the blockchain)}
|
||||
|
|
Loading…
Reference in New Issue