comparison src/script.h @ 2096:ee92c87e9cb6 draft

Begin doxygen-compatible comments
author Pieter Wuille <pieter.wuille@gmail.com>
date Mon, 26 Mar 2012 16:48:23 +0200
parents 20667468f95b
children a25079d308ca c68e3fa36257
comparison
equal deleted inserted replaced
2094:b9c60960ce7c 2096:ee92c87e9cb6
13 #include <boost/foreach.hpp> 13 #include <boost/foreach.hpp>
14 14
15 class CTransaction; 15 class CTransaction;
16 class CKeyStore; 16 class CKeyStore;
17 17
18 /** Signature hash types/flags */
18 enum 19 enum
19 { 20 {
20 SIGHASH_ALL = 1, 21 SIGHASH_ALL = 1,
21 SIGHASH_NONE = 2, 22 SIGHASH_NONE = 2,
22 SIGHASH_SINGLE = 3, 23 SIGHASH_SINGLE = 3,
34 TX_MULTISIG, 35 TX_MULTISIG,
35 }; 36 };
36 37
37 const char* GetTxnOutputType(txnouttype t); 38 const char* GetTxnOutputType(txnouttype t);
38 39
40 /** Script opcodes */
39 enum opcodetype 41 enum opcodetype
40 { 42 {
41 // push value 43 // push value
42 OP_0=0, 44 OP_0=0,
43 OP_FALSE=OP_0, 45 OP_FALSE=OP_0,
210 212
211 213
212 214
213 215
214 216
215 217 /** Serialized script, used inside transaction inputs and outputs */
216 class CScript : public std::vector<unsigned char> 218 class CScript : public std::vector<unsigned char>
217 { 219 {
218 protected: 220 protected:
219 CScript& push_int64(int64 n) 221 CScript& push_int64(int64 n)
220 { 222 {