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

Method SetKey

src/base58.cpp:425–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void CBitcoinSecret::SetKey(const CKey& vchSecret)
426{
427 assert(vchSecret.IsValid());
428 SetData(Params().Base58Prefix(CChainParams::SECRET_KEY), vchSecret.begin(), vchSecret.size());
429 if (vchSecret.IsCompressed())
430 vchData.push_back(1);
431}
432
433CKey CBitcoinSecret::GetKey()
434{

Callers 11

SignMethod · 0.45
DebugMethod · 0.45
SignMethod · 0.45
AppInit2Function · 0.45
dumpwalletFunction · 0.45
ManageStatusMethod · 0.45
StopMasterNodeMethod · 0.45
DseepMethod · 0.45
RegisterByPubKeyMethod · 0.45
RegisterMethod · 0.45
SignMethod · 0.45

Calls 6

ParamsClass · 0.70
IsValidMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
IsCompressedMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected