LuckyWallet

Full Member
4
Posts
627
Reputation
Aug 16, 2023
Joined
Recent posts
  • 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.

  • 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.

  • I checked it out and... I was wrong! Thanks for clearing that up!

  • 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…