hdac SDK
SDK for hdac blockchain development
Public 멤버 함수 | 정적 Public 멤버 함수 | Protected 멤버 함수 | Friends | 모든 멤버 목록
CScript 클래스 참조

#include <script.h>

CScript에 대한 상속 다이어그램 :

Public 멤버 함수

 CScript (const CScript &b)
 
 CScript (const_iterator pbegin, const_iterator pend)
 
 CScript (const unsigned char *pbegin, const unsigned char *pend)
 
CScriptoperator+= (const CScript &b)
 
 CScript (int64_t b)
 
 CScript (opcodetype b)
 
 CScript (const CScriptNum &b)
 
 CScript (const std::vector< unsigned char > &b)
 
CScriptoperator<< (int64_t b)
 
CScriptoperator<< (opcodetype opcode)
 
CScriptoperator<< (const CScriptNum &b)
 
CScriptoperator<< (const std::vector< unsigned char > &b)
 
CScriptoperator<< (const CScript &b)
 
bool GetOp (iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet)
 
bool GetOp (iterator &pc, opcodetype &opcodeRet)
 
bool GetOp (const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet) const
 
bool GetOp (const_iterator &pc, opcodetype &opcodeRet) const
 
bool GetOp2 (const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > *pvchRet) const
 
int FindAndDelete (const CScript &b)
 
int Find (opcodetype op) const
 
unsigned int GetSigOpCount (bool fAccurate) const
 
unsigned int GetSigOpCount (const CScript &scriptSig) const
 
bool IsPayToScriptHash () const
 
bool IsPushOnly () const
 
bool HasSmallIntegerInTheBeginning () const
 
bool IsUnspendable () const
 
std::string ToString () const
 
CScript RemoveOpDrops () const
 
void clear ()
 

정적 Public 멤버 함수

static int DecodeOP_N (opcodetype opcode)
 
static opcodetype EncodeOP_N (int n)
 

Protected 멤버 함수

CScriptpush_int64 (int64_t n)
 

Friends

CScript operator+ (const CScript &a, const CScript &b)
 

상세한 설명

Serialized script, used inside transaction inputs and outputs

멤버 함수 문서화

static int CScript::DecodeOP_N ( opcodetype  opcode)
inlinestatic

Encode/decode small integers:

unsigned int CScript::GetSigOpCount ( bool  fAccurate) const

Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs as 20 sigops. With pay-to-script-hash, that changed: CHECKMULTISIGs serialized in scriptSigs are counted more accurately, assuming they are of the form ... OP_N CHECKMULTISIG ...

unsigned int CScript::GetSigOpCount ( const CScript scriptSig) const

Accurately count sigOps, including sigOps in pay-to-script-hash transactions:

... and return its opcount:

bool CScript::IsPushOnly ( ) const

Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it consensus-critical).

bool CScript::IsUnspendable ( ) const
inline

Returns whether the script is guaranteed to fail at execution, regardless of the initial stack. This allows outputs to be pruned instantly when entering the UTXO set.


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: