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

Method importSecret

src/cpp-ethereum/libdevcrypto/SecretStore.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144h128 SecretStore::importSecret(bytesSec const& _s, string const& _pass)
145{
146 h128 r = h128::random();
147 EncryptedKey key{encrypt(_s.ref(), _pass), toUUID(r), KeyPair(Secret(_s)).address()};
148 m_cached[r] = _s;
149 m_keys[r] = move(key);
150 save();
151 return r;
152}
153
154h128 SecretStore::importSecret(bytesConstRef _s, string const& _pass)
155{

Callers 3

importMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
executeMethod · 0.80

Calls 3

KeyPairClass · 0.70
refMethod · 0.45
addressMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64