Bitcoin Forum
May 18, 2024, 03:26:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to convert hash to difficulty in X11 algorithm  (Read 95 times)
timurfirsoiv23 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 04, 2018, 11:15:06 AM
 #1

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 $$$  Grin

Any help is appreciated!!!
Zorg33
Jr. Member
*
Offline Offline

Activity: 144
Merit: 2


View Profile
September 04, 2018, 11:52:27 AM
 #2

Diff = 2^N / Hash

Replace N with the binary length of the output of the hash function (usually 256)
timurfirsoiv23 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 05, 2018, 08:43:49 AM
 #3

oh thanks, I thought that there is a little bit difference in calculating diff between algorithms.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!