Bitcoin Forum
May 14, 2024, 10:22:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: why difficulty not in bits  (Read 706 times)
adam3us (OP)
Sr. Member
****
Offline Offline

Activity: 404
Merit: 360


in bitcoin we trust


View Profile WWW
April 17, 2013, 02:34:32 PM
Merited by ABCbits (3), nutildah (2), paid2 (1)
 #1

Hi

Digging myself out of the newbie jail. But a real question - why is difficulty not expressed in bits?

With hashcash I always used eg 20bits.  I think bitcoin is currently at 52.  As bitcoin mining is hashcash mining plus an extension to allow fractional bits (rather than to find k 0 bits, to find a number < 2^k where can be fractional). 

But its hard to be 100% certain if I even correctly converted that because this page is unnecessarily complex for a very simple actual problem: https://en.bitcoin.it/wiki/Difficulty

and bits are very easy to read.  If one looks at the hash output in hex just multiply the leading 0s by 4 (and the next nibble figure out if it is >7 = 4 bits, > 3 = 3 bits, > 1 = 2 bits and 1 = 1 bit (and obviously 0 would be another leading 0).  QED trivial, human comprehensible difficulty that can be handchecked.  That was part of the design aim for hashcash to simplify the computational, programming and human verification.

Adam

hashcash, committed transactions, homomorphic values, blind kdf; researching decentralization, scalability and fungibility/anonymity
1715682126
Hero Member
*
Offline Offline

Posts: 1715682126

View Profile Personal Message (Offline)

Ignore
1715682126
Reply with quote  #2

1715682126
Report to moderator
1715682126
Hero Member
*
Offline Offline

Posts: 1715682126

View Profile Personal Message (Offline)

Ignore
1715682126
Reply with quote  #2

1715682126
Report to moderator
1715682126
Hero Member
*
Offline Offline

Posts: 1715682126

View Profile Personal Message (Offline)

Ignore
1715682126
Reply with quote  #2

1715682126
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715682126
Hero Member
*
Offline Offline

Posts: 1715682126

View Profile Personal Message (Offline)

Ignore
1715682126
Reply with quote  #2

1715682126
Report to moderator
1715682126
Hero Member
*
Offline Offline

Posts: 1715682126

View Profile Personal Message (Offline)

Ignore
1715682126
Reply with quote  #2

1715682126
Report to moderator
1715682126
Hero Member
*
Offline Offline

Posts: 1715682126

View Profile Personal Message (Offline)

Ignore
1715682126
Reply with quote  #2

1715682126
Report to moderator
NewAgeCoins
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 17, 2013, 02:47:48 PM
 #2

I think the newbie area is the wrong place to post that Smiley
daemol
Member
**
Offline Offline

Activity: 75
Merit: 10



View Profile
April 17, 2013, 03:25:21 PM
 #3

Newbies are restricted to this section only  Sad
Fiyasko
Legendary
*
Offline Offline

Activity: 1428
Merit: 1001


Okey Dokey Lokey


View Profile
April 17, 2013, 03:31:53 PM
Merited by ABCbits (1)
 #4

Well, difficulty is a real number, its not a referance number
I fully agree that we need a more "human interpretable" form of a difficulty stat, Telling someone that the difficulty is 7,673,000 and that its going to rise up around by 1-2million more Really doesnt mean much to them, its just confusing to hear that "a bitcoin is now 7673000x harder to get than it was when it was first released" it really doesnt tell us much.

http://bitcoin-otc.com/viewratingdetail.php?nick=DingoRabiit&sign=ANY&type=RECV <-My Ratings
https://bitcointalk.org/index.php?topic=857670.0 GAWminers and associated things are not to be trusted, Especially the "mineral" exchange
adam3us (OP)
Sr. Member
****
Offline Offline

Activity: 404
Merit: 360


in bitcoin we trust


View Profile WWW
April 17, 2013, 04:10:58 PM
 #5

Well, difficulty is a real number, its not a referance number
I fully agree that we need a more "human interpretable" form of a difficulty stat, Telling someone that the difficulty is 7,673,000 and that its going to rise up around by 1-2million more Really doesnt mean much to them, its just confusing to hear that "a bitcoin is now 7673000x harder to get than it was when it was first released" it really doesnt tell us much.

Right thats approximately meaningless.  Now the original or minimal difficulty is 2^32 so 7,673,000 x 2^32 is approx 2^55.  How easy is that in comparison because 7,673,000 ~ 2^23.  (I guess I must've mistranslated it before 55 not 52 bits)

And when you see a bitcoin in hex (like with hashcash because that is what the coin is) you can visually *see* those 55 bits.  This is the latest hash from the block explorer:

http://blockexplorer.com/block/00000000000000e3d3268e05a9901759c1452590d0838a80aeb8abaea59f1e9f

and bingo I can count 0s (14 of them) multiply by 4 (bits per hex nibble) and I know that is a 56bit hashcash collision.  (You get lucky and an extra 1 bit half the time, 2 bits 1/2 time etc).

Adam

hashcash, committed transactions, homomorphic values, blind kdf; researching decentralization, scalability and fungibility/anonymity
adam3us (OP)
Sr. Member
****
Offline Offline

Activity: 404
Merit: 360


in bitcoin we trust


View Profile WWW
April 17, 2013, 04:17:26 PM
Merited by nutildah (1), ABCbits (1)
 #6

I think the newbie area is the wrong place to post that Smiley

Indeed and being the person who invented the bitcoin mining function I was mildly irritated to be dumped in a newbie section.  I was enjoying USENET flame wars and newbie jokes probably before the average participant of this forum was born Smiley  (No slight to other internet-time geriatrics like myself on here).

Anyway rather than post hello and following up to myself 5x I thought I'd say something that was on my mind as irritating about the bitcoin wiki explanation of various things.  I can always re-post it later on.

Adam

ps thanks for the op for another reply Wink

hashcash, committed transactions, homomorphic values, blind kdf; researching decentralization, scalability and fungibility/anonymity
memvola
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1002


View Profile
April 18, 2013, 03:43:51 PM
 #7

why is difficulty not expressed in bits?

Naive question: Wouldn't that mean that difficulty can only be halved or doubled at a time? That's bit of a problem.

Maybe they could be expressed in 1/n2 bits. That wouldn't make it any more comprehensible of course, but would help with the problem of difficulty adjustments getting more precise as difficulty increases.

(btw, mods can move newbie discussions to proper forums on demand)
NewAgeCoins
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
April 18, 2013, 08:13:43 PM
 #8

Quote
Anyway rather than post hello and following up to myself 5x I thought I'd say something that was on my mind as irritating about the bitcoin wiki explanation of various things.  I can always re-post it later on.


I hope you get a chance to post that question here:
https://bitcointalk.org/index.php?board=6.0

I'm afraid you won't get an answer from Satoshi Smiley  But I'd be curious what Gavin, Jeff Garzik, etc say.
bradford
Newbie
*
Offline Offline

Activity: 12
Merit: 0



View Profile
April 18, 2013, 08:28:27 PM
 #9

I'm just jumping in with my naive opinion, so please criticize as necessary.
Why not reference difficulty in terms of number of leading zeroes for the target hash?

For instance "our difficulty level is at 14 leading zeroes of precision"
I realize that the jump from each zero to the next is not linear, but wouldn't it be useful for describing "epochs" of difficulty?
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!