MCPcopy Create free account
hub / github.com/ElementsProject/elements / EncodeExtKey

Function EncodeExtKey

src/key_io.cpp:448–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448std::string EncodeExtKey(const CExtKey& key)
449{
450 std::vector<unsigned char> data = Params().Base58Prefix(CChainParams::EXT_SECRET_KEY);
451 size_t size = data.size();
452 data.resize(size + BIP32_EXTKEY_SIZE);
453 key.Encode(data.data() + size);
454 std::string ret = EncodeBase58Check(data);
455 memory_cleanse(data.data(), data.size());
456 return ret;
457}
458
459std::string EncodeDestination(const CTxDestination& dest)
460{

Callers 4

dumpwalletFunction · 0.85
ToPrivateStringMethod · 0.85
RunTestFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 7

EncodeBase58CheckFunction · 0.85
memory_cleanseFunction · 0.85
ParamsClass · 0.70
sizeMethod · 0.45
resizeMethod · 0.45
EncodeMethod · 0.45
dataMethod · 0.45

Tested by 2

RunTestFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68