Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
script.h
Go to the documentation of this file.
411 CScript(std::vector<unsigned char>::const_iterator pbegin, std::vector<unsigned char>::const_iterator pend) : CScriptBase(pbegin, pend) { }
491 assert(!"Warning: Pushing a CScript onto a CScript with << is probably not intended, use + to concatenate!");
523 bool GetOp2(const_iterator& pc, opcodetype& opcodeRet, std::vector<unsigned char>* pvchRet) const
Definition: script.h:133
Definition: script.h:62
Definition: script.h:118
unsigned int GetSigOpCount(bool fAccurate) const
Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs as 20 sigops.
Definition: script.cpp:153
static int64_t set_vch(const std::vector< unsigned char > &vch)
Definition: script.h:360
Definition: script.h:56
Definition: script.h:160
Definition: script.h:101
Definition: script.h:112
Definition: script.h:122
Definition: script.h:154
Definition: script.h:93
Definition: script.h:127
bool GetOp(const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet) const
Definition: script.h:513
CScriptNum(const int64_t &n)
Numeric opcodes (OP_1ADD, etc) are restricted to operating on 4-byte integers.
Definition: script.h:217
Definition: script.h:79
Definition: script.h:72
Definition: script.h:172
Definition: script.h:68
Definition: script.h:165
Definition: script.h:95
Definition: script.h:132
Definition: script.h:106
Definition: script.h:150
Definition: script.h:60
Definition: script.h:139
Definition: script.h:66
Definition: script.h:52
Definition: script.h:82
Definition: script.h:61
Definition: script.h:80
Definition: script.h:149
Definition: box.hpp:161
Definition: script.h:151
Definition: prevector.h:100
Definition: script.h:174
Definition: script.h:81
Definition: script.h:161
Definition: script.h:114
Definition: script.h:168
Definition: script.h:167
Definition: script.h:162
Definition: script.h:153
friend CScript operator+(const CScript &a, const CScript &b)
Definition: script.h:428
Definition: script.h:141
Definition: script.h:94
Definition: script.h:74
Definition: script.h:156
static std::vector< unsigned char > serialize(const int64_t &value)
Definition: script.h:326
Definition: script.h:70
Definition: script.h:129
Definition: script.h:119
bool IsUnspendable() const
Returns whether the script is guaranteed to fail at execution, regardless of the initial stack...
Definition: script.h:659
Definition: script.h:181
Definition: script.h:672
Definition: script.h:182
Definition: script.h:148
Definition: script.h:123
Definition: script.h:146
Definition: script.h:63
Definition: script.h:91
Definition: script.h:187
Definition: script.h:178
bool IsPayToPublicKey() const
Used for obsolete pay-to-pubkey addresses indexing.
Definition: script.cpp:221
Definition: script.h:124
Definition: script.h:140
Definition: script.h:86
Definition: script.h:199
Definition: script.h:205
Definition: script.h:128
Definition: script.h:110
Definition: script.h:173
prevector< 28, unsigned char > CScriptBase
We use a prevector for the script to reduce the considerable memory overhead of vectors in cases wher...
Definition: script.h:386
Definition: script.h:180
Definition: script.h:152
Definition: script.h:89
Definition: script.h:65
CScript(const unsigned char *pbegin, const unsigned char *pend)
Definition: script.h:412
Definition: script.h:186
Definition: script.h:58
Definition: script.h:77
Definition: script.h:103
Definition: script.h:102
CScriptNum(const std::vector< unsigned char > &vch, bool fRequireMinimal, const size_t nMaxNumSize=nDefaultMaxNumSize)
Definition: script.h:224
Definition: script.h:107
Definition: script.h:137
Definition: script.h:84
Definition: script.h:179
Definition: script.h:85
Definition: script.h:97
Definition: script.h:105
Definition: script.h:176
Definition: script.h:117
Definition: script.h:177
Definition: script.h:138
Definition: script.h:189
Definition: script.h:98
Definition: script.h:83
Implements a drop-in replacement for std::vector<T> which stores up to N elements directly (without h...
Definition: prevector.h:39
Definition: script.h:142
Definition: script.h:67
Definition: script.h:96
Definition: script.h:99
Definition: script.h:92
Definition: script.h:111
Definition: script.h:163
Definition: script.h:145
Definition: script.h:159
Definition: script.h:90
Definition: prevector.h:49
Definition: script.h:55
Definition: script.h:131
Definition: script.h:64
Definition: script.h:130
Definition: script.h:121
Definition: script.h:113
Definition: script.h:164
static void assign_to(const_iterator b, const_iterator e, V &v)
Definition: prevector.h:560
bool GetOp(iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet)
Definition: script.h:496
Definition: script.h:71
Definition: script.h:104
Definition: script.h:57
Definition: script.h:147
Definition: script.h:166
Definition: script.h:120
Definition: script.h:69
void SerializationOp(Stream &s, Operation ser_action)
Definition: script.h:417
Definition: script.h:78
Definition: script.h:134
Definition: script.h:59
Definition: script.h:51
CScript(std::vector< unsigned char >::const_iterator pbegin, std::vector< unsigned char >::const_iterator pend)
Definition: script.h:411
Definition: script.h:175
Definition: script.h:191
Definition: script.h:54
Definition: script.h:136
Definition: script.h:73
Definition: script.h:144
Definition: script.h:171
Definition: script.h:100
bool GetOp2(const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > *pvchRet) const
Definition: script.h:523
Definition: script.h:53
Definition: script.h:188