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

Method VerifySignature

src/tx/tx.cpp:391–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391bool CBaseTx::VerifySignature(CTxExecuteContext &context, const CPubKey &pubkey) {
392 uint256 sighash = GetHash();
393 if (!::VerifySignature(sighash, signature, pubkey))
394 return context.pState->DoS(100, ERRORMSG("%s, tx signature error", BASE_TX_TITLE), REJECT_INVALID, "bad-tx-signature");
395
396 return true;
397}
398
399/**################################ Universal Coin Transfer ########################################**/
400

Callers

nothing calls this directly

Calls 2

VerifySignatureFunction · 0.85
DoSMethod · 0.80

Tested by

no test coverage detected