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

Method GetCKeyID

src/entities/keystore.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132int64_t CKeyCombi::GetBirthDay() const { return nCreationTime; }
133
134CKeyID CKeyCombi::GetCKeyID() const {
135 if (mMainCkey.IsValid())
136 return mMainCkey.GetPubKey().GetKeyId();
137 else {
138 CKeyID keyId;
139 return keyId;
140 }
141}
142void CKeyCombi::SetMainKey(CKey& mainKey) { mMainCkey = mainKey; }
143void CKeyCombi::SetMinerKey(CKey& minerKey) { mMinerCkey = minerKey; }
144bool CKeyCombi::HaveMinerKey() const { return mMinerCkey.IsValid(); }

Callers 2

AddKeyMethod · 0.80
ReadKeyValueFunction · 0.80

Calls 3

IsValidMethod · 0.45
GetKeyIdMethod · 0.45
GetPubKeyMethod · 0.45

Tested by

no test coverage detected