Talk:Block hashing algorithm: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
mNo edit summary
Taras (talk | contribs)
m Unsigned comment
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
What is licensing/copyright information on that code? Public domain?
What is licensing/copyright information on that code? Public domain? {{unsigned|Jrmithdobbs|20:14, 9 June 2011}}


"Because transactions aren't hashed directly, hashing a block with 1 transaction takes exactly the same amount of effort as hashing a block with 10,000 transactions."
"Because transactions aren't hashed directly, hashing a block with 1 transaction takes exactly the same amount of effort as hashing a block with 10,000 transactions."
Line 6: Line 6:


"These are hashed only indirectly through the Merkle root. Because transactions aren't hashed directly, hashing a block with 1 transaction takes exactly the same amount of effort as hashing a block with 10,000 transactions, once the Merkle root of those transactions is calculated." [[User:Therealplato|Therealplato]] 23:41, 28 January 2012 (GMT)
"These are hashed only indirectly through the Merkle root. Because transactions aren't hashed directly, hashing a block with 1 transaction takes exactly the same amount of effort as hashing a block with 10,000 transactions, once the Merkle root of those transactions is calculated." [[User:Therealplato|Therealplato]] 23:41, 28 January 2012 (GMT)
I added PHP code this code will help beginners with what is going on. The code is simple and well documented anyone regardless of PHP knowledge should be able to read this and know how to hash Bitcoins. [[User:RomanKnight|RomanKnight]] 10:23, 11 January 2014 (EST)

Latest revision as of 00:30, 15 August 2014

What is licensing/copyright information on that code? Public domain? — Preceding unsigned comment added by Jrmithdobbs (talkcontribs) at 20:14, 9 June 2011

"Because transactions aren't hashed directly, hashing a block with 1 transaction takes exactly the same amount of effort as hashing a block with 10,000 transactions."

Doesn't it take more effort to calculate the Merkle root for 10,000 transactions than it does than for 1 transaction? Of course, you only have to do this once per block, but it's misleading. It seems you're using "hashing a block" to specifically mean the (iterative) hash calculation, not the process of block generation. I recommend rewording to :

"These are hashed only indirectly through the Merkle root. Because transactions aren't hashed directly, hashing a block with 1 transaction takes exactly the same amount of effort as hashing a block with 10,000 transactions, once the Merkle root of those transactions is calculated." Therealplato 23:41, 28 January 2012 (GMT)

I added PHP code this code will help beginners with what is going on. The code is simple and well documented anyone regardless of PHP knowledge should be able to read this and know how to hash Bitcoins. RomanKnight 10:23, 11 January 2014 (EST)