MCPcopy Create free account
hub / github.com/citp/BlockSci / getPubkey

Method getPubkey

src/scripts/pubkey_base_script.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace blocksci {
17
18 ranges::optional<CPubKey> PubkeyAddressBase::getPubkey() const {
19 if (getData()->hasPubkey) {
20 auto &rawPubkey = getData()->pubkey;
21 return CPubKey{rawPubkey.begin(), rawPubkey.end()};
22 } else {
23 return ranges::nullopt;
24 }
25 }
26
27 uint160 PubkeyAddressBase::getPubkeyHash() const {
28 auto pubkey = getPubkey();

Callers 1

operator()Method · 0.80

Calls 3

getDataFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected