| 423 | } |
| 424 | |
| 425 | void CBitcoinSecret::SetKey(const CKey& vchSecret) |
| 426 | { |
| 427 | assert(vchSecret.IsValid()); |
| 428 | SetData(Params().Base58Prefix(CChainParams::SECRET_KEY), vchSecret.begin(), vchSecret.size()); |
| 429 | if (vchSecret.IsCompressed()) |
| 430 | vchData.push_back(1); |
| 431 | } |
| 432 | |
| 433 | CKey CBitcoinSecret::GetKey() |
| 434 | { |
no test coverage detected