Convert a bigint to a byte array
static Uint8List bigIntToBytes(BigInt bigInt) { return hexToBytes(bigInt.toRadixString(16).padLeft(32, "0")); }