Bitcoin Forum
May 30, 2024, 12:13:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How are the puzzles defined for creating a Bitcoin block?  (Read 823 times)
BitcoinArsenal (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 556


View Profile
February 18, 2017, 11:16:34 AM
 #1

I'm trying to understand how block generation works with Bitcoin. What I understand each block is calculated by solving a puzzle through calculation. If a miner solves this puzzle as fastest, next block is created. What is not clear to me, how are the puzzles created for each block?

Are these simple hashes, the miners compute, and which are being tested against an algorithm? If a hash is tested positive against the algorithm, then a new block is created?

If this is true, then I do not understand how the difficulty is included in the algorithm.
xhomerx10
Legendary
*
Offline Offline

Activity: 3864
Merit: 8192



View Profile
February 18, 2017, 12:57:14 PM
 #2

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
February 18, 2017, 04:07:41 PM
 #3

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


To be exactly this is a Puzzle.. its called cryptographic Puzzle.. this is used as "Anti dos" atack on Webservers for example.. the Client has to "Invest" computimg Power to be able to communicate with Web Server..
It Works on the right principe.. you have to find Hash with X starting 0's... X equals difficulty.

xhomerx10
Legendary
*
Offline Offline

Activity: 3864
Merit: 8192



View Profile
February 18, 2017, 04:25:22 PM
Last edit: February 18, 2017, 07:03:43 PM by xhomerx10
 #4

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


To be exactly this is a Puzzle.. its called cryptographic Puzzle.. this is used as "Anti dos" atack on Webservers for example.. the Client has to "Invest" computimg Power to be able to communicate with Web Server..
It Works on the right principe.. you have to find Hash with X starting 0's... X equals difficulty.

 It's not a puzzle.  There is no amusement or entertainment in brute-forcing a mathematical function.  This was a term coined to make it easy to explain to the layman.  It's as much a puzzle as is grinding coffee to make espresso.

Edit: IMHO
AgentofCoin
Legendary
*
Offline Offline

Activity: 1092
Merit: 1001



View Profile
February 18, 2017, 08:32:32 PM
 #5

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


To be exactly this is a Puzzle.. its called cryptographic Puzzle.. this is used as "Anti dos" atack on Webservers for example.. the Client has to "Invest" computimg Power to be able to communicate with Web Server..
It Works on the right principe.. you have to find Hash with X starting 0's... X equals difficulty.

 It's not a puzzle.  There is no amusement or entertainment in brute-forcing a mathematical function.  This was a term coined to make it easy to explain to the layman.  It's as much a puzzle as is grinding coffee to make espresso.

Edit: IMHO


Yes, finding the next block is not a true puzzle, but is basically just randomly guessing.
Data from the previous block is hashed with a random element (the "nonce") in order
to get a result that the whole network can verify publicly.

A puzzle would imply that the solver is attempting to "find a block" by reasoning.
It is really closer to a trial and error race of guessing. Guess right, you win.

A cryptographic puzzle is more inline with the encryption that which Bitcoin's
public/private key security relies. When it comes to mining, it is just simple hashing.

I support a decentralized & unregulatable ledger first, with safe scaling over time.
Request a signed message if you are associating with anyone claiming to be me.
Mometaskers
Hero Member
*****
Offline Offline

Activity: 1764
Merit: 584



View Profile
February 18, 2017, 09:31:39 PM
 #6

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


What are your suggested reading materials for this? I only use bitcoin for sending and receiving money and so don't know any of the technical stuff related to it. I only have vague idea of the blockchain and the only thing I now about mining is that they solve problems. When I see debates in thread there's plenty of jargon thrown around.
xhomerx10
Legendary
*
Offline Offline

Activity: 3864
Merit: 8192



View Profile
February 18, 2017, 11:32:45 PM
 #7

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


What are your suggested reading materials for this? I only use bitcoin for sending and receiving money and so don't know any of the technical stuff related to it. I only have vague idea of the blockchain and the only thing I now about mining is that they solve problems. When I see debates in thread there's plenty of jargon thrown around.

 I'm sorry.  I'm on the road right now so I'm working from a tablet.  I'm sure I have a few links on my desktop at home I can post later (it'll be a few days).  If I had save all the stuff I had to read to figure out what mining really is, I could have written a book on the subject. 
 I wonder if someone hasn't already linked this information on Bitcointalk?
Mometaskers
Hero Member
*****
Offline Offline

Activity: 1764
Merit: 584



View Profile
February 19, 2017, 05:20:37 PM
 #8

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


What are your suggested reading materials for this? I only use bitcoin for sending and receiving money and so don't know any of the technical stuff related to it. I only have vague idea of the blockchain and the only thing I now about mining is that they solve problems. When I see debates in thread there's plenty of jargon thrown around.

 I'm sorry.  I'm on the road right now so I'm working from a tablet.  I'm sure I have a few links on my desktop at home I can post later (it'll be a few days).  If I had save all the stuff I had to read to figure out what mining really is, I could have written a book on the subject. 
 I wonder if someone hasn't already linked this information on Bitcointalk?


Probably hidden under a lot of thread? Smiley The threads on the first page are always those that have recent activity. I find that a bit annoying since sometimes I would start to read a thread and realize it was from long ago, like 2011 or something and it was only on the first page because someone did a necro. I dunno why they don't allow sorting it by date created. Guess I really have to man up and look for Satoshi's whitepaper. Crossing my fingers that my head don't explode as I read it. Cheesy
xhomerx10
Legendary
*
Offline Offline

Activity: 3864
Merit: 8192



View Profile
February 19, 2017, 05:36:42 PM
 #9

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


What are your suggested reading materials for this? I only use bitcoin for sending and receiving money and so don't know any of the technical stuff related to it. I only have vague idea of the blockchain and the only thing I now about mining is that they solve problems. When I see debates in thread there's plenty of jargon thrown around.

 I'm sorry.  I'm on the road right now so I'm working from a tablet.  I'm sure I have a few links on my desktop at home I can post later (it'll be a few days).  If I had save all the stuff I had to read to figure out what mining really is, I could have written a book on the subject. 
 I wonder if someone hasn't already linked this information on Bitcointalk?


Probably hidden under a lot of thread? Smiley The threads on the first page are always those that have recent activity. I find that a bit annoying since sometimes I would start to read a thread and realize it was from long ago, like 2011 or something and it was only on the first page because someone did a necro. I dunno why they don't allow sorting it by date created. Guess I really have to man up and look for Satoshi's whitepaper. Crossing my fingers that my head don't explode as I read it. Cheesy

 I do have the link to where I was schooled on this!

https://bitcointalk.org/index.php?topic=1496687.0

And I'm still learning Wink
Mometaskers
Hero Member
*****
Offline Offline

Activity: 1764
Merit: 584



View Profile
February 20, 2017, 12:42:35 PM
 #10

It's not a puzzle.  it is the SHA256 hashing algorithm designed by the NSA.
You keep hashing the block data plus a nonce until you find a value lower than the target. That's the solution.
Oh the target is continually adjusted according to the network hashing rate- every 2016 blocks.
 You haven't read the right material yet.


What are your suggested reading materials for this? I only use bitcoin for sending and receiving money and so don't know any of the technical stuff related to it. I only have vague idea of the blockchain and the only thing I now about mining is that they solve problems. When I see debates in thread there's plenty of jargon thrown around.

 I'm sorry.  I'm on the road right now so I'm working from a tablet.  I'm sure I have a few links on my desktop at home I can post later (it'll be a few days).  If I had save all the stuff I had to read to figure out what mining really is, I could have written a book on the subject. 
 I wonder if someone hasn't already linked this information on Bitcointalk?


Probably hidden under a lot of thread? Smiley The threads on the first page are always those that have recent activity. I find that a bit annoying since sometimes I would start to read a thread and realize it was from long ago, like 2011 or something and it was only on the first page because someone did a necro. I dunno why they don't allow sorting it by date created. Guess I really have to man up and look for Satoshi's whitepaper. Crossing my fingers that my head don't explode as I read it. Cheesy

 I do have the link to where I was schooled on this!

https://bitcointalk.org/index.php?topic=1496687.0

And I'm still learning Wink


Thanks, I'll try this.
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!