Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
hash.h File Reference
#include <attributes.h>
#include <crypto/common.h>
#include <crypto/ripemd160.h>
#include <crypto/sha256.h>
#include <prevector.h>
#include <serialize.h>
#include <uint256.h>
#include <version.h>
#include <vector>
Include dependency graph for hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CHash256
 A hasher class for Bitcoin's 256-bit hash (double SHA-256). More...
 
class  CHash160
 A hasher class for Bitcoin's 160-bit hash (SHA-256 + RIPEMD-160). More...
 
class  HashWriter
 A writer stream (for serialization) that computes a 256-bit hash. More...
 
class  CHashWriter
 
class  CHashVerifier< Source >
 Reads data from an underlying stream, while hashing the read data. More...
 
class  HashedSourceWriter< Source >
 Writes data to an underlying source stream, while hashing the written data. More...
 

Typedefs

typedef uint256 ChainCode
 

Functions

template<typename T >
uint256 Hash (const T &in1)
 Compute the 256-bit hash of an object.
 
template<typename T1 , typename T2 >
uint256 Hash (const T1 &in1, const T2 &in2)
 Compute the 256-bit hash of the concatenation of two objects.
 
template<typename T1 >
uint160 Hash160 (const T1 &in1)
 Compute the 160-bit hash an object.
 
template<typename T >
uint256 SerializeHash (const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION)
 Compute the 256-bit hash of an object's serialization.
 
uint32_t MurmurHash3 (uint32_t nHashSeed, Span< const uint8_t > vDataToHash)
 
void BIP32Hash (const ChainCode &chainCode, uint32_t nChild, uint8_t header, const uint8_t data[32], uint8_t output[64])
 

Typedef Documentation

◆ ChainCode

Definition at line 20 of file hash.h.

Function Documentation

◆ BIP32Hash()

void BIP32Hash ( const ChainCode chainCode,
uint32_t  nChild,
uint8_t  header,
const uint8_t  data[32],
uint8_t  output[64] 
)

Definition at line 72 of file hash.cpp.

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

◆ Hash() [1/2]

template<typename T >
uint256 Hash ( const T &  in1)
inline

Compute the 256-bit hash of an object.

Definition at line 75 of file hash.h.

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

◆ Hash() [2/2]

template<typename T1 , typename T2 >
uint256 Hash ( const T1 in1,
const T2 in2 
)
inline

Compute the 256-bit hash of the concatenation of two objects.

Definition at line 83 of file hash.h.

Here is the call graph for this function:

◆ Hash160()

template<typename T1 >
uint160 Hash160 ( const T1 in1)
inline

Compute the 160-bit hash an object.

Definition at line 93 of file hash.h.

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

◆ MurmurHash3()

uint32_t MurmurHash3 ( uint32_t  nHashSeed,
Span< const uint8_t vDataToHash 
)

Definition at line 14 of file hash.cpp.

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

◆ SerializeHash()

template<typename T >
uint256 SerializeHash ( const T &  obj,
int  nType = SER_GETHASH,
int  nVersion = PROTOCOL_VERSION 
)

Compute the 256-bit hash of an object's serialization.

Definition at line 225 of file hash.h.

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