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

Function GetAffectedKeys

src/wallet/scriptpubkeyman.cpp:1505–1515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1503}
1504
1505std::vector<CKeyID> GetAffectedKeys(const CScript& spk, const SigningProvider& provider)
1506{
1507 std::vector<CScript> dummy;
1508 FlatSigningProvider out;
1509 InferDescriptor(spk, provider)->Expand(0, DUMMY_SIGNING_PROVIDER, dummy, out);
1510 std::vector<CKeyID> ret;
1511 for (const auto& entry : out.pubkeys) {
1512 ret.push_back(entry.first);
1513 }
1514 return ret;
1515}
1516
1517void LegacyScriptPubKeyMan::MarkPreSplitKeys()
1518{

Callers 3

MarkUnusedAddressesMethod · 0.85
IsSpentKeyMethod · 0.85
GetKeyBirthTimesMethod · 0.85

Calls 3

InferDescriptorFunction · 0.85
ExpandMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected