Bitcoin ABC 0.30.5
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
SigHashType Class Reference

Signature hash type wrapper class. More...

#include <sighashtype.h>

Public Member Functions

 SigHashType ()
 
 SigHashType (uint32_t sigHashIn)
 
SigHashType withBaseType (BaseSigHashType baseSigHashType) const
 
SigHashType withForkValue (uint32_t forkId) const
 
SigHashType withForkId (bool forkId=true) const
 
SigHashType withAnyoneCanPay (bool anyoneCanPay=true) const
 
BaseSigHashType getBaseType () const
 
uint32_t getForkValue () const
 
bool isDefined () const
 
bool hasForkId () const
 
bool hasAnyoneCanPay () const
 
uint32_t getRawSigHashType () const
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 

Private Attributes

uint32_t sigHash
 

Friends

constexpr bool operator== (const SigHashType &a, const SigHashType &b)
 Handy operators. More...
 
constexpr bool operator!= (const SigHashType &a, const SigHashType &b)
 

Detailed Description

Signature hash type wrapper class.

Definition at line 37 of file sighashtype.h.

Constructor & Destructor Documentation

◆ SigHashType() [1/2]

SigHashType::SigHashType ( )
inlineexplicit

Definition at line 42 of file sighashtype.h.

Here is the caller graph for this function:

◆ SigHashType() [2/2]

SigHashType::SigHashType ( uint32_t  sigHashIn)
inlineexplicit

Definition at line 44 of file sighashtype.h.

Member Function Documentation

◆ getBaseType()

BaseSigHashType SigHashType::getBaseType ( ) const
inline

Definition at line 64 of file sighashtype.h.

Here is the caller graph for this function:

◆ getForkValue()

uint32_t SigHashType::getForkValue ( ) const
inline

Definition at line 68 of file sighashtype.h.

Here is the caller graph for this function:

◆ getRawSigHashType()

uint32_t SigHashType::getRawSigHashType ( ) const
inline

Definition at line 83 of file sighashtype.h.

Here is the caller graph for this function:

◆ hasAnyoneCanPay()

bool SigHashType::hasAnyoneCanPay ( ) const
inline

Definition at line 79 of file sighashtype.h.

Here is the caller graph for this function:

◆ hasForkId()

bool SigHashType::hasForkId ( ) const
inline

Definition at line 77 of file sighashtype.h.

Here is the caller graph for this function:

◆ isDefined()

bool SigHashType::isDefined ( ) const
inline

Definition at line 70 of file sighashtype.h.

◆ Serialize()

template<typename Stream >
void SigHashType::Serialize ( Stream &  s) const
inline

Definition at line 85 of file sighashtype.h.

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

◆ Unserialize()

template<typename Stream >
void SigHashType::Unserialize ( Stream &  s)
inline

Definition at line 89 of file sighashtype.h.

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

◆ withAnyoneCanPay()

SigHashType SigHashType::withAnyoneCanPay ( bool  anyoneCanPay = true) const
inline

Definition at line 59 of file sighashtype.h.

Here is the call graph for this function:

◆ withBaseType()

SigHashType SigHashType::withBaseType ( BaseSigHashType  baseSigHashType) const
inline

Definition at line 46 of file sighashtype.h.

Here is the call graph for this function:

◆ withForkId()

SigHashType SigHashType::withForkId ( bool  forkId = true) const
inline

Definition at line 54 of file sighashtype.h.

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

◆ withForkValue()

SigHashType SigHashType::withForkValue ( uint32_t  forkId) const
inline

Definition at line 50 of file sighashtype.h.

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

Friends And Related Function Documentation

◆ operator!=

constexpr bool operator!= ( const SigHashType a,
const SigHashType b 
)
friend

Definition at line 101 of file sighashtype.h.

◆ operator==

constexpr bool operator== ( const SigHashType a,
const SigHashType b 
)
friend

Handy operators.

Definition at line 96 of file sighashtype.h.

Member Data Documentation

◆ sigHash

uint32_t SigHashType::sigHash
private

Definition at line 39 of file sighashtype.h.


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