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

Method Clone

src/script/descriptor.cpp:801–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799 }
800
801 std::unique_ptr<PubkeyProvider> Clone() const override
802 {
803 std::vector<std::unique_ptr<PubkeyProvider>> providers;
804 providers.reserve(m_participants.size());
805 for (const std::unique_ptr<PubkeyProvider>& p : m_participants) {
806 providers.emplace_back(p->Clone());
807 }
808 return std::make_unique<MuSigPubkeyProvider>(m_expr_index, std::move(providers), m_path, m_derive);
809 }
810 bool IsBIP32() const override
811 {
812 // musig() can only be a BIP 32 key if all participants are bip32 too

Callers

nothing calls this directly

Calls 4

reserveMethod · 0.45
sizeMethod · 0.45
emplace_backMethod · 0.45
CloneMethod · 0.45

Tested by

no test coverage detected