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

Method ToNormalizedString

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

Source from the content-addressed store, hash-verified

755 return any_privkeys;
756 }
757 bool ToNormalizedString(const SigningProvider& arg, std::string& out, const DescriptorCache* cache = nullptr) const override
758 {
759 out = "musig(";
760 for (size_t i = 0; i < m_participants.size(); ++i) {
761 const auto& pubkey = m_participants.at(i);
762 if (i) out += ",";
763 std::string tmp;
764 if (!pubkey->ToNormalizedString(arg, tmp, cache)) {
765 return false;
766 }
767 out += tmp;
768 }
769 out += ")";
770 out += FormatHDKeypath(m_path);
771 if (IsRangedDerivation()) {
772 out += "/*";
773 }
774 return true;
775 }
776
777 void GetPrivKey(int pos, const SigningProvider& arg, FlatSigningProvider& out) const override
778 {

Callers

nothing calls this directly

Calls 4

FormatHDKeypathFunction · 0.85
sizeMethod · 0.45
atMethod · 0.45
ToNormalizedStringMethod · 0.45

Tested by

no test coverage detected