Bitcoin
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T > Class Template Reference

Public Member Functions

 CTransactionSignatureSerializer (const T &txToIn, const CScript &scriptCodeIn, unsigned int nInIn, int nHashTypeIn)
 
template<typename S >
void SerializeScriptCode (S &s) const
 
template<typename S >
void SerializeInput (S &s, unsigned int nInput) const
 
template<typename S >
void SerializeOutput (S &s, unsigned int nOutput) const
 
template<typename S >
void Serialize (S &s) const
 

Private Attributes

const T & txTo
 reference to the spending transaction (the one being serialized) More...
 
const CScriptscriptCode
 output script being consumed More...
 
const unsigned int nIn
 input index of txTo being signed More...
 
const bool fAnyoneCanPay
 whether the hashtype has the SIGHASH_ANYONECANPAY flag set More...
 
const bool fHashSingle
 whether the hashtype is SIGHASH_SINGLE More...
 
const bool fHashNone
 whether the hashtype is SIGHASH_NONE More...
 

Detailed Description

template<class T>
class anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >

Wrapper that serializes like CTransaction, but with the modifications required for the signature hash done in-place

Constructor & Destructor Documentation

◆ CTransactionSignatureSerializer()

template<class T >
anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::CTransactionSignatureSerializer ( const T &  txToIn,
const CScript scriptCodeIn,
unsigned int  nInIn,
int  nHashTypeIn 
)
inline

Member Function Documentation

◆ Serialize()

template<class T >
template<typename S >
void anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::Serialize ( S &  s) const
inline

Serialize txTo

◆ SerializeInput()

template<class T >
template<typename S >
void anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::SerializeInput ( S &  s,
unsigned int  nInput 
) const
inline

Serialize an input of txTo

◆ SerializeOutput()

template<class T >
template<typename S >
void anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::SerializeOutput ( S &  s,
unsigned int  nOutput 
) const
inline

Serialize an output of txTo

◆ SerializeScriptCode()

template<class T >
template<typename S >
void anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::SerializeScriptCode ( S &  s) const
inline

Serialize the passed scriptCode, skipping OP_CODESEPARATORs

Member Data Documentation

◆ fAnyoneCanPay

template<class T >
const bool anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::fAnyoneCanPay
private

whether the hashtype has the SIGHASH_ANYONECANPAY flag set

◆ fHashNone

template<class T >
const bool anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::fHashNone
private

whether the hashtype is SIGHASH_NONE

◆ fHashSingle

template<class T >
const bool anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::fHashSingle
private

whether the hashtype is SIGHASH_SINGLE

◆ nIn

template<class T >
const unsigned int anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::nIn
private

input index of txTo being signed

◆ scriptCode

template<class T >
const CScript& anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::scriptCode
private

output script being consumed

◆ txTo

template<class T >
const T& anonymous_namespace{interpreter.cpp}::CTransactionSignatureSerializer< T >::txTo
private

reference to the spending transaction (the one being serialized)


The documentation for this class was generated from the following file: