CheckECDSASignature overloads

Synopses

Declared in <script/interpreter.h>

Forward the ECDSA signature check to the wrapped checker.

virtual
bool
CheckECDSASignature(
    std::vector<unsigned char> const& scriptSig,
    std::vector<unsigned char> const& vchPubKey,
    CScript const& scriptCode,
    SigVersion sigversion) const override;

Validates an ECDSA signature and records its weight when valid.

virtual
bool
CheckECDSASignature(
    std::vector<unsigned char> const& sig,
    std::vector<unsigned char> const& pubkey,
    CScript const& script,
    SigVersion sigversion) const override;

Return Value

  • true if the signature is valid.

  • true if the signature is valid.

Parameters

Name

Description

scriptSig

The serialized signature, including its sighash byte.

vchPubKey

The serialized public key.

scriptCode

The script code committed to by the signature.

sigversion

The signature version selecting the hashing scheme.

sig

The signature to verify.

pubkey

The public key to verify against.

script

The script being evaluated.

Created with MrDocs