LuckyWallet
Full Member
4
Posts
627
Reputation
Aug 16, 2023
Joined
Recent posts
- Python Solo Miner for Fun and LearningNov 28, 2023
Another small tweak: I switched from hashlib to a pure Python implementation of SHA-256. Slower by about 3.5 times, but it helps understand the encoding better. Planning to use it as a base for my mining algorithm.
- Python Solo Miner for Fun and LearningNov 28, 2023
Made a few tweaks: 1) I called noncework 2**32 times instead of just 10 million. 2) Used the loop value as the nonce instead of random numbers. Could also integrate time to reset the root merkle less frequently.
- Python Solo Miner for Fun and LearningNov 28, 2023
I checked it out and... I was wrong! Thanks for clearing that up!
- Python Solo Miner for Fun and LearningNov 27, 2023
Thanks! I wanna practice coding for CPU/GPU mining too, so this is super helpful. Quick question: why double hash here? hash = hashlib.sha256(hashlib.sha256(binascii.unhexlify(blockheader)).digest()).digest() Is that a…