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

Method importKey

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

Imports the (encrypted) key stored in the file @a _file and copies it to the managed directory.

Source from the content-addressed store, hash-verified

75 bytesSec secret(Address const& _address, std::function<std::string()> const& _pass) const;
76 /// Imports the (encrypted) key stored in the file @a _file and copies it to the managed directory.
77 h128 importKey(std::string const& _file) { auto ret = readKey(_file, false); if (ret) save(); return ret; }
78 /// Imports the (encrypted) key contained in the json formatted @a _content and stores it in
79 /// the managed directory.
80 h128 importKeyContent(std::string const& _content) { auto ret = readKeyContent(_content, std::string()); if (ret) save(); return ret; }

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64