Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: timurfirsoiv23 on September 04, 2018, 11:15:06 AM



Title: How to convert hash to difficulty in X11 algorithm
Post by: timurfirsoiv23 on September 04, 2018, 11:15:06 AM
I'm trying to write a miner for a new modified-X11 algorithm. As the title, my question is how to convert the final hash to difficulty?
I've been googling around but only saw how to convert difficulty & hashrate to $$$  ;D

Any help is appreciated!!!


Title: Re: How to convert hash to difficulty in X11 algorithm
Post by: Zorg33 on September 04, 2018, 11:52:27 AM
Diff = 2^N / Hash

Replace N with the binary length of the output of the hash function (usually 256)


Title: Re: How to convert hash to difficulty in X11 algorithm
Post by: timurfirsoiv23 on September 05, 2018, 08:43:49 AM
oh thanks, I thought that there is a little bit difference in calculating diff between algorithms.