Bitcoin Forum
November 06, 2024, 07:49:17 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: what is the actual bitcoin algorithm  (Read 675 times)
timharvey (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 02, 2014, 05:37:01 PM
 #1

Can you help in answering the following questions:-
1. What is the actual algorithm?
2. I'm told a coin is mined every ten minutes, how is this controlled since the number of people mining varies during each day?
3.Why / how does the algorithm become more difficult with time?
4. If new coins are being mined or discovered, I take it not all 21 million currently exist?
5.If 21 million don't exist at present how can we be sure they actually exist and who knows what they are?
6. Why can't it go beyond 21 million, surely there is another solution to the 21 millionth blockchain?
Thanks
Tim
Andi
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 02, 2014, 06:44:13 PM
 #2

This Video will explain everything http://www.youtube.com/watch?v=Lx9zgZCMqXE
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
January 02, 2014, 06:56:32 PM
 #3

1) Which algorithm bitcoin uses a couple?

2) Exactly that isn't exact science but that is what it is suppose to be happening, sometimes it takes a little longer or sometimes more blocks are produced in a short period of time.

3) https://en.bitcoin.it/wiki/Difficulty

4) We are currently a little more than half way.

5) Cause the code and nodes all have to agree to change that.

6) Cause the code and nodes all agree not to allow more than 21 million.
Scorpius
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 02, 2014, 07:51:56 PM
 #4

Can you help in answering the following questions:-
1. What is the actual algorithm?
2. I'm told a coin is mined every ten minutes, how is this controlled since the number of people mining varies during each day?
3.Why / how does the algorithm become more difficult with time?
4. If new coins are being mined or discovered, I take it not all 21 million currently exist?
5.If 21 million don't exist at present how can we be sure they actually exist and who knows what they are?
6. Why can't it go beyond 21 million, surely there is another solution to the 21 millionth blockchain?
Thanks
Tim
1.- I think it's SHA256 applied twice to the block header.  The block header is constructed concatenating a lot of stuff like the previous block hash, the current time, the nonce of course, the hash of the merkle root of transactions.  I said I think because I have studied more scrypt currencies that sha256 currencies.  The hash must be lower than a target; let's say the hash has to start with an specified number of zeroes.

2.- The difficulty changes every x blocks or something (that is the hash has to have more zeroes at the left to be correct).  If blocks have been mined in less than 10 minutes in average the difficulty will rise.

3.- The "target" changes: the hash have to have more zeroes to the left.  Example.  Let's say difficulty is 0.00048.  The target is 000007fff8000000000000000000000000000000000000000000000000000000.  A mined block looked like this:
Code:
[2014-01-02 15:15:03] DEBUG: hash <= target
Hash:   000001132dbd8678607c314bb4340351b9641551822ebfc77dfccb62cf7ce575
Target: 000007fff8000000000000000000000000000000000000000000000000000000

The current target is 0000000000000003071f00000000000000000000000000000000000000000000 so good luck finding a hash that starts with 15 zeroes in less than 10 minutes!!!!

4.- They don't.

5.- The code of the bitcoin daemon of the whole world avoids that.

6.- Why bother? The last coins will be discover in the year 2140.
odolvlobo
Legendary
*
Offline Offline

Activity: 4494
Merit: 3402



View Profile
January 02, 2014, 08:02:12 PM
 #5

Can you help in answering the following questions:-
1. What is the actual algorithm?
2. I'm told a coin is mined every ten minutes, how is this controlled since the number of people mining varies during each day?
3.Why / how does the algorithm become more difficult with time?
4. If new coins are being mined or discovered, I take it not all 21 million currently exist?
5.If 21 million don't exist at present how can we be sure they actually exist and who knows what they are?
6. Why can't it go beyond 21 million, surely there is another solution to the 21 millionth blockchain?

First and most importantly, mining is the process of validating transactions and adding them to the blockchain.

1. The explanation of mining as "running complicated algorithms to solve a puzzle" is just wrong. It really works more like a lottery. Part of mining involves repeatedly guessing a number that must meet a certain criteria. When a miner guesses a number that meets the criteria, they are allowed to add the transactions to the block chain and receive the block reward and fees.

2 & 3. A block is added every ten minutes on average. The difficulty of the criteria is adjusted every 2016 blocks (approximately every two weeks) to maintain that average. If the actual time during the previous 2016 blocks averaged less than 10 minutes, then the difficulty is increased. If the actual time averaged more than 10 minutes, then the difficulty is lowered. Since all the miners are guessing at the same time, the amount of time to guess a good number depends on the number of miners and their total "hash rate".

4. The meaning of "exist" can be ambiguous. For example, you could say that 21 million exist, but only 12 million have been made available so far.

5 & 6. The bitcoin protocol is set up so that fewer and fewer bitcoins are created as time goes on. Eventually, the block reward goes to 0 around the time that there are 21 million bitcoins in circulation.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
pdaddy
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
January 03, 2014, 05:27:54 AM
 #6

I really enjoyed this video about bitcoins and can recommend viewing it.
timewave0
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
January 03, 2014, 05:42:17 AM
 #7

You'll want to understand the concepts of hash algorithms and asymmetric cryptography before attempting to understand bitcoin. The video might explain these things, but I haven't watched it. These are useful concepts anyway, if you're interested in how a computer can validate your password without storing it, for example. Or how your computer knows it's communicating with your bank instead of a hacker recording everything and relaying requests and responses to/from the bank (referred to in the security community as a man-in-the-middle attack). Or how the bank is able to send you data that only you can read, and vice-versa.
limewall
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 03, 2014, 07:20:40 AM
 #8

This Video will explain everything http://www.youtube.com/watch?v=Lx9zgZCMqXE

This video is quite amazing and clear.

I feel very secure in the way Bitcoins work, we just need more stability in the price.
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!