Browse Source

Test

etomic
jl777 7 years ago
parent
commit
052ee7d625
  1. 4
      iguana/exchanges/mm.c

4
iguana/exchanges/mm.c

@ -152,11 +152,11 @@ int main(int argc, const char * argv[])
{
OS_randombytes(privkey.bytes,sizeof(privkey));
bitcoin_priv2pub(ctx,pubkey33,coinaddr,privkey,0,60);
if ( strncmp(coinaddr+3,argv[2],len-1) == 0 )
if ( strncmp(coinaddr+4,argv[2],len-1) == 0 )
{
bitcoin_priv2wif(0,wifstr,privkey,188);
printf("i.%d %s -> %s wif.%s\n",i,bits256_str(str,privkey),coinaddr,wifstr);
if ( coinaddr[3+len-1] == argv[2][len-1] )
if ( coinaddr[4+len-1] == argv[2][len-1] )
break;
} //else printf("failed %s\n",wifstr);
}

Loading…
Cancel
Save