veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::btc::TxIn Struct Reference

An input of a transaction. More...

Detailed Description

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 50 of file transaction.hpp.

#include <transaction.hpp>

+ Collaboration diagram for altintegration::btc::TxIn:

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

OutPoint prevout
 
Script scriptSig
 
uint32_t nSequence
 
ScriptWitness scriptWitness
 Only serialized through CTransaction. More...
 
 ADD_SERIALIZE_METHODS
 

Friends

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

Member Function Documentation

◆ SerializationOp()

template<typename Stream , typename Operation >
void altintegration::btc::TxIn::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 59 of file transaction.hpp.

59 {
60 READWRITE(prevout);
61 READWRITE(scriptSig);
62 READWRITE(nSequence);
63 }

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 70 of file transaction.hpp.

70{ return !(a == b); }

◆ operator==

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

Definition at line 65 of file transaction.hpp.

65 {
66 return a.prevout == b.prevout && a.scriptSig == b.scriptSig &&
67 a.nSequence == b.nSequence && a.scriptWitness == b.scriptWitness;
68 }

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

altintegration::btc::TxIn::ADD_SERIALIZE_METHODS

Definition at line 56 of file transaction.hpp.

◆ nSequence

uint32_t altintegration::btc::TxIn::nSequence

Definition at line 53 of file transaction.hpp.

◆ prevout

OutPoint altintegration::btc::TxIn::prevout

Definition at line 51 of file transaction.hpp.

◆ scriptSig

Script altintegration::btc::TxIn::scriptSig

Definition at line 52 of file transaction.hpp.

◆ scriptWitness

ScriptWitness altintegration::btc::TxIn::scriptWitness

Definition at line 54 of file transaction.hpp.


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