Bitcoin integer
the feature of sha256 algorithm used in bitcoin is that it's easy to verify the known answers correctly, but it's very troublesome to get the answers, and you need to try them one by one. The miner who got the answer first was recognized by everyone as having snatched the right to keep accounts, and the reward was given to him. Let's continue to grab the bookkeeping right of the next question
simply speaking, the significance of these calculations only lies in ensuring the stability and security of the whole system, and has no more significance. It is not comprehensive to regard bitcoin as a by-proct of computing. The generation and issuance of bitcoin, all the transactions and circulation in the bitcoin chain, and the stability of the bitcoin system are all the purposes of computing. Of course, in addition to maintaining the system, it does not proce other value and procts. This is also a black spot where bitcoin is accused of not being environmentally friendly and wasting resources
in general, bitcoin, as a milestone blockchain digital currency, comes from the huge value of a large amount of computing power investment and user trust. There is no doubt about that.
It's about 37 yuan
let me first introce the reward mechanism of bitcoin system
bitcoin can basically dig out a block every 10 minutes through system settings. The reward for each block is given to the miners who dig out the block. The miner who digs out the block is called the block miner. The block miner will record the legal transactions in the bitcoin network to the blockchain, so that the miner can receive the service charge for bookkeeping
there are two parts in the reward for the block Miner: one part is the reward given by the system, which is called coinbase reward (also known as system issuance reward), the other part is the reward for bookkeeping, which is called miner's fee. The coinbase reward started with 50 bitcoins. For every integral multiple of 210000 blocks, the coinbase reward will be halved. This is what we often hear about bitcoin mining reward halved in four years
at the present stage, the reward of coinbase is 12.5 bitcoins. At the present stage, the average transaction miner fee received by miners for digging out a block is about 0.1 bitcoin (not fixed), that is to say, the average reward received by miners for digging out a block is about 12.6 bitcoin
about 99% of miners' rewards come from the system's coinbase rewards. According to the bitcoin system, one block can be g out every 10 minutes on average. The number of new blocks that can be g out in one day is 144 (60 * 24 / 10 = 144). At present, the number of bitcoins that can be g out every day is 1800btc (144 * 12.5btc = 1800btc). With the miner's fee of about 0.1btc per block, the total reward for all miners in one day is about 1814.4btc
secondly, however, there is a smaller threshold for the total number of "smart": the largest possible integer that can be represented in floating-point format. Integers are not the only numbers that computers can store; To deal with decimals, computers & gt; Use a format for floating point representation. Floating point notation is essentially a binary version of scientific notation. For example, here is a value you will encounter when you study physics:
mass of the earth: 5.972 1024 kg
mass of the sun: 1.989 1030 kg
speed of light: 2.998 108 M / s
light year: 9.460 1015 m
mass of proton: 1.672 10-27 kg
Planck length: 1.616 10-35 m
we can notice that, How does scientific notation allow you to represent all of these values with reasonable accuracy, even though they vary greatly in size. Floating point notation is essentially a binary scientific notation; When you store numbers & gt; When the word is 9.625, what your computer stores is "1.001101
* 1011" (in other words, it stores 0100000000100011
& gt; This is the same thing with high-precision sequence form). In this high-precision form, the coefficient (that is, the part that is not the exponent) has 52 bits. This means high precision (more refined & gt; Double precision floating point number is enough to store up to 253 numbers, but it can't be any higher. If it exceeds 253, you have to start cutting off the numbers at the end. Bitcoin's 250.9, the total number of "smart" in the form of index, is just & gt; OK, below this maximum
if we have integers, why should we care about floating-point values? Because more high-level programming languages (such as JavaScript) do not open low-level "floating point" and "integer representation", but only provide "number" representation for programmers; Concepts
– of course, in floating-point form. If Nakamoto chose 210 million instead of 21 million at that time, bitcoin programming in many languages would be much more troublesome than it is now
note that Stefan Thomas unfortunately didn't notice this in time when he wrote bitcoinjs, so that the library used a special "big number big
number" object instead of an ordinary number to store the tutorial output value; My own bifurcated bitcoin JS (along with other improvements) uses ordinary numbers.
theoretically, 2100 trillion, or 250.899. In terms of selecting this value, this number is far less than 264-1, which is the largest integer that can be stored in the form of standard integer in a computer. If it exceeds that value, the bitcoin value will return to zero like a odometer
but this is only theoretical, just theoretical. Just like the previous IP address regulations, no one expected that V4 would be used up so quickly. Now it is necessary to use V6. This so-called "maximum integer that can be stored in the form of standard integer" may be broken by the technology upgrade one day a year later, followed by the collapse of the whole bitcoin computing.
renrenfu financial and business school tells you that every bitcoin node will collect all unconfirmed transactions and gather them into a data block, which will be integrated with the previous data block. The miner node will attach a random adjustment number and calculate the SHA-256 hash value of the previous data block. The mining node keeps trying again and again until it finds the random adjustment number so that the generated hash value is lower than a specific target
because hash operation is irreversible, it is very difficult to find the required random adjustment number, which requires a continuous trial and error process that can predict the total number. At this time, the workload proof mechanism will play a role. When a node finds a satisfactory solution, it can broadcast its results to the whole network. Other nodes can receive the new data block and check whether it meets the specification. If other nodes do meet the requirements by calculating the hash value, then the data block is valid, and other nodes will accept the data block and attach it to their own chain
bitcoin mining uses SHA-256 hash value operation. This algorithm will carry out a large number of 32-bit integer circular right shift operations
exhaustive verification until it finds a data that meets the requirements. This meaningless data is a dollar
the reasons why bitcoin is so popular are as follows:
first of all, bitcoin is actually a kind of virtual encrypted digital currency in the form of P2P, and its biggest feature is that it does not need to rely on traditional specific institutions to operate and issue. This means that basically no one can manipulate the market by making a lot of bitcoin
secondly, the number of bitcoin is limited, with the characteristics of scarcity . This is consistent with the earlier investment proct gold, so bitcoin is also known as digital gold. Moreover, the total number of bitcoins is only 21 million
finally, in the past 2020, the total money supply of the world's 12 largest economies, including China, has sharply increased to US $94.8 trillion; However, with the release of global currency, inflation has become increasingly serious, more and more people choose to concentrate their wealth in the bitcoin market, which leads to the arrival of a bull market
players who want to enter the digital currency market should be cautious
digital currency contains huge risks, and a sharp rise also corresponds to a sharp fall. Moreover, the above loose monetary policy can not be sustained all the time. In particular, now that we have entered the post epidemic era and the global economy is fully recovering, it is difficult to predict how monetary policy will change in the future
therefore, we should remind you that bitcoin not only contains huge profits, but also faces a crisis that can not be ignored. Players who want to enter the game still need to be cautious and operate rationally
1. First, you need to open the settings option in your iPhone