MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / getCPUStartingKey

Method getCPUStartingKey

Vanity.cpp:1266–1282  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1264
1265// ----------------------------------------------------------------------------
1266void 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
1284void VanitySearch::FindKeyCPU(TH_PARAM *ph) {
1285

Callers

nothing calls this directly

Calls 6

RandMethod · 0.80
ShiftLMethod · 0.80
ComputePublicKeyMethod · 0.80
AddDirectMethod · 0.80
SetMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected