ZIP 32: Fix an error in #588; "ZcashIP32_Sprout" was a personalization for BLAKE2b-512, not BLAKE2b-256.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2022-01-28 18:33:31 +00:00
parent 2a4ab049b9
commit 8e2215c577
2 changed files with 14 additions and 17 deletions

View File

@ -902,16 +902,16 @@ License: MIT</pre>
<section id="values-reserved-due-to-previous-specification-for-sprout"><h2><span class="section-heading">Values reserved due to previous specification for Sprout</span><span class="section-anchor"> <a rel="bookmark" href="#values-reserved-due-to-previous-specification-for-sprout"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h2>
<p>The following values were previously used in the specification of hierarchical derivation for Sprout, and therefore SHOULD NOT be used in future Zcash-related specifications:</p>
<ul>
<li>the BLAKE2b-256 personalizations
<ul>
<li>
<span class="math">\(\texttt{“ZcashIP32_Sprout”}\)</span>
, formerly specified for derivation of the master key of the Sprout tree;</li>
<li>
<span class="math">\(\texttt{“Zcash_Sprout_AFP”}\)</span>
, formerly specified for generation of Sprout address fingerprints;</li>
</ul>
</li>
<li>the
<span class="math">\(\mathsf{BLAKE2b}\text{-}\mathsf{512}\)</span>
personalization
<span class="math">\(\texttt{“ZcashIP32_Sprout”}\)</span>
, formerly specified for derivation of the master key of the Sprout tree;</li>
<li>the
<span class="math">\(\mathsf{BLAKE2b}\text{-}\mathsf{256}\)</span>
personalization
<span class="math">\(\texttt{“Zcash_Sprout_AFP”}\)</span>
, formerly specified for generation of Sprout address fingerprints;</li>
<li>the
<span class="math">\(\mathsf{PRF^{expand}}\)</span>
prefix

View File

@ -629,13 +629,10 @@ Values reserved due to previous specification for Sprout
The following values were previously used in the specification of hierarchical derivation
for Sprout, and therefore SHOULD NOT be used in future Zcash-related specifications:
* the BLAKE2b-256 personalizations
* :math:`\texttt{“ZcashIP32_Sprout”}`, formerly specified for derivation of the master
key of the Sprout tree;
* :math:`\texttt{“Zcash_Sprout_AFP”}`, formerly specified for generation of Sprout
address fingerprints;
* the :math:`\mathsf{BLAKE2b}\text{-}\mathsf{512}` personalization :math:`\texttt{“ZcashIP32_Sprout”}`,
formerly specified for derivation of the master key of the Sprout tree;
* the :math:`\mathsf{BLAKE2b}\text{-}\mathsf{256}` personalization :math:`\texttt{“Zcash_Sprout_AFP”}`,
formerly specified for generation of Sprout address fingerprints;
* the :math:`\mathsf{PRF^{expand}}` prefix :math:`\texttt{0x80}`, formerly specified for
Sprout child key derivation;
* the Bech32 Human-Readable Parts ``zxsprout`` and ``zxtestsprout``, formerly specified for