toHex method
Return Hex string from BigInt 256 bits long
Implementation
String toHex(BigInt number) {
String hexdata = number.toRadixString(16);
int n = 64 - hexdata.length;
for (int i = 0; i < n; i++) {
hexdata = "0" + hexdata;
}
return hexdata;
}