[#CKey-Load]
= xref:CKey.adoc[CKey]::Load
:relfileprefix: ../
:mrdocs:

Load private key and check that public key matches&period;

== Synopsis

Declared in `&lt;key&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Load(
    xref:CPrivKey.adoc[CPrivKey] const& privkey,
    xref:CPubKey.adoc[CPubKey] const& vchPubKey,
    bool fSkipCheck);
----

== Return Value

true if the key was loaded successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *privkey*
| The serialized private key to load&period;
| *vchPubKey*
| The public key expected to correspond to privkey&period;
| *fSkipCheck*
| Whether to skip verifying that the public key matches&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
