|
|
@ -183,6 +183,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ |
|
|
|
init_hexbytes_noT(pub33str,G.LP_pubsecp,33); |
|
|
|
jaddstr(retjson,"pubsecp",pub33str); |
|
|
|
jadd(retjson,"coins",LP_coinsjson(LP_showwif)); |
|
|
|
LP_cmdcount++; |
|
|
|
return(jprint(retjson,1)); |
|
|
|
} |
|
|
|
// if passphrase api and passphrase is right, ignore userpass, use hass of passphrase
|
|
|
@ -198,8 +199,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ |
|
|
|
return(clonestr("{\"error\":\"authentication error you need to make sure userpass is set\"}")); |
|
|
|
if ( jobj(argjson,"userpass") != 0 ) |
|
|
|
jdelete(argjson,"userpass"); |
|
|
|
if ( LP_cmdcount++ == 0 ) |
|
|
|
printf("got first rpc command\n"); |
|
|
|
LP_cmdcount++; |
|
|
|
if ( strcmp(method,"passphrase") == 0 ) |
|
|
|
{ |
|
|
|
char coinaddr[64],pub33str[67]; |
|
|
|