toByteList method

Uint8List toByteList()

Converts this BigInt to a big-endian byte array.

Returns: Uint8List representation of the BigInt in big-endian format

Example:

final bytes = safePrime.toByteList();

Implementation

Uint8List toByteList() {
  return convertBigIntToByteList(this);
}