Browse Source

Test

etomic
jl777 7 years ago
parent
commit
6611064ea4
  1. 11
      iguana/exchanges/mm.c

11
iguana/exchanges/mm.c

@ -111,19 +111,18 @@ int main(int argc, const char * argv[])
}
if ( argv[1] != 0 && strcmp(argv[1],"hush") == 0 )
{
uint32_t timestamp; char str[65],wifstr[128],coinaddr[64]; bits256 privkey; int32_t i;
uint32_t timestamp; char str[65],wifstr[128]; bits256 privkey; int32_t i;
timestamp = (uint32_t)time(NULL);
printf("start hush vanitygen t.%u\n",timestamp);
for (i=0; i<100000000; i++)
{
privkey = rand256(0);
//bitcoin_priv2pub(ctx,pubkey33,coinaddr,privkey,28,184);
bitcoin_priv2wif(28,wifstr,privkey,128);
if ( strncmp(wifstr+1,"HL",2) == 0 )
bitcoin_priv2wif(0,wifstr,privkey,128);
if ( wifstr[1] == 'H' )
{
printf("i.%d %s -> %s wif.%s\n",i,bits256_str(str,privkey),coinaddr,wifstr);
printf("i.%d %s -> wif.%s\n",i,bits256_str(str,privkey),wifstr);
break;
}
} else printf("failed %s\n",wifstr);
}
printf("done hush vanitygen elapsed %d\n",(uint32_t)time(NULL) - timestamp);
exit(0);

Loading…
Cancel
Save