Bitcoin studio voltage
public key system: corresponds to a public key and a private key, keeps the private key in the application and publishes the public key. When Party A transmits information to Party B, it can use Party A's private key to encrypt the information, and Party B can use Party A's public key to decrypt the information, so as to ensure that the third party cannot impersonate Party A to send the information; At the same time, when Party A transmits information to Party B, it is encrypted with Party B's public key and sent to Party B, and then Party B decrypts it with his own private key, so as to ensure that the third party cannot eavesdrop on the communication between the two people. RSA is the most common public key system, but the lliptic curve digital signature algorithm is used in bitcoin protocol. What's the difference between cash and bank account? Bitcoin is an electronic currency in BTC. In this article, it is also used to refer to the whole bitcoin system. Like opening an account in a bank, the corresponding concept in bitcoin is address. Everyone can have one or more bitcoin addresses, which are used to pay and collect money. Each address is a string that starts with 1. For example, I have two bitcoin accounts, and. A bitcoin account is uniquely determined by a pair of public key and private key. To save the account, you only need to save the private key file. Unlike bank accounts, banks keep all transaction records and maintain the book balance of each account, while bitcoin's transaction records are jointly maintained by the whole P2P network through a pre agreed protocol. How much money is in my account address? Although the current account balance can be seen by bitcoin software, unlike banks, there is no place to maintain the book balance of each address. It can only calculate the account balance in real time through all historical transactions. How do I pay? When I pay from address a to address B of the other party, the payment amount is e. at this time, both parties will announce the transaction information to each network node, telling address a to pay to address B, and the payment amount is e. In order to prevent the third party from forging the transaction information, the transaction information will be encrypted with the private key of address A. at this time, the network node receiving the transaction information can use the public key of address a to verify that the transaction information is indeed sent by address a. Of course, trading software will help us do these things, we just need to input the relevant parameters in the software. What will the network node do after receiving the transaction information? This is the most important part of the bitcoin system, which needs to be elaborated. For the sake of simplicity, only bitcoin protocol has been implemented. In the current version, each network node will save all transaction information synchronously. There are two kinds of transaction information in history, one is & quot; Verified & quot; The transaction information, that is, the verified transaction information, is stored in a series of "blocks". Each & quot; block" Is the previous & quot; bock" The ID of each block is the hash code of the hash code of the block and the new transaction information (see an actual block). The other category refers to those who also & quot; Unverified & quot; The transaction information just paid above belongs to this category. When a network node receives new unverified transaction information (possibly more than one), it can calculate the book balance of each address at that time because the node keeps all the transaction information in history, so it can calculate whether the transaction information is valid, that is, whether there is enough balance in the payment account. After eliminating the invalid transaction information, it first takes out the last & quot; block" Then, the unverified transaction information is combined with the ID, and a verification code is added to form a new "block". It needs a lot of calculation to build a new block, because it needs to calculate the verification code, so that the above combination becomes a block, that is, the first several bits of the hash code of the block are 1. At present, the first 13 bits need to be 1 (generally, the specific method is uncertain), which means that if the block is generated by enumeration method, the average number of enumerations is 16 ^ 13. Using CPU resources to generate a block is called "gold mining", because the proction of the block will get a certain reward, and the reward information has been included in the block. When a network node generates a new block, it will broadcast to other network nodes. However, this network block may not be accepted by the network, because it is possible that other network nodes have proced the block earlier. Only the earliest block or the block with the largest number of subsequent blocks is valid, and the remaining blocks are no longer used as the initial blocks of the next block. How does the other party confirm that the payment is successful? When the payment information is distributed to the network node, the network node begins to calculate whether the transaction is valid (that is, whether the account balance is enough to pay), and attempts to generate blocks containing the transaction information. When six blocks (one direct block and five subsequent blocks) contain the transaction information, the transaction information is considered "verified", so that the transaction is formally confirmed, and the other party can confirm the successful payment. A possible problem is that I will pay the balance of address a to address B, and at the same time pay to address C. If I only verify that the single comparison transaction is valid. At this point, my way of cheating is to generate six blocks including B to B and six blocks including C to C before the truth is revealed. Because I need a very long CPU time to generate a block, compared with the whole network, the probability of my cheating success is very small. What is the motivation of network nodes to proce blocks? As can be seen from the above description, in order to make the transaction information effective, the network node needs to generate 1 and 5 subsequent blocks to contain the transaction information, and such block generation is very CPU intensive. How to let other network nodes help to proce blocks as soon as possible? The answer is very simple. The agreement stipulates that BTC will be rewarded for the address where the block is proced, as well as the Commission promised by both parties. At present, the reward for procing a block is 50btc, which will be halved every four years in the future. For example, the reward will be 25btc from 2013 to 2016. Is the transaction anonymous? Yes, and No. All bitcoin transactions are visible. We can check all transaction records of each account, such as mine. But what's different from the banking monetary system is that everyone's account itself is anonymous, and everyone can open many accounts. In general, anonymity is not as good as it claims. But bitcoin has another advantage in doing black market trading: it can't be frozen. Even if the police trace a bitcoin address, there is nothing they can do unless they trace the computer used by the exchange based on the Internet address. How to ensure that bitcoin does not depreciate? Generally speaking, in the case of equivalent trading activities, the value of money is inversely proportional to the amount of money issued. Unlike the traditional money market, the central bank can determine the amount of money issued. Bitcoin does not have a central issuing institution. Only by procing blocks can we get a certain amount of BTC currency. Therefore, bitcoin's new amount of money depends on: 1. The speed of procing blocks: bitcoin's agreement stipulates that the difficulty of procing blocks is fixed at an average of 2016 every two weeks, about 10 minutes. Moore's law of doubling CPU speed every 18 months will not speed up the proction of block. 2. The number of rewards for block proction: at present, 50 BTC is awarded for each block proced, which is halved every four years. In 2013, 25 BTC is awarded, and in 2017, 12.5 BTC is awarded. Considering the above two factors, bitcoin's currency issuing speed is not controlled by any single node in the network. Its protocol makes the currency stock known in advance, and the maximum stock is only 21 million BTC
bitcoin was invented by "Zhongben cong" in 2009, Using the computing power of the chip, the boring and repetitive process of constantly "hash collision" in the blocks generated by the bitcoin system to win the bookkeeping right and thus obtain the system reward of bitcoin is vividly called "mining" in the bitcoin instry, and the professional staff engaged in this work are called "in the first few years of bitcoin operation, An ordinary laptop can play the role of "mining". However, the entry of Chinese miners has completely broken the balance of this situation. Relying on professional mining machines designed and made in China, they staged one after another bitcoin world computing power arms race, raising the threshold of "mining" tens of thousands of times
bitcoin mining machine is a kind of computer used to earn bitcoin. This kind of computer generally has professional mining chips and works in the way of burning graphics card, which consumes a lot of power. It is one of the ways to get bitcoin that users download software from personal computer and then run specific algorithm to get corresponding bitcoin after communicating with remote server
the popular digital currencies in 2013 include bitcoin, Leyte coin, zeta coin, pennies (Internet), invisible gold bar, red coin, pole coin, barbecue coin and prime currency. At present, hundreds of digital currencies are issued all over the world
the price of bitcoin mining machine ranges from two or three hundred yuan to 200000 yuan. From 2011 to 2013, high configuration bitcoin & quot; Mining machine & quot; From 10000 yuan to 300000 yuan, but the performance is much better than before. According to instry insiders, the old machine can only dig 1 bitcoin in 100 days, but now (2013) machine can dig 3.5 bitcoins in 100 days
according to the miner information published by the domestic assembly team, a miner with the lowest configuration at the price of 3000 yuan can be returned in more than 30 days according to the bitcoin mining speed. The machine with mining speed of 10G / s can dig about 0.03 bitcoins 24 hours a day, while the machine with mining speed of 13g / s can dig about 0.035 bitcoins 24 hours a day according to the computing power and difficulty of the whole network in 2013.
Taking t2t-30t as an example, the calculation force of t2t-30t is 30t, and the power consumption is 2200W, that is, 2.2kW. The power consumption of a single miner in 24-hour operation is 2.2kW * 24 = 52.8kwh, and the electricity charge is once calculated as 0.56rmb, the daily power consumption cost of a single miner is 52.8kw * 0.56 = 29.57rmb
to "mine" with bitcoin mining machine, if the graphics card is fully loaded for a long time, the power consumption will be quite high, and the electricity bill will be higher and higher. There are many professional mines at home and abroad in areas with extremely low electricity charges, such as hydropower stations, while more users can only mine at home or in ordinary mines, so the electricity charges are not cheap. Even some people in a residential area in Yunnan carried out crazy mining, which led to a large area trip of the residential area, and the transformer was burned
extended data
mining principle of bitcoin mining machine:
bitcoin mining and node software mainly initiates zero knowledge proof and verification transactions through point-to-point network, digital signature and interactive proof system. Each network node carries out broadcast transactions to the network. After these broadcast transactions are verified by miners (computers on the network), miners can use their own work proof results to express confirmation. The confirmed transactions will be packaged into data blocks, and the data blocks will form a continuous data block chain
every node of bitcoin will collect all the unconfirmed transactions and gather them into a data block. The miner node will add a random adjustment number and calculate the sha256 hash value of the previous data block. The mining node keeps trying again and again until the random adjustment number it finds makes the hash value lower than a specific target
at the end of 2010, Nakamoto left the project and did not disclose much about his identity. Since then, many developers have devoted themselves to bitcoin projects, and the bitcoin community has grown rapidly
bitcoin's protocols and software are publicly released. Any developer around the world can view its code or develop their own modified version of bitcoin software. Just like current developers, Nakamoto's influence is limited to the changes he makes that are adopted by others. Therefore, Nakamoto does not control bitcoin. So, today, the question of the identity of the inventor of bitcoin may be the same as that of the inventor of paper< At present, the bitcoin foundation is mainly responsible for the development and maintenance of bitcoin projects
bitcoin is proced by mining. Mining is also a very professional work. At present, bitcoin mining needs professional ASIC miner, such as Avalon three generation single-mode miner.
1. Our government's control over virtual currency is increasingly strengthened. In September last year, the domestic bitcoin trading platform was shut down by the central bank. Last year, the virtual currency rose sharply for a period of time, and now it has entered a downward trend. Although it is not sure whether the virtual currency will really fall to worthless, it should be prepared for losses< In contrast, the Chinese government also attaches great importance to foreign exchange trading. At present, many banks are also launching foreign exchange business. Investors only need to choose a foreign exchange dealer supervised by financial institutions to participate in the foreign exchange market trading, and the daily trading volume of foreign exchange is nearly 700 million. No organization or indivial can use funds to influence the market trend, Therefore, the foreign exchange market has a fair and transparent trading environment
3. However, investment should be cautious, and investors are expected to invest calmly
I hope my answer will be useful to you, thank you
Last week, a paragraph about bitcoin became popular:
bitcoin broke through 5800 US dollars (about 38280 yuan) . When it was issued in 2009, 1 US dollar was equivalent to 1300 bitcoins. What is investment? It has increased by 7.54 million times in 8 years. At that time, you spent 38000 yuan to buy some bitcoin. Now you are the richest man in China, surpassing Xu Jiayin, who has 290 billion yuan
but just one week later, on October 20, bitcoin broke through the $6000 mark. Although it fell later, it reached more than $6000 again on October 21, reaching a maximum of $6147. In terms of $6000, bitcoin prices have risen 7.8 million times in eight years
according to cryptocompare, a bitcoin data provider, e to China's strict supervision of cryptocurrency trading, the global share of bitcoin market has been greatly changed. Now, in the total trading volume of the world's bitcoin exchanges, the trading volume of RMB versus bitcoin accounts for about 1.6%
} the proportion of RMB and yen in global bitcoin trading volume (photo source: cryptocompare)
the reporter noted that in the first half of this year, after Japan's legislation recognized bitcoin as a legal payment method, bitcoin's trading volume in Japan surged, and Japanese regulatory authorities have issued certificates to 11 cryptocurrency exchanges. About 58% of bitcoin trading currently takes place in the Japanese market, and nearly a third of yen to bitcoin trading takes place on the bitflyer exchange in Tokyo. In addition, the U.S. and South Korea markets also account for a large part of global bitcoin transactions - the U.S. dollar and the Korean won account for 27% and 7% of the total bitcoin transactions, respectively< br />
the consensus of bitcoin is the most powerful, and its network is also the most robust. In the future, more and more people will enter the digital money market and see bitcoin for the first time. Despite the high price of bitcoin, there is still a huge room for growth in the future.
for example, the value of sha256 of 041665464 (random number) is: (hexadecimal) 0ffffffff... (if)
it does not meet the requirement of less than 00ffffff, so it is not a block
the value of sha256 of 041665465 (random number) is: (hexadecimal) 000ffffff... (if)
it meets the requirement of less than 00ffffff, so it is a block
in fact, it is very difficult to find a random number less than a hash value, which is the principle of workload proof
the value to be less than (00ffff...) is variable (difficulty), which varies with time and computing power.
