Ask HN: Pseudocode for the Bitcoin Mining Algorithm?
However, I'm having trouble finding the exact algorithm, which uses double SHA-256 encryption, etc.
Can someone give or point me to the full pseudo code for the mining algorithm?
However, I'm having trouble finding the exact algorithm, which uses double SHA-256 encryption, etc.
Can someone give or point me to the full pseudo code for the mining algorithm?
[+] [-] assliquor|12 years ago|reply
Basically, the ScanHash_CryptoPP(..) function does the actual hashing, and is called by the BitcoinMiner(..) function, which checks if the returned hash has the appropriate number of 0 bits.