Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
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

typedef std::vector<unsigned char> valtype

Definition at line 34 of file scriptpubkeyman.cpp.

Enumeration Type Documentation

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.

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

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

Definition at line 839 of file scriptpubkeyman.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1433 of file scriptpubkeyman.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 499 of file scriptpubkeyman.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

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.