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

Name

Description

privkey

The serialized private key to load.

vchPubKey

The public key expected to correspond to privkey.

fSkipCheck

Whether to skip verifying that the public key matches.

Created with MrDocs