toUnsigned function

Uint8List toUnsigned(
  1. BigInt unsignedInt
)

Converts a BigInt to an unsigned integer and returns it as a Uint8List. Assumes 256-bit numbers.

Implementation

Uint8List toUnsigned(BigInt unsignedInt) {
  return encodeBigInt(unsignedInt.toUnsigned(256));
}