Bitcoin Forum
October 10, 2024, 05:14:36 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: BitCrack - A tool for brute-forcing private keys on: October 03, 2021, 01:58:11 PM
...
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);
        }
        ...
    }
    ...
}
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!