[#SighashFromStr]
= SighashFromStr
:mrdocs:

Parse a signature&hyphen;hash type from its textual name&period;

== Synopsis

Declared in `&lt;core&lowbar;io&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;int&gt;]
SighashFromStr(std::string const& sighash);
----

== Return Value

The numeric signature&hyphen;hash type, or an error if the name is unrecognized&period;

[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&hyphen;hash type (for example &quot;ALL&quot; or &quot;NONE&verbar;ANYONECANPAY&quot;)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
