Converts a BigInt into a hex String
static String bigIntToHex(BigInt i) { return "0x${i.toRadixString(16)}"; }