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 - the SSZ encoded bytes

hashLength - 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
a list of 32-byte hashes