Parse a signature-hash type from its textual name.
Declared in <core_io.h>
[[nodiscard]]
util::Result<int>
SighashFromStr(std::string const& sighash);
The numeric signature-hash type, or an error if the name is unrecognized.
The return value should not be discarded.
| Name | Description |
|---|---|
| sighash | Name of the signature-hash type (for example "ALL" or "NONE|ANYONECANPAY"). |