Function Block.computeHash

Computes the hash matching this block

void computeHash (
  scope pure nothrow @nogc @safe void delegate(in ubyte[]) dg
) pure nothrow @nogc scope @safe const;

The hash of a block is that of its header, however it is not uncommon that one call hashFull on the block instead of the header. As a result, this function simply forwards to the header.

Parameters

NameDescription
dg Hashing function accumulator