tuweni / org.apache.tuweni.ssz / SSZReader / readHashList

readHashList

abstract fun readHashList(hashLength: Int): MutableList<Bytes!>! (source)

Read a list of hashes from the SSZ source.

Parameters

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

Exceptions

InvalidSSZTypeException - If the next SSZ value is not a list, there are insufficient encoded bytes for any hash in the list.

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

Return
MutableList<Bytes!>!: A list of hashes.