Arcium LogoArcium TS SDK Docs

decompressUint128

decompressUint128(compressed): Uint8Array

Decompresses an array of 128-bit bigints into a flattened byte array.

Takes an array of 128-bit bigints and returns a Uint8Array containing the decompressed bytes (16 bytes per bigint).

Parameters

ParameterTypeDescription
compressedbigint[]The input array of 128-bit bigints. Each bigint must be less than 2^128.

Returns

Uint8Array

A Uint8Array containing the decompressed bytes.

Throws

Error if any bigint in the input is not less than 2^128.