MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ExtractPubKey

Function ExtractPubKey

src/wallet/scriptpubkeyman.cpp:352–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352static bool ExtractPubKey(const CScript &dest, CPubKey& pubKeyOut)
353{
354 std::vector<std::vector<unsigned char>> solutions;
355 return Solver(dest, solutions) == TxoutType::PUBKEY &&
356 (pubKeyOut = CPubKey(solutions[0])).IsFullyValid();
357}
358
359bool LegacyDataSPKM::AddWatchOnlyInMem(const CScript &dest)
360{

Callers 1

AddWatchOnlyInMemMethod · 0.85

Calls 3

SolverFunction · 0.85
IsFullyValidMethod · 0.80
CPubKeyClass · 0.70

Tested by

no test coverage detected