CKey::VerifyPubKey

Verify thoroughly whether a private key and a public key match. This is done using a different mechanism than just regenerating it.

Synopsis

Declared in <key.h>

bool
VerifyPubKey(CPubKey const& vchPubKey) const;

Return Value

true if the public key matches this private key.

Parameters

NameDescription
vchPubKeyThe public key to check against this private key.