Hash

Hash overloads

Synopses

Declared in <hash.h>

Compute the 256-bit hash of an object.

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

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

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

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

NameDescription
in1The object to hash.
in2The second object to hash.