Add some more human-readable language to the doc comment on merkle_crh_sapling

This commit is contained in:
Deirdre Connolly 2020-10-05 21:28:49 -04:00 committed by Deirdre Connolly
parent bb0fe9955b
commit 5e18e72522
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ const MERKLE_DEPTH: usize = 32;
/// MerkleCRH^Sapling Hash Function
///
/// Used to hash incremental Merkle tree hash values for Sapling.
///
/// MerkleCRH^Sapling(layer, left, right) := PedersenHash(“Zcash_PH”, l || left || right)
/// where l = I2LEBSP_6(MerkleDepth^Sapling 1 layer) and
/// left, right, and the output are all technically 255 bits (l_MerkleSapling), not 256.