MCPcopy Create free account
hub / github.com/ElementsProject/elements / SighashToStr

Function SighashToStr

src/core_write.cpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107};
108
109std::string SighashToStr(unsigned char sighash_type)
110{
111 const auto& it = mapSigHashTypes.find(sighash_type);
112 if (it == mapSigHashTypes.end()) return "";
113 return it->second;
114}
115
116/**
117 * Create the assembly string representation of a CScript object.

Callers 2

FUZZ_TARGET_INITFunction · 0.85
decodepsbtFunction · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68