| 211 | } |
| 212 | |
| 213 | h128 KeyManager::import(Secret const& _s, string const& _accountName, string const& _pass, string const& _passwordHint) |
| 214 | { |
| 215 | Address addr = KeyPair(_s).address(); |
| 216 | auto passHash = hashPassword(_pass); |
| 217 | cachePassword(_pass); |
| 218 | m_passwordHint[passHash] = _passwordHint; |
| 219 | auto uuid = m_store.importSecret(_s.asBytesSec(), _pass); |
| 220 | m_keyInfo[addr] = KeyInfo{passHash, _accountName, ""}; |
| 221 | m_addrLookup[addr] = uuid; |
| 222 | m_uuidLookup[uuid] = addr; |
| 223 | write(m_keysFile); |
| 224 | return uuid; |
| 225 | } |
| 226 | |
| 227 | Secret KeyManager::brain(string const& _seed) |
| 228 | { |
no test coverage detected