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 - Int: The bit length of the encoded integers (must be a multiple of 8).

elements - BigInteger!: The integers to write.

Exceptions

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

Return
Bytes!: SSZ encoding in a Bytes value.

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

Encode a list of big integers.

Parameters

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

elements - MutableList<BigInteger!>!: The list of BigIntegers to write.

Exceptions

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

Return
Bytes!: SSZ encoding in a Bytes value.