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

readHash

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

Read a hash from the SSZ source.

Parameters

hashLength - Int: 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
Bytes!: The bytes of the hash.