Parse a signature‐hash type from its textual name.

Synopsis

Declared in <core_io.h>

[[nodiscard]]
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 should not be discarded.

Parameters

Name

Description

sighash

Name of the signature‐hash type (for example "ALL" or "NONE|ANYONECANPAY").

Created with MrDocs