Produces the textual (policy‐language) representation of this Miniscript.
Synopses
Declared in <script/miniscript.h>
Produces the textual (policy‐language) representation of this Miniscript.
template<typename CTx>
std::optional<std::string>
ToString(CTx const& ctx) const;
Produces the textual (policy‐language) representation of this Miniscript.
template<typename CTx>
std::optional<std::string>
ToString(
CTx const& ctx,
bool& has_priv_key) const;
Return Value
The string form, or std::nullopt if a key cannot be represented.
Parameters
Name |
Description |
ctx |
Context providing key‐to‐string conversions. |
has_priv_key |
Set to true if any key resolved to a private key. |
Created with MrDocs