Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Public Attributes | Friends | List of all members
CTxIn Class Reference

An input of a transaction. More...

#include <main.h>

Collaboration diagram for CTxIn:
Collaboration graph
[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 323 of file main.h.

Constructor & Destructor Documentation

CTxIn::CTxIn ( )
inline

Definition at line 330 of file main.h.

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

Definition at line 335 of file main.h.

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

Definition at line 342 of file main.h.

Member Function Documentation

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

Definition at line 350 of file main.h.

void CTxIn::print ( ) const
inline

Definition at line 388 of file main.h.

std::string CTxIn::ToString ( ) const
inline

Definition at line 373 of file main.h.

Friends And Related Function Documentation

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

Definition at line 368 of file main.h.

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

Definition at line 361 of file main.h.

Member Data Documentation

unsigned int CTxIn::nSequence

Definition at line 328 of file main.h.

COutPoint CTxIn::prevout

Definition at line 326 of file main.h.

CScript CTxIn::scriptSig

Definition at line 327 of file main.h.


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