if (pkey == NULL)
throw key_error("CKey::CKey(const CKey&) : EC_KEY_dup failed");
fSet = b.fSet;
+ fCompressedPubKey = b.fCompressedPubKey;
}
CKey& CKey::operator=(const CKey& b)
if (!EC_KEY_copy(pkey, b.pkey))
throw key_error("CKey::operator=(const CKey&) : EC_KEY_copy failed");
fSet = b.fSet;
+ fCompressedPubKey = b.fCompressedPubKey;
return (*this);
}
int nBitsS = BN_num_bits(sig->s);
if (nBitsR <= 256 && nBitsS <= 256)
{
- int nRecId = -1;
- for (int i=0; i<4; i++)
+ int8_t nRecId = -1;
+ for (int8_t i=0; i<4; i++)
{
CKey keyRec;
keyRec.fSet = true;