| 3103 | DWORD WINAPI thread_process_vanity(LPVOID vargp) { |
| 3104 | #else |
| 3105 | void *thread_process_vanity(void *vargp) { |
| 3106 | #endif |
| 3107 | struct tothread *tt; |
| 3108 | Point pts[CPU_GRP_SIZE]; |
| 3109 | Point endomorphism_beta[CPU_GRP_SIZE]; |
| 3110 | Point endomorphism_beta2[CPU_GRP_SIZE]; |
| 3111 | Point endomorphism_negeted_point[4]; |
| 3112 | |
| 3113 | Int dx[CPU_GRP_SIZE / 2 + 1]; |
| 3114 | |
| 3115 | IntGroup *grp = new IntGroup(CPU_GRP_SIZE / 2 + 1); |
| 3116 | Point startP; |
| 3117 | Int dy; |
| 3118 | Int dyn; |
| 3119 | Int _s; |
| 3120 | Int _p; |
| 3121 | Point pp; //point positive |
| 3122 | Point pn; //point negative |
| 3123 | int l,pp_offset,pn_offset,i,hLength = (CPU_GRP_SIZE / 2 - 1); |
| 3124 | uint64_t j,count; |
| 3125 | Point R,temporal,publickey; |
| 3126 | int thread_number,continue_flag = 1,k; |
| 3127 | char *hextemp = NULL; |
| 3128 | char publickeyhashrmd160[20]; |
| 3129 | char publickeyhashrmd160_uncompress[4][20]; |
| 3130 | |
| 3131 | char publickeyhashrmd160_endomorphism[12][4][20]; |
| 3132 | |
| 3133 | Int key_mpz,temp_stride,keyfound; |
| 3134 | tt = (struct tothread *)vargp; |
| 3135 | thread_number = tt->nt; |
| 3136 | free(tt); |
| 3137 | grp->Set(dx); |
| 3138 | |
| 3139 | |
| 3140 | //if FLAGENDOMORPHISM == 1 and only compress search is enabled then there is no need to calculate the Y value value |
| 3141 | |
| 3142 | bool calculate_y = FLAGSEARCH == SEARCH_UNCOMPRESS || FLAGSEARCH == SEARCH_BOTH; |
| 3143 | |
| 3144 | /* |
| 3145 | if(FLAGDEBUG && thread_number == 0) { |
| 3146 | printf("[D] vanity_rmd_targets = %i fillllll\n",vanity_rmd_targets); |
| 3147 | printf("[D] vanity_rmd_total = %i\n",vanity_rmd_total); |
| 3148 | for(i =0; i < vanity_rmd_targets;i++) { |
| 3149 | printf("[D] vanity_rmd_limits[%li] = %i\n",i,vanity_rmd_limits[i]); |
| 3150 | |
| 3151 | } |
| 3152 | printf("[D] vanity_rmd_minimun_bytes_check_length = %i\n",vanity_rmd_minimun_bytes_check_length); |
| 3153 | } |
| 3154 | */ |
| 3155 | |
| 3156 | |
| 3157 | do { |
| 3158 | if(FLAGRANDOM){ |
| 3159 | key_mpz.Rand(&n_range_start,&n_range_end); |
| 3160 | } |
| 3161 | else { |
| 3162 | if(n_range_start.IsLower(&n_range_end)) { |
nothing calls this directly
no test coverage detected