MCPcopy Create free account
hub / github.com/LUX-Core/lux / importExisting

Method importExisting

src/cpp-ethereum/libethcore/KeyManager.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void KeyManager::importExisting(h128 const& _uuid, string const& _info, string const& _pass, string const& _passwordHint)
266{
267 bytesSec key = m_store.secret(_uuid, [&](){ return _pass; });
268 if (key.empty())
269 return;
270 Address a = KeyPair(Secret(key)).address();
271 auto passHash = hashPassword(_pass);
272 if (!m_cachedPasswords.count(passHash))
273 cachePassword(_pass);
274 importExisting(_uuid, _info, a, passHash, _passwordHint);
275}
276
277void KeyManager::importExisting(h128 const& _uuid, string const& _accountName, Address const& _address, h256 const& _passHash, string const& _passwordHint)
278{

Callers 2

executeMethod · 0.45
executeMethod · 0.45

Calls 5

KeyPairClass · 0.50
secretMethod · 0.45
emptyMethod · 0.45
addressMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected