MCPcopy Create free account
hub / github.com/LUX-Core/lux / VerifySignature

Method VerifySignature

src/script/interpreter.cpp:1289–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1287}
1288
1289bool BaseSignatureChecker::VerifySignature(const std::vector<uint8_t>& vchSig, const CPubKey& pubkey, const uint256& sighash, uint32_t flags) const
1290{
1291 if ((flags & SCRIPT_ENABLE_SCHNORR) && (vchSig.size() == 64)) {
1292 return pubkey.VerifySchnorr(sighash, vchSig);
1293 } else {
1294 return pubkey.VerifyECDSA(sighash, vchSig);
1295 }
1296}
1297
1298bool TransactionSignatureChecker::CheckSig(const vector<unsigned char>& vchSigIn, const vector<unsigned char>& vchPubKey, const CScript& scriptCode, SigVersion sigversion, uint32_t flags) const
1299{

Callers

nothing calls this directly

Calls 3

VerifySchnorrMethod · 0.80
VerifyECDSAMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected