MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetKeyID

Method GetKeyID

src/base58.cpp:265–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const
266{
267 if (!IsValid() || vchVersion != Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS))
268 return false;
269 uint160 id;
270 memcpy(&id, &vchData[0], 20);
271 keyID = CKeyID(id);
272 return true;
273}
274
275bool CBitcoinAddress::IsScript() const
276{

Callers 7

verifymessageFunction · 0.80
signmessageFunction · 0.80
dumpprivkeyFunction · 0.80

Calls 3

memcpyFunction · 0.85
ParamsClass · 0.70
CKeyIDClass · 0.70

Tested by

no test coverage detected