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

Function VerifySignature

src/main.cpp:218–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218bool VerifySignature(const uint256 &sigHash, const std::vector<uint8_t> &signature, const CPubKey &pubKey) {
219 if (signature.size() == 0 && signature.size() >= MAX_SIGNATURE_SIZE) {
220 return false;
221 }
222
223 if (signatureCache.Get(sigHash, signature, pubKey))
224 return true;
225
226 {
227 auto bm = MAKE_BENCHMARK("execute pubkey verify");
228 if (!pubKey.Verify(sigHash, signature))
229 return false;
230 }
231
232 signatureCache.Set(sigHash, signature, pubKey);
233 return true;
234}
235
236bool AcceptToMemoryPool(CTxMemPool &pool, CValidationState &state, CBaseTx *pBaseTx,
237 bool fLimitFree, bool fRejectInsaneFee) {

Callers 8

ExVerifySignatureFuncFunction · 0.85
VerifyRewardTxFunction · 0.85
CheckPBFTMessageFunction · 0.85
CheckBaseTxMethod · 0.85
VerifySignatureMethod · 0.85
VerifyMultiSigFunction · 0.85

Calls 4

sizeMethod · 0.45
GetMethod · 0.45
VerifyMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected