Hash overloads

Synopses

Declared in <hash.h>

Compute the 256‐bit hash of an object.

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

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

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

Return Value

  • The 256‐bit double‐SHA‐256 hash of the object.

  • The 256‐bit double‐SHA‐256 hash of the two objects concatenated.

Parameters

Name

Description

in1

The object to hash.

in2

The second object to hash.

Created with MrDocs