Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CTxIn Class Reference

An input of a transaction. More...

#include <core.h>

Collaboration diagram for CTxIn:
[legend]

Public Member Functions

 CTxIn ()
 
 CTxIn (COutPoint prevoutIn, CScript scriptSigIn=CScript(), unsigned int nSequenceIn=std::numeric_limits< unsigned int >::max())
 
 CTxIn (uint256 hashPrevTx, unsigned int nOut, CScript scriptSigIn=CScript(), unsigned int nSequenceIn=std::numeric_limits< unsigned int >::max())
 
 IMPLEMENT_SERIALIZE (READWRITE(prevout);READWRITE(scriptSig);READWRITE(nSequence);) bool IsFinal() const
 
std::string ToString () const
 
void print () const
 

Public Attributes

COutPoint prevout
 
CScript scriptSig
 
unsigned int nSequence
 

Friends

bool operator== (const CTxIn &a, const CTxIn &b)
 
bool operator!= (const CTxIn &a, const CTxIn &b)
 

Detailed Description

An input of a transaction.

It contains the location of the previous transaction's output that it claims and a signature that matches the output's public key.

Definition at line 72 of file core.h.

Constructor & Destructor Documentation

CTxIn::CTxIn ( )
inline

Definition at line 79 of file core.h.

CTxIn::CTxIn ( COutPoint  prevoutIn,
CScript  scriptSigIn = CScript(),
unsigned int  nSequenceIn = std::numeric_limits<unsigned int>::max() 
)
explicit

Definition at line 21 of file core.cpp.

CTxIn::CTxIn ( uint256  hashPrevTx,
unsigned int  nOut,
CScript  scriptSigIn = CScript(),
unsigned int  nSequenceIn = std::numeric_limits<unsigned int>::max() 
)

Definition at line 28 of file core.cpp.

Member Function Documentation

CTxIn::IMPLEMENT_SERIALIZE ( READWRITE(prevout);READWRITE(scriptSig);READWRITE(nSequence);  ) const
inline

Definition at line 88 of file core.h.

void CTxIn::print ( ) const

Definition at line 50 of file core.cpp.

Here is the call graph for this function:

std::string CTxIn::ToString ( ) const

Definition at line 35 of file core.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

bool operator!= ( const CTxIn a,
const CTxIn b 
)
friend

Definition at line 106 of file core.h.

bool operator== ( const CTxIn a,
const CTxIn b 
)
friend

Definition at line 99 of file core.h.

Member Data Documentation

unsigned int CTxIn::nSequence

Definition at line 77 of file core.h.

COutPoint CTxIn::prevout

Definition at line 75 of file core.h.

CScript CTxIn::scriptSig

Definition at line 76 of file core.h.


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