A writer stream (for serialization) that computes a 256‐bit hash.

Synopsis

Declared in <hash.h>

class HashWriter;

Member Functions

Name

Description

GetCheapHash

Returns the first 64 bits from the resulting hash.

GetHash

Compute the double‐SHA256 hash of all data written to this object.

GetSHA256

Compute the SHA256 hash of all data written to this object.

write

Adds data to the running hash.

operator<<

Serializes an object into the running hash.

Non-Member Functions

Name

Description

TaggedHash

Return a HashWriter primed for tagged hashes (as specified in BIP 340).

Derived Classes

Name

Description

HashVerifier

Reads data from an underlying stream, while hashing the read data.

HashedSourceWriter

Writes data to an underlying source stream, while hashing the written data.

Created with MrDocs