MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / CheckDataSignatureEncoding

Function CheckDataSignatureEncoding

src/script/sigencoding.cpp:202–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202bool CheckDataSignatureEncoding(const valtype &vchSig, uint32_t flags,
203 ScriptError *serror) {
204 // Empty signature. Not strictly DER encoded, but allowed to provide a
205 // compact way to provide an invalid signature for use with CHECK(MULTI)SIG
206 if (vchSig.size() == 0) {
207 return true;
208 }
209
210 return CheckRawSignatureEncoding(
211 vchSig | boost::adaptors::sliced(0, vchSig.size()), flags, serror);
212}
213
214static bool CheckSighashEncoding(const valtype &vchSig, uint32_t flags,
215 ScriptError *serror) {

Callers 3

RunNextOpInnerMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

sizeMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68