|
|
@ -288,7 +288,8 @@ void CBitcoinSecret::SetKey(const CKey& vchSecret)
|
|
|
|
CKey CBitcoinSecret::GetKey()
|
|
|
|
CKey CBitcoinSecret::GetKey()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CKey ret;
|
|
|
|
CKey ret;
|
|
|
|
ret.Set(&vchData[0], &vchData[32], vchData.size() > 32 && vchData[32] == 1);
|
|
|
|
assert(vchData.size() >= 32);
|
|
|
|
|
|
|
|
ret.Set(vchData.begin(), vchData.begin() + 32, vchData.size() > 32 && vchData[32] == 1);
|
|
|
|
return ret;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|