Converts a BigInt to an unsigned integer and returns it as a Uint8List. Assumes 256-bit numbers.
Uint8List toUnsigned(BigInt unsignedInt) { return encodeBigInt(unsignedInt.toUnsigned(256)); }