Takes the hexadecimal input and creates a BigInt.
BigInt hexToInt(String hex) { return BigInt.parse(strip0x(hex), radix: 16); }