| 324 | } |
| 325 | |
| 326 | void KeyManagerRunner::remove_key(td::Bits256 public_key) { |
| 327 | for (auto it = private_keys_.begin(); it != private_keys_.end(); it++) { |
| 328 | if ((*it)->public_key == public_key) { |
| 329 | kv_->erase(PSTRING() << "key_" << (*it)->public_key.to_hex()); |
| 330 | private_keys_.erase(it); |
| 331 | return; |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | void KeyManagerRunner::add_static_private_key() { |
| 337 | auto P = std::make_unique<PrivateKey>(); |
nothing calls this directly
no outgoing calls
no test coverage detected