tuweni / org.apache.tuweni.ssz / SSZ / decodeHashList

decodeHashList

static fun decodeHashList(source: Bytes!, hashLength: Int): MutableList<Bytes!>! (source)

Read a list of 32-byte hashes from the SSZ source.

Parameters

source - Bytes!: the SSZ encoded bytes

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 32-byte hashes