MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ToString

Method ToString

src/entities/keystore.cpp:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105string CKeyCombi::ToString() const {
106 string str("");
107 if (mMainCkey.IsValid()) {
108 str += strprintf(" MainPKey:%s MainKey:%s", mMainCkey.GetPubKey().ToString(), mMainCkey.ToString());
109 }
110 if (mMinerCkey.IsValid()) {
111 str += strprintf(" MinerPKey:%s MinerKey:%s", mMinerCkey.GetPubKey().ToString(), mMinerCkey.ToString());
112 }
113 str += strprintf(" CreationTime:%d", nCreationTime);
114 return str;
115}
116
117bool CKeyCombi::GetCKey(CKey& keyOut, bool fMiner) const {
118 keyOut = fMiner ? mMinerCkey : mMainCkey;

Callers 1

ToJsonObjMethod · 0.45

Calls 2

IsValidMethod · 0.45
GetPubKeyMethod · 0.45

Tested by

no test coverage detected