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

Method ExpandPrivate

src/script/descriptor.cpp:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654 }
655
656 void ExpandPrivate(int pos, const SigningProvider& provider, FlatSigningProvider& out) const final
657 {
658 for (const auto& p : m_pubkey_args) {
659 CKey key;
660 if (!p->GetPrivKey(pos, provider, key)) continue;
661 out.keys.emplace(key.GetPubKey().GetID(), key);
662 }
663 for (const auto& arg : m_subdescriptor_args) {
664 arg->ExpandPrivate(pos, provider, out);
665 }
666 }
667
668 std::optional<OutputType> GetOutputType() const override { return std::nullopt; }
669};

Callers 3

GetSigningProviderMethod · 0.80
ProcessImportDescriptorFunction · 0.80
backup.cppFile · 0.80

Calls 3

GetPrivKeyMethod · 0.45
GetIDMethod · 0.45
GetPubKeyMethod · 0.45

Tested by

no test coverage detected