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

Function ValidSize

include/blocksci/scripts/bitcoin_pubkey.hpp:71–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 bool static ValidSize(const std::vector<unsigned char> &vch) {
72 return vch.size() > 0 && GetLen(vch[0]) == vch.size();
73 }
74
75 //! Construct an invalid public key.
76 CPubKey() : vch{{0}}

Callers 2

MatchPayToPubkeyFunction · 0.85
MatchMultisigFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected