MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / MakeScripts

Method MakeScripts

src/script/descriptor.cpp:815–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813class ComboDescriptor final : public DescriptorImpl {
814protected:
815 std::vector<CScript> MakeScripts(const std::vector<CPubKey> &keys,
816 const CScript *,
817 FlatSigningProvider &out) const override {
818 std::vector<CScript> ret;
819 CKeyID id = keys[0].GetID();
820 out.pubkeys.emplace(id, keys[0]);
821 // P2PK
822 ret.emplace_back(GetScriptForRawPubKey(keys[0]));
823 // P2PKH
824 ret.emplace_back(GetScriptForDestination(PKHash(id)));
825 return ret;
826 }
827
828public:
829 ComboDescriptor(std::unique_ptr<PubkeyProvider> prov)

Callers

nothing calls this directly

Calls 6

GetScriptForRawPubKeyFunction · 0.85
GetScriptForDestinationFunction · 0.85
PKHashClass · 0.85
emplaceMethod · 0.80
GetIDMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected