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

Method IsSingleType

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

Source from the content-addressed store, hash-verified

1199public:
1200 PKDescriptor(std::unique_ptr<PubkeyProvider> prov, bool xonly = false) : DescriptorImpl(Vector(std::move(prov)), "pk"), m_xonly(xonly) {}
1201 bool IsSingleType() const final { return true; }
1202
1203 std::optional<int64_t> ScriptSize() const override {
1204 return 1 + (m_xonly ? 32 : m_pubkey_args[0]->GetSize()) + 1;

Callers 3

DoCheckFunction · 0.45
TestDescriptorFunction · 0.45
ImportDescriptorsMethod · 0.45

Calls

no outgoing calls

Tested by 3

DoCheckFunction · 0.36
TestDescriptorFunction · 0.36
ImportDescriptorsMethod · 0.36