Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Re: BitCrack - A tool for brute-forcing private keys
by
tamarind3
on 03/10/2021, 13:58:11 UTC
⭐ Merited by NotATether (1)
...
Can you please explain a bit more how's pika's random mode is working? I though it was using RNG. Can you explain how it gets starting points compared to original bitcrack? Tnx

Don't worry. It is using a RNG. NotATether did not fully understand the sourcecode and jumped to quick conclusions.

Code:
void CudaKeySearchDevice::generateStartingPoints()
{
    ...
    if(!_randomMode) {
        exponents.push_back(privKey);
    }

    for(uint64_t i = !_randomMode ? 1 : 0; i < totalPoints; i++) {

        if(_randomMode) {
             privKey = secp256k1::getRandomRange(_startExponent, _end);
        } else {
            privKey = privKey.add(_stride);
        }
        ...
    }
    ...
}