Bitcoin Core  0.20.99
P2P Digital Currency
Typedefs | Enumerations | Functions | Variables
scriptpubkeyman.cpp File Reference
#include <key_io.h>
#include <outputtype.h>
#include <script/descriptor.h>
#include <script/sign.h>
#include <util/bip32.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/translation.h>
#include <wallet/scriptpubkeyman.h>
Include dependency graph for scriptpubkeyman.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< unsigned char > valtype
 

Enumerations

enum  IsMineSigVersion
 This is an enum that tracks the execution context of a script, similar to SigVersion in script/interpreter. More...
 
enum  IsMineResult
 This is an internal representation of isminetype + invalidity. More...
 

Functions

static int64_t GetOldestKeyTimeInPool (const std::set< int64_t > &setKeyPool, WalletBatch &batch)
 
static bool ExtractPubKey (const CScript &dest, CPubKey &pubKeyOut)
 
std::vector< CKeyIDGetAffectedKeys (const CScript &spk, const SigningProvider &provider)
 

Variables

const uint32_t BIP32_HARDENED_KEY_LIMIT = 0x80000000
 Value for the first BIP 32 hardened derivation. Can be used as a bit mask and as a value. See BIP 32 for more details. More...
 

Typedef Documentation

◆ valtype

typedef std::vector<unsigned char> valtype

Definition at line 34 of file scriptpubkeyman.cpp.

Enumeration Type Documentation

◆ IsMineResult

enum IsMineResult
strong

This is an internal representation of isminetype + invalidity.

Its order is significant, as we return the max of all explored possibilities.

Definition at line 56 of file scriptpubkeyman.cpp.

◆ IsMineSigVersion

enum IsMineSigVersion
strong

This is an enum that tracks the execution context of a script, similar to SigVersion in script/interpreter.

It is separate however because we want to distinguish between top-level scriptPubKey execution and P2SH redeemScript execution (a distinction that has no impact on consensus rules).

Definition at line 44 of file scriptpubkeyman.cpp.

Function Documentation

◆ ExtractPubKey()

static bool ExtractPubKey ( const CScript dest,
CPubKey pubKeyOut 
)
static

Definition at line 831 of file scriptpubkeyman.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAffectedKeys()

std::vector<CKeyID> GetAffectedKeys ( const CScript spk,
const SigningProvider provider 
)

Definition at line 1423 of file scriptpubkeyman.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetOldestKeyTimeInPool()

static int64_t GetOldestKeyTimeInPool ( const std::set< int64_t > &  setKeyPool,
WalletBatch batch 
)
static

Definition at line 491 of file scriptpubkeyman.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BIP32_HARDENED_KEY_LIMIT

const uint32_t BIP32_HARDENED_KEY_LIMIT = 0x80000000

Value for the first BIP 32 hardened derivation. Can be used as a bit mask and as a value. See BIP 32 for more details.

Definition at line 16 of file scriptpubkeyman.cpp.