| 211 | } |
| 212 | |
| 213 | bool CKey::Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck=false) { |
| 214 | if (!ec_privkey_import_der(secp256k1_context_sign, (unsigned char*)begin(), &privkey[0], privkey.size())) |
| 215 | return false; |
| 216 | fCompressed = vchPubKey.IsCompressed(); |
| 217 | fValid = true; |
| 218 | |
| 219 | if (fSkipCheck) |
| 220 | return true; |
| 221 | |
| 222 | return VerifyPubKey(vchPubKey); |
| 223 | } |
| 224 | |
| 225 | bool CKey::Derive(CKey& keyChild, ChainCode &ccChild, unsigned int nChild, const ChainCode& cc) const { |
| 226 | assert(IsValid()); |
no test coverage detected