MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / CheckPubKeyEncoding

Function CheckPubKeyEncoding

src/script/interpreter.cpp:233–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool static CheckPubKeyEncoding(const valtype &vchSig, unsigned int flags, ScriptError* serror) {
234 if ((flags & SCRIPT_VERIFY_STRICTENC) != 0 && !IsCompressedOrUncompressedPubKey(vchSig)) {
235 return set_error(serror, SCRIPT_ERR_PUBKEYTYPE);
236 }
237 return true;
238}
239
240bool static CheckMinimalPush(const valtype& data, opcodetype opcode) {
241 if (data.size() == 0) {

Callers 1

EvalScriptFunction · 0.85

Calls 2

set_errorFunction · 0.70

Tested by

no test coverage detected