----------------------------------------------------------------------------
| 1264 | |
| 1265 | // ---------------------------------------------------------------------------- |
| 1266 | void VanitySearch::getCPUStartingKey(int thId,Int& key,Point& startP) { |
| 1267 | |
| 1268 | if (rekey > 0) { |
| 1269 | key.Rand(256); |
| 1270 | } else { |
| 1271 | key.Set(&startKey); |
| 1272 | Int off((int64_t)thId); |
| 1273 | off.ShiftL(64); |
| 1274 | key.Add(&off); |
| 1275 | } |
| 1276 | Int km(&key); |
| 1277 | km.Add((uint64_t)CPU_GRP_SIZE / 2); |
| 1278 | startP = secp->ComputePublicKey(&km); |
| 1279 | if(startPubKeySpecified) |
| 1280 | startP = secp->AddDirect(startP,startPubKey); |
| 1281 | |
| 1282 | } |
| 1283 | |
| 1284 | void VanitySearch::FindKeyCPU(TH_PARAM *ph) { |
| 1285 |