Bitcoin Forum
November 14, 2024, 07:02:57 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Basic Bitcoin Generation Techniques???  (Read 1501 times)
gigabytecoin (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
March 08, 2011, 09:43:05 AM
 #1

Can somebody please explain the basics as to how bitcoins are generated?

What are the very minimum requirements for generating bitcoins in any programming language?

I assume it goes something like...

1. Download block of hashed information to crack from the network (where exactly?)
2. Repeat mathematical process on your machine until you crack it (what process?)
3. Submit for verfication (to where?)
4. Rinse and repeat?

Any information (or links to previous threads a noob might not know of?) you can provide would be greatly appreciated!
elFarto
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 08, 2011, 09:51:51 AM
 #2

From my understanding, it goes something like this:

1.The client creates a new block, containing the previous block's hash, the current outstanding transactions, and a nonce (among other things).
2. The client calculates the hash for this new block:
    a) If it's less than the difficulty it publishes that block to all it's peers.
    b) If it's above the difficulty it increments the nonce and tries again.

Verification is done by all the peers. They will only accept a block if it has the correct hash.
All the existing blocks are downloaded from the peers.

Regards
elFarto
gigabytecoin (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
March 08, 2011, 10:20:37 AM
 #3

Thanks for the quick response elFarto!

How exactly would I know the previous block's hash? Is it posted somewhere once it is found? And which "block" are we talking about? The lottery (+50BTC) block? Or any block in particular?
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1181


View Profile WWW
March 08, 2011, 10:23:15 AM
 #4

You should read https://en.bitcoin.it/wiki/Block_hashing_algorithm and https://en.bitcoin.it/wiki/Block_chain. The blocks in the block chain indeed have two functions: 1) ordering transactions and 2) generating new bitcoins.

I do Bitcoin stuff.
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!