tuweni / org.apache.tuweni.ssz / SSZ / encodeBigIntegerList

encodeBigIntegerList

static fun encodeBigIntegerList(bitLength: Int, vararg elements: BigInteger): Bytes (source)

Encode a list of big integers.

Parameters

bitLength - The bit length of the encoded integers (must be a multiple of 8).

elements - The integers to write.

Exceptions

IllegalArgumentException - If any values are too large for the specified bitLength.

Return
SSZ encoding in a Bytes value.

static fun encodeBigIntegerList(bitLength: Int, elements: MutableList<BigInteger>): Bytes (source)

Encode a list of big integers.

Parameters

bitLength - The bit length of the encoded integers (must be a multiple of 8).

elements - The list of BigIntegers to write.

Exceptions

IllegalArgumentException - If any values are too large for the specified bitLength.

Return
SSZ encoding in a Bytes value.