MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / EncodeExtKey

Function EncodeExtKey

src/key_io.cpp:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198std::string EncodeExtKey(const CExtKey& key)
199{
200 std::vector<unsigned char> data = Params().Base58Prefix(CChainParams::EXT_SECRET_KEY);
201 size_t size = data.size();
202 data.resize(size + BIP32_EXTKEY_SIZE);
203 key.Encode(data.data() + size);
204 std::string ret = EncodeBase58Check(data);
205 memory_cleanse(data.data(), data.size());
206 return ret;
207}
208
209std::string EncodeDestination(const CTxDestination& dest)
210{

Callers 3

dumpwalletFunction · 0.85
ToPrivateStringMethod · 0.85
RunTestFunction · 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 1

RunTestFunction · 0.68