tuweni / org.apache.tuweni.ssz / SSZ / decodeBigInteger

decodeBigInteger

static fun decodeBigInteger(source: Bytes, bitLength: Int): BigInteger (source)

Read a SSZ encoded two's-compliment big integer from a Bytes value.

Parameters

source - the SSZ encoded bytes

bitLength - the bit length of the integer to read (a multiple of 8)

Exceptions

InvalidSSZTypeException - if there are insufficient encoded bytes for the desired bit length

EndOfSSZException - if there are no more SSZ values to read

Return
a string