CPubKey::Verify

Verify a DER signature (~72 bytes). If this public key is not fully valid, the return value will be false.

Synopsis

Declared in <pubkey.h>

bool
Verify(
    uint256 const& hash,
    std::vector<unsigned char> const& vchSig) const;

Return Value

true if the signature is valid for this public key.

Parameters

NameDescription
hashThe 32-byte message hash that was signed.
vchSigThe DER-encoded signature to verify.