5#ifndef BITCOIN_SCRIPT_SIGHASHTYPE_H
6#define BITCOIN_SCRIPT_SIGHASHTYPE_H
98 return a.sigHash ==
b.sigHash;
Signature hash type wrapper class.
uint32_t getRawSigHashType() const
void Unserialize(Stream &s)
BaseSigHashType getBaseType() const
friend constexpr bool operator==(const SigHashType &a, const SigHashType &b)
Handy operators.
SigHashType withForkId(bool forkId=true) const
SigHashType withAnyoneCanPay(bool anyoneCanPay=true) const
bool hasAnyoneCanPay() const
SigHashType(uint32_t sigHashIn)
void Serialize(Stream &s) const
SigHashType withForkValue(uint32_t forkId) const
friend constexpr bool operator!=(const SigHashType &a, const SigHashType &b)
SigHashType withBaseType(BaseSigHashType baseSigHashType) const
uint32_t getForkValue() const
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
BaseSigHashType
Base signature hash types Base sig hash types not defined in this enum may be used,...