|
@ -211,9 +211,9 @@ int32_t LP_wifstr_valid(char *wifstr) |
|
|
bitcoin_priv2wif(0,cmpstr,privkey,wiftype); |
|
|
bitcoin_priv2wif(0,cmpstr,privkey,wiftype); |
|
|
if ( strcmp(cmpstr,wifstr) == 0 ) |
|
|
if ( strcmp(cmpstr,wifstr) == 0 ) |
|
|
{ |
|
|
{ |
|
|
//printf("%s is valid wif\n",wifstr);
|
|
|
printf("%s is valid wif\n",wifstr); |
|
|
return(1); |
|
|
return(1); |
|
|
} |
|
|
} else printf("invalid wifstr.(%s) wiftype.%d cmpstr.%s\n",wifstr,wiftype,cmpstr); |
|
|
} |
|
|
} |
|
|
return(0); |
|
|
return(0); |
|
|
} |
|
|
} |
|
|