ssz / org.apache.tuweni.ssz / SSZReader / readHash

readHash

abstract fun readHash(hashLength: Int): Bytes (source)

Read a hash from the SSZ source.

Parameters

hashLength - The length of the hash (in bytes).

Exceptions

InvalidSSZTypeException - If there are insufficient encoded bytes for a 32-byte hash.

EndOfSSZException - If there are no more SSZ values to read.

Return
The bytes of the hash.