[#SighashFromStr] = SighashFromStr :mrdocs: Parse a signature‐hash type from its textual name. == Synopsis Declared in `<core_io.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:util/Result.adoc[util::Result<int>] SighashFromStr(std::string const& sighash); ---- == Return Value The numeric signature‐hash type, or an error if the name is unrecognized. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *sighash* | Name of the signature‐hash type (for example "ALL" or "NONE|ANYONECANPAY"). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#