GetKeyForDestination

Return the CKeyID of the key involved in a script (if there is a unique one).

Synopsis

Declared in <script/signingprovider.h>

CKeyID
GetKeyForDestination(
    SigningProvider const& store,
    CTxDestination const& dest);

Return Value

The key id involved in the destination, or an empty id if none is unique.

Parameters

NameDescription
storeThe provider used to resolve the destination's key.
destThe destination to inspect.