bigIntToBytes static method

Uint8List bigIntToBytes(
  1. BigInt bigInt
)

Convert a bigint to a byte array

Implementation

static Uint8List bigIntToBytes(BigInt bigInt) {
  return hexToBytes(bigInt.toRadixString(16).padLeft(32, "0"));
}