Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c047de5185
  1. 5
      iguana/SuperNET.c
  2. 2
      iguana/SuperNET_keys.c
  3. 2
      iguana/iguana_wallet.c

5
iguana/SuperNET.c

@ -1482,11 +1482,6 @@ FOUR_STRINGS(SuperNET,login,handle,password,permanentfile,passphrase)
calc_rmd160_sha256(rmd160,pubkey33,33);
init_hexbytes_noT(rmd160str,rmd160,20);
jaddstr(item,rmd160str,bits256_str(str,myinfo->persistent_priv));
item = cJSON_CreateObject();
bitcoin_pubkey33(myinfo->ctx,pubkey33,myinfo->privkey);
calc_rmd160_sha256(rmd160,pubkey33,33);
init_hexbytes_noT(rmd160str,rmd160,20);
jaddstr(item,rmd160str,bits256_str(str,myinfo->privkey));
walletitem = cJSON_CreateObject();
jadd(walletitem,"default",item);
argjson = cJSON_CreateObject();

2
iguana/SuperNET_keys.c

@ -291,8 +291,6 @@ void SuperNET_setkeys(struct supernet_info *myinfo,void *pass,int32_t passlen,in
}
RS_encode(myinfo->myaddr.NXTADDR,myinfo->myaddr.nxt64bits);
bitcoin_pubkey33(myinfo->ctx,pubkey33,myinfo->persistent_priv);
//btc_priv2pub(pubkey33,myinfo->persistent_priv.bytes);
//init_hexbytes_noT(pubkeystr,pubkey33,33);
bitcoin_address(myinfo->myaddr.BTC,0,pubkey33,33);
bitcoin_address(myinfo->myaddr.BTCD,60,pubkey33,33);
}

2
iguana/iguana_wallet.c

@ -401,7 +401,7 @@ int32_t iguana_loginsave(struct supernet_info *myinfo,struct iguana_info *coin,c
if ( (passphrase= jstr(loginjson,"passphrase")) != 0 )
{
_SuperNET_encryptjson(destfname,passphrase,0,myinfo->permanentfile,0,loginjson);
printf("loginsave.(%s) <= (%s)\n",destfname,newstr);
//printf("loginsave.(%s) <= (%s)\n",destfname,newstr);
//iguana_walletlock(myinfo);
}
free_json(loginjson);

Loading…
Cancel
Save