mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Fix wallet encryption with compressed pubkeys
This commit is contained in:
parent
26d9e2c19d
commit
cd5ee3bbb4
@ -192,7 +192,7 @@ bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn)
|
|||||||
BOOST_FOREACH(KeyMap::value_type& mKey, mapKeys)
|
BOOST_FOREACH(KeyMap::value_type& mKey, mapKeys)
|
||||||
{
|
{
|
||||||
CKey key;
|
CKey key;
|
||||||
if (!key.SetSecret(mKey.second.first, false))
|
if (!key.SetSecret(mKey.second.first, mKey.second.second))
|
||||||
return false;
|
return false;
|
||||||
const std::vector<unsigned char> vchPubKey = key.GetPubKey();
|
const std::vector<unsigned char> vchPubKey = key.GetPubKey();
|
||||||
std::vector<unsigned char> vchCryptedSecret;
|
std::vector<unsigned char> vchCryptedSecret;
|
||||||
|
Loading…
Reference in New Issue
Block a user