Wraps a fixed‐size hash value and exposes byte‐range access to it.

Synopsis

Declared in <util/hash_type.h>

template<typename HashType>
class BaseHash;

Member Functions

Name

Description

BaseHash [constructor]

Constructors

ToString

Returns the hexadecimal string representation of the hash.

begin

begin overloads

data

data overloads

end

end overloads

size

Returns the number of bytes in the hash.

operator std::vector<unsigned char>

Converts the hash to a byte vector.

operator==

Compares two hashes for equality.

operator<

Orders two hashes.

Protected Data Members

Name

Description

m_hash

The wrapped hash value.

Derived Classes

Name

Description

AssumeutxoHash

Strongly typed hash of a serialized UTXO snapshot.

CScriptID

A reference to a CScript: the Hash160 of its serialization

PKHash

A public‐key‐hash destination for a P2PKH address.

ScriptHash

A script‐hash destination for a P2SH address.

WitnessV0KeyHash

A version‐0 witness key‐hash destination for a P2WPKH address.

WitnessV0ScriptHash

A version‐0 witness script‐hash destination for a P2WSH address.

Created with MrDocs