albertobsd / ecctools

Small collection of tools written in C for ECC and bitcoin
MIT License
59 stars 38 forks source link

problem #15

Closed hitendrapharmacy closed 2 years ago

hitendrapharmacy commented 2 years ago

please resolve ./modmath result to HEX and DEC

albertobsd commented 2 years ago

for mothmath add the next line:

gmp_printf("Result: %Zd\n\n",C);

just before of the line 87

gmp_printf("Result: %Zx\n\n",C);

the code will look like:

gmp_printf("Result: %Zx\n\n",C);  //Hexadecimal '%Zx'
gmp_printf("Result: %Zd\n\n",C); //Decimal '%Zd'

Edit the code, I don't know why you want the result in Decimal, no one software accepts keys in Decimal, all use Hexadecimal or WIF format

hitendrapharmacy commented 2 years ago

got it thanks brother