You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -638,6 +640,12 @@ public static string hex(object? o) {
638
640
}else{
639
641
return"0x"+Convert.ToString(x,16);
640
642
}
643
+
644
+
staticstringToHexString(BigIntegerb){
645
+
varval=b.ToString("x");
646
+
if(val[0]=='0')val=val.TrimStart('0');// BigInteger.ToString("x") sometimes pads with 0 so we need to trim it (https://github.com/dotnet/runtime/issues/43269)
0 commit comments