Bitcoin Forum
May 24, 2024, 07:02:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / bitcoin wiki: target calculation mistake? on: February 08, 2018, 12:02:58 AM
Hi all, new to bitcoin so just been doing a bunch of reading lately, mainly on the bitcoin wiki.

I'm confused about the description here
https://en.bitcoin.it/wiki/Hashcash#Work.2C_difficulty_.26_cryptographic_security

The page contains the equation

difficulty = target / 0xFFFF0000

which implies that at difficulty = 1 the target would be 0xFFFF0000. But in fact at difficulty 1 the target is (https://en.bitcoin.it/wiki/Target#What_is_the_maximum_target.3F)

0x00000000FFFF0000000000000000000000000000000000000000000000000000
or
0x00000000FFFF*2^208 ~= 2^224

I think the contributor is confusing the value of the target with the amount of work required to find a hash below the target. I think the equation above should instead be
D = target / (2^256 / 0xFFFF0000) ~= target / 2^224

Can anyone comment on this? Sorry if I'm misinterpreting the syntax or some other mistake on my part. Cheers.
2  Other / Bitcoin Wiki / Re: Request edit privileges here on: February 07, 2018, 11:46:30 PM
Hi, requesting edit privileges. Thanks.

bitcoin wiki username: michael_a
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!