Specify that sk_enc MUST be clamped in a viewing key encoding.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2017-02-23 20:24:57 +00:00
parent cfe4d4bd09
commit afc82502b5
1 changed files with 5 additions and 0 deletions

View File

@ -3615,6 +3615,11 @@ The raw encoding of a \viewingKey consists of:
of a Curve25519 private key \cite{Bern2006}.
\end{itemize}
$\TransmitPrivate$ \MUST be ``clamped'' using $\KAFormatPrivate$ as specified
in \crossref{keycomponents}. That is, a decoded \viewingKey{} \MUST be considered
invalid if $\TransmitPrivate \neq \KAFormatPrivate(\TransmitPrivate)$.
($\KAFormatPrivate$ is defined in \crossref{concretekeyagreement}.)
\pnote{
For addresses on the production network, the lead bytes and encoded length
cause the first two characters of the Base58Check encoding to be fixed as