mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-01 15:02:34 +02:00
descriptors: addr() and raw() should return false for ToPrivateString
They don't have any private data and they can't be nested so they should return false for ToPrivateString.
This commit is contained in:
parent
31764c3f87
commit
0b26e7cdf2
@ -612,7 +612,7 @@ public:
|
|||||||
return AddChecksum(ret);
|
return AddChecksum(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToPrivateString(const SigningProvider& arg, std::string& out) const final
|
bool ToPrivateString(const SigningProvider& arg, std::string& out) const override
|
||||||
{
|
{
|
||||||
bool ret = ToStringHelper(&arg, out, StringType::PRIVATE);
|
bool ret = ToStringHelper(&arg, out, StringType::PRIVATE);
|
||||||
out = AddChecksum(out);
|
out = AddChecksum(out);
|
||||||
@ -698,6 +698,7 @@ public:
|
|||||||
return OutputTypeFromDestination(m_destination);
|
return OutputTypeFromDestination(m_destination);
|
||||||
}
|
}
|
||||||
bool IsSingleType() const final { return true; }
|
bool IsSingleType() const final { return true; }
|
||||||
|
bool ToPrivateString(const SigningProvider& arg, std::string& out) const final { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** A parsed raw(H) descriptor. */
|
/** A parsed raw(H) descriptor. */
|
||||||
@ -718,6 +719,7 @@ public:
|
|||||||
return OutputTypeFromDestination(dest);
|
return OutputTypeFromDestination(dest);
|
||||||
}
|
}
|
||||||
bool IsSingleType() const final { return true; }
|
bool IsSingleType() const final { return true; }
|
||||||
|
bool ToPrivateString(const SigningProvider& arg, std::string& out) const final { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** A parsed pk(P) descriptor. */
|
/** A parsed pk(P) descriptor. */
|
||||||
|
Loading…
Reference in New Issue
Block a user