PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
CTxIn Class Reference

An input of a transaction. More...

#include <transaction.h>

Collaboration diagram for CTxIn:
[legend]

Public Member Functions

 CTxIn ()
 
 CTxIn (COutPoint prevoutIn, CScript scriptSigIn=CScript(), uint32_t nSequenceIn=SEQUENCE_FINAL)
 
 CTxIn (uint256 hashPrevTx, uint32_t nOut, CScript scriptSigIn=CScript(), uint32_t nSequenceIn=SEQUENCE_FINAL)
 
 SERIALIZE_METHODS (CTxIn, obj)
 
bool IsFinal () const
 
bool IsNull () const
 
bool IsZerocoinSpend () const
 
bool IsZerocoinPublicSpend () const
 
std::string ToString () const
 
size_t DynamicMemoryUsage () const
 

Public Attributes

COutPoint prevout
 
CScript scriptSig
 
uint32_t nSequence
 

Static Public Attributes

static const uint32_t SEQUENCE_FINAL = 0xffffffff
 

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 93 of file transaction.h.

Constructor & Destructor Documentation

◆ CTxIn() [1/3]

CTxIn::CTxIn ( )
inline

Definition at line 104 of file transaction.h.

◆ CTxIn() [2/3]

CTxIn::CTxIn ( COutPoint  prevoutIn,
CScript  scriptSigIn = CScript(),
uint32_t  nSequenceIn = SEQUENCE_FINAL 
)
explicit

Definition at line 29 of file transaction.cpp.

◆ CTxIn() [3/3]

CTxIn::CTxIn ( uint256  hashPrevTx,
uint32_t  nOut,
CScript  scriptSigIn = CScript(),
uint32_t  nSequenceIn = SEQUENCE_FINAL 
)

Definition at line 36 of file transaction.cpp.

Member Function Documentation

◆ DynamicMemoryUsage()

size_t CTxIn::DynamicMemoryUsage ( ) const
inline

Definition at line 130 of file transaction.h.

Here is the call graph for this function:

◆ IsFinal()

bool CTxIn::IsFinal ( ) const
inline

Definition at line 110 of file transaction.h.

Here is the caller graph for this function:

◆ IsNull()

bool CTxIn::IsNull ( ) const
inline

Definition at line 111 of file transaction.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsZerocoinPublicSpend()

bool CTxIn::IsZerocoinPublicSpend ( ) const

Definition at line 48 of file transaction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsZerocoinSpend()

bool CTxIn::IsZerocoinSpend ( ) const

Definition at line 43 of file transaction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CTxIn::SERIALIZE_METHODS ( CTxIn  ,
obj   
)
inline

Definition at line 108 of file transaction.h.

◆ ToString()

std::string CTxIn::ToString ( ) const

Definition at line 53 of file transaction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 123 of file transaction.h.

◆ operator==

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

Definition at line 116 of file transaction.h.

Member Data Documentation

◆ nSequence

uint32_t CTxIn::nSequence

Definition at line 98 of file transaction.h.

◆ prevout

COutPoint CTxIn::prevout

Definition at line 96 of file transaction.h.

◆ scriptSig

CScript CTxIn::scriptSig

Definition at line 97 of file transaction.h.

◆ SEQUENCE_FINAL

const uint32_t CTxIn::SEQUENCE_FINAL = 0xffffffff
static

Definition at line 102 of file transaction.h.


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