CKey::Load

Load private key and check that public key matches.

Synopsis

Declared in <key.h>

bool
Load(
    CPrivKey const& privkey,
    CPubKey const& vchPubKey,
    bool fSkipCheck);

Return Value

true if the key was loaded successfully.

Parameters

NameDescription
privkeyThe serialized private key to load.
vchPubKeyThe public key expected to correspond to privkey.
fSkipCheckWhether to skip verifying that the public key matches.