wallet::LegacyDataSPKM::GetKey

GetKey overloads

Synopses

Declared in <wallet/scriptpubkeyman.h>

Look up a private key by its key id.

virtual
bool
GetKey(
    CKeyID const& address,
    CKey& key) const;
» more...

Retrieves the private key for the given address into keyOut.

virtual
bool
GetKey(
    CKeyID const& address,
    CKey& keyOut) const override;
» more...

Return Value

  • True if the private key was found.
  • true if the private key was found.

Parameters

NameDescription
addressThe key id to retrieve the private key for.
keySet to the matching private key on success.
keyOutFilled with the found private key.