return false;
CKey key;
key.SetSecret(vchSecret);
- if (vchPubKey.size() == 33)
- key.SetCompressedPubKey();
+ key.SetCompressedPubKey(vchPubKey.IsCompressed());
if (key.GetPubKey() == vchPubKey)
break;
return false;
if (vchSecret.size() != 32)
return false;
keyOut.SetSecret(vchSecret);
- if (vchPubKey.size() == 33)
- keyOut.SetCompressedPubKey();
+ keyOut.SetCompressedPubKey(vchPubKey.IsCompressed());
return true;
}
}
return false;
CKey key;
key.SetSecret(vchSecret);
- if (vchPubKey.size() == 33)
- key.SetCompressedPubKey();
+ key.SetCompressedPubKey(vchPubKey.IsCompressed());
if (!CBasicKeyStore::AddKey(key))
return false;
}