MCPcopy Create free account
hub / github.com/ElementsProject/elements / ExtractPubKey

Function ExtractPubKey

src/wallet/scriptpubkeyman.cpp:879–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879static bool ExtractPubKey(const CScript &dest, CPubKey& pubKeyOut)
880{
881 std::vector<std::vector<unsigned char>> solutions;
882 return Solver(dest, solutions) == TxoutType::PUBKEY &&
883 (pubKeyOut = CPubKey(solutions[0])).IsFullyValid();
884}
885
886bool LegacyScriptPubKeyMan::RemoveWatchOnly(const CScript &dest)
887{

Callers 2

RemoveWatchOnlyMethod · 0.85
AddWatchOnlyInMemMethod · 0.85

Calls 3

SolverFunction · 0.85
IsFullyValidMethod · 0.80
CPubKeyClass · 0.50

Tested by

no test coverage detected