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

Method ToString

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

Source from the content-addressed store, hash-verified

720 size_t GetSize() const override { return 32; }
721
722 std::string ToString(StringType type=StringType::PUBLIC) const override
723 {
724 std::string out = "musig(";
725 for (size_t i = 0; i < m_participants.size(); ++i) {
726 const auto& pubkey = m_participants.at(i);
727 if (i) out += ",";
728 out += pubkey->ToString(type);
729 }
730 out += ")";
731 out += FormatHDKeypath(m_path);
732 if (IsRangedDerivation()) {
733 out += "/*";
734 }
735 return out;
736 }
737 bool ToPrivateString(const SigningProvider& arg, std::string& out) const override
738 {
739 bool any_privkeys = false;

Callers

nothing calls this directly

Calls 4

FormatHDKeypathFunction · 0.85
sizeMethod · 0.45
atMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected