[#HidingSigningProvider-GetKey-01]
= xref:HidingSigningProvider.adoc[HidingSigningProvider]::GetKey
:relfileprefix: ../
:mrdocs:

`GetKey` overloads

== Synopses

Declared in `&lt;script&sol;signingprovider&period;h&gt;`

Look up a private key by its key id&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
xref:SigningProvider/GetKey.adoc[GetKey](
    xref:CKeyID.adoc[CKeyID] const& address,
    xref:CKey.adoc[CKey]& key) const;
----

[.small]#xref:SigningProvider/GetKey.adoc[_» more&period;&period;&period;_]#

Look up a private key by its key id, unless secrets are hidden&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
xref:HidingSigningProvider/GetKey-09.adoc[GetKey](
    xref:CKeyID.adoc[CKeyID] const& keyid,
    xref:CKey.adoc[CKey]& key) const override;
----

[.small]#xref:HidingSigningProvider/GetKey-09.adoc[_» more&period;&period;&period;_]#

== Return Value

* True if the private key was found&period;
* True if the private key was found and not hidden&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| The key id to retrieve the private key for&period;
| *key*
| Set to the matching private key on success&period;
| *keyid*
| The key id to retrieve the private key for&period;
|===


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