Ask HN: Pseudocode for the Bitcoin Mining Algorithm?

https://news.ycombinator.com/item?id=6765619
by nighthawk • 13 years ago
9 1 13 years ago

I get the general gist of what problem must be solved for bitcoin mining, namely wanting to find a nonce that pairs with your data to result in a hash with x leading zeros where x is the current difficulty level.

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?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com