wallet::DescriptorScriptPubKeyMan::HasPrivKey

Returns whether the private key for the given key id is present.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

[[requires_capability(0x7f2e1dcac698), requires_capability(0x7f2e111ba8b8), requires_capability(0x7f2e15ef1878), requires_capability(0x7f2e237306d8), requires_capability(0x7f2e26613298), requires_capability(0x7f2e2357e188)]]
bool
HasPrivKey(CKeyID const& keyid) const;

Return Value

true if the private key is present.

Parameters

NameDescription
keyidThe key id to look up.