Move serialized Zcash address length constants into zcash/Address.hpp
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user