Bitcoin random number generator
bitcoin is actually an e-coin data coin proced by P2P batch software, which belongs to a network virtual asset so bitcoin is also called bitcoin. It is generated by a set of cipher codes through complex algorithms. This rule is not interfered by any person or organization. Anyone can download, run or participate in the manufacture of bitcoin. One of the biggest characteristics of bitcoin is that it cannot be forged< you can make money in the bitcoin market by investing time and money
when you spend time on websites, you can visit these websites every few minutes to get a small amount of bitcoin. Therefore, we can do this if we have time. If you want to earn more, you should invest money in the early stage. Bitcoin also has a special casino, so you can earn more by luck
there are basically two kinds of attacks, one is dictionary attack, the other is brute force attack
dictionary attack is to use common passwords and their simple variants as keys one by one. As long as your pass phrase is not hard enough, the possibility of successful attack is very high. So if you want to use this, you need to popularize the knowledge of cryptography first, and don't think it's very safe to add a long password
if you don't use the wallet generated by pass phrase, you can only crack it violently, which is equivalent to enumerating all the possible keys. At present, this is impossible, even if the electronic computer is becoming more and more powerful. However, quantum computer can do it theoretically, but don't worry too much. If such a powerful quantum computer comes out, it will not only endanger bitcoin
at the same time, bitcoin has a second layer of protection: if an address only accepts bitcoin but does not output it, its public key is confidential, that is to say, no one else can see the box, only the box number. At present, the process of decing the box from the box number can't even be done by quantum computer. In other words, if there is a quantum computer, bitcoin has a last line of Defense: it's temporarily safe to transfer your money to a new address
finally, some time ago, the wallet generated by the Android client was attacked because of a bug in the underlying random number generator. In fact, this function is not random securerandom, which Google quickly admitted and fixed. It's hard to say whether this kind of thing will happen again, but I don't think we need to worry too much.
1. Mining can not only proce bitcoin, but also guarantee transaction information
similarly, a mathematical system contains 21 million mathematical problems, so we need to constantly seek the special solution of each mathematical problem through a huge amount of calculation. In addition, the special solution is unique
mining can not only increase the supply of bitcoin money, but also protect the security of bitcoin transactions and prevent fraulent transactions. In terms of process, bitcoin network is a point-to-point payment system, and anyone can trade through the transaction program
in order to ensure that the transaction process is truthfully recorded, the role of "miner" is required to be responsible for recording bitcoin transaction information. The time interval is 10 minutes. The best recorded transaction records among miners will be packaged and stored in a new block, and the corresponding miners will also receive a certain amount of bitcoin rewards
2. The mining process is extremely complex, which is beyond human power
the specific process is as follows. When a miner listens to the transaction, he will first verify the transaction information. The verified transactions will be recorded by miners and stored in their own database. There may be thousands of miners in the world doing the same thing, but every ten minutes, only one miner has the right to create a new block, so that the transaction information recorded by himself can be recognized and stored permanently
next, miners need to fight for the right to keep accounts. This is a competition of computing power. The core of this competition is to use computers to complete a large number of calculation tasks and find a super difficult random number. This random number is the special solution of the equation mentioned in the first paragraph. The miner who calculates the correct random number first wins. According to the rules of the game, the probability of a miner getting the accounting right is directly proportional to the proportion of his computing power in the total computing power of the whole network. In other words, the probability of finding the random number is equivalent to throwing out 100 million dice, and the total number of dice is less than 150 million. Therefore, mining requires a large number of computers, installation of specific algorithm software, repeated operation day and night, not human
3. Bitcoin mining is actually "villagers' bookkeeping"
maybe some netizens still don't understand, let's take an example. In a village, the villagers often borrow money from each other, even if they write a written document, there is a risk of default. Then, every time there is a loan behavior in the village, we will use the village trumpet to inform everyone that all the villagers (miners) will record all the transaction records in their own account books.
Every other time, the bitcoin system will generate a random code on the system node. All computers in the Internet can search for this code. Whoever finds this code will generate a block and get a bitcoin. This process is often called mining
at present, one bitcoin is divided into eight decimal places based on the current data structure, that is, 0.00000001btc. The smallest unit of bitcoin g by miners is 0.00000001btc
generally speaking, bitcoin is like a gold mountain with a total amount of 21 million gold coins. To get it, players need to use the computing power of the computer to calculate a group of numbers according to the existing algorithms
extended data:
unlike all currencies, bitcoin does not rely on specific currency institutions to issue. It is generated by a large number of calculations based on specific algorithms. Bitcoin economy uses the distributed database composed of many nodes in the whole P2P network to confirm and record all transactions, And the use of cryptography design to ensure the security of all aspects of money circulation
the decentralized feature and algorithm of P2P can ensure that it is impossible to artificially control the value of bitcoin by mass manufacturing. The design based on cryptography can make bitcoin only be transferred or paid by the real owner. This also ensures the anonymity of money ownership and circulation transactions. The biggest difference between bitcoin and other virtual currencies is that the total amount of bitcoin is very limited and it has a strong scarcity
elliptic curve digital signature algorithm is mainly used in the generation process of bitcoin public key and private key, which is the cornerstone of bitcoin system. SHA-256 hash algorithm is mainly used in the workload proof mechanism of bitcoin
the principle of bitcoin generation is the special solution generated by complex operation, and mining is the process of finding the special solution. However, the total number of bitcoin is only 21 million, and with the continuous mining of bitcoin, the more difficult it will be to proce bitcoin, and the cost of acquiring bitcoin may be higher than the price of bitcoin itself
the bitcoin block consists of a block header and the transaction list contained in the block. The size of the block header is 80 bytes, which is composed of 4-byte version number, 32 byte hash value of the previous block, 32 byte Merkle root hash, 4-byte timestamp (current time), 4-byte current difficulty value and 4-byte random number. A block header with a fixed length of 80 bytes is the input string used to prove the workload of bitcoin. Constantly change the random number in the block header, that is, the value of nonce, and do double sha256 operation on the block header after each change, and compare the result value with the target value of the current network. If it is less than the target value, the problem is solved successfully, and the workload is proved to be complete
the essence of bitcoin is actually the unique solution of a set of equations generated by a bunch of complex algorithms. Bitcoin is the first distributed virtual currency in the world, which has no specific distribution center. The network of bitcoin is composed of all users, because there is no center to ensure the security of data.