MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetHashType

Function GetHashType

src/script/interpreter.cpp:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172uint32_t static GetHashType(const valtype &vchSig) {
173 if (vchSig.size() == 0)
174 return 0;
175 // check IsValidSignatureEncoding()'s comment for vchSig format
176 return vchSig.back();
177}
178
179bool static IsLowDERSignature(const valtype &vchSig, ScriptError* serror) {
180 if (!IsValidSignatureEncoding(vchSig)) {

Callers 3

UsesForkIdFunction · 0.85
CheckSigMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected