A class to identify which pubkeys a script and a keystore have in common.
More...
A class to identify which pubkeys a script and a keystore have in common.
Definition at line 108 of file wallet.cpp.
◆ CAffectedKeysVisitor()
CAffectedKeysVisitor::CAffectedKeysVisitor |
( |
const CKeyStore & |
keystoreIn, |
|
|
std::vector< CKeyID > & |
vKeysIn |
|
) |
| |
|
inline |
- Parameters
-
[in] | keystoreIn | The CKeyStore that is queried for the presence of a pubkey. |
[out] | vKeysIn | A vector to which a script's pubkey identifiers are appended if they are in the keystore. |
Definition at line 118 of file wallet.cpp.
◆ operator()() [1/5]
void CAffectedKeysVisitor::operator() |
( |
const CKeyID & |
keyId | ) |
|
|
inline |
◆ operator()() [2/5]
void CAffectedKeysVisitor::operator() |
( |
const CScriptID & |
scriptId | ) |
|
|
inline |
◆ operator()() [3/5]
◆ operator()() [4/5]
◆ operator()() [5/5]
template<typename X >
void CAffectedKeysVisitor::operator() |
( |
const X & |
none | ) |
|
|
inline |
◆ Process()
void CAffectedKeysVisitor::Process |
( |
const CScript & |
script | ) |
|
|
inline |
Apply the visitor to each destination in a script, recursively to the redeemscript in the case of p2sh destinations.
- Parameters
-
[in] | script | The CScript from which destinations are extracted. |
- Postcondition
- Any CKeyIDs that script and keystore have in common are appended to the visitor's vKeys.
Definition at line 126 of file wallet.cpp.
◆ keystore
const CKeyStore& CAffectedKeysVisitor::keystore |
|
private |
◆ vKeys
std::vector<CKeyID>& CAffectedKeysVisitor::vKeys |
|
private |
The documentation for this class was generated from the following file: