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