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

Method VerifySignature

src/script/sigcache.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool CachingTransactionSignatureChecker::VerifySignature(const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, const uint256& sighash) const
84{
85 uint256 entry;
86 signatureCache.ComputeEntry(entry, sighash, vchSig, pubkey);
87 if (signatureCache.Get(entry, !store))
88 return true;
89 if (!TransactionSignatureChecker::VerifySignature(vchSig, pubkey, sighash))
90 return false;
91 if (store)
92 signatureCache.Set(entry);
93 return true;
94}

Callers

nothing calls this directly

Calls 3

ComputeEntryMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected