Move serialized Zcash address length constants into zcash/Address.hpp

This commit is contained in:
Jack Grigg
2016-08-16 22:55:06 +12:00
parent 6ae516f10b
commit 3a15b1637e
3 changed files with 10 additions and 11 deletions

View File

@@ -145,7 +145,7 @@ static bool DecryptSpendingKey(const CKeyingMaterial& vMasterKey,
if(!DecryptSecret(vMasterKey, vchCryptedSecret, address.GetHash(), vchSecret))
return false;
if (vchSecret.size() != 32)
if (vchSecret.size() != libzcash::SerializedSpendingKeySize)
return false;
// TODO does this undo the benefits of using CKeyingMaterial?