wallet::LegacyDataSPKM::GetPubKey

GetPubKey overloads

Synopses

Declared in <wallet/scriptpubkeyman.h>

Look up a public key by its key id.

virtual
bool
GetPubKey(
    CKeyID const& address,
    CPubKey& pubkey) const;
» more...

Retrieves the public key for the given address into vchPubKeyOut.

virtual
bool
GetPubKey(
    CKeyID const& address,
    CPubKey& vchPubKeyOut) const override;
» more...

Return Value

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

Parameters

NameDescription
addressThe key id to retrieve the public key for.
pubkeySet to the matching public key on success.
vchPubKeyOutFilled with the found public key.