Browse Source

Test

etomic
jl777 7 years ago
parent
commit
014b1b3dd7
  1. 2
      iguana/exchanges/LP_etomic.c
  2. 2
      iguana/exchanges/LP_privkey.c

2
iguana/exchanges/LP_etomic.c

@ -81,7 +81,7 @@ int32_t LP_etomic_priv2pub(uint8_t *pub64,bits256 privkey)
printf("priv2pub got %s\n",pubstr); printf("priv2pub got %s\n",pubstr);
if ( strlen(pubstr) == 128 && pubstr[0] == '0' && pubstr[1] == 'x' ) if ( strlen(pubstr) == 128 && pubstr[0] == '0' && pubstr[1] == 'x' )
{ {
decode_hex(pub33,64,pubstr+2); decode_hex(pub64,64,pubstr+2);
retval = 64; retval = 64;
} }
free(pubstr); free(pubstr);

2
iguana/exchanges/LP_privkey.c

@ -301,7 +301,7 @@ bits256 LP_privkeycalc(void *ctx,uint8_t *pubkey33,bits256 *pubkeyp,struct iguan
if ( memcmp(check64,coin->pubkey33+1,32) == 0 ) if ( memcmp(check64,coin->pubkey33+1,32) == 0 )
{ {
printf("pubkey33 matches!\n"); printf("pubkey33 matches!\n");
if ( LP_etomic_pub2addr(checkaddr,check33) > 0 ) if ( LP_etomic_pub2addr(checkaddr,check64) > 0 )
printf("addr is (%s)\n",checkaddr); printf("addr is (%s)\n",checkaddr);
else printf("error getting addr\n"); else printf("error getting addr\n");
} else printf("pubkey 64 mismatch\n"); } else printf("pubkey 64 mismatch\n");

Loading…
Cancel
Save