Position: Home page » Bitcoin » BTC communication

BTC communication

Publish: 2021-04-14 07:54:33
1.

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

mining is actually a competition of performance and equipment, and a competition of computing power among miners. Miners with more computing power are more likely to dig bitcoin. With the increase of computing power in the whole network, it is more and more difficult to dig bits with traditional devices (CPU, GPU). People have developed chips specially used for mining. Chip is the core part of mining machine. The process of chip operation will proce a lot of heat, in order to cool down, bitcoin miner is generally equipped with heat sink and fan

< H2 > extended materials:

bitcoin is a kind of virtual currency. Bitcoin mining system is the process of carrying out mathematical operation for bitcoin network through computer hardware. Miners who provide services can get a reward, because the network reward is calculated according to the tasks completed by miners, so the competition for mining is very fierce

bitcoin mining started with low-cost hardware such as CPU or GPU, but with the popularity of bitcoin, the mining process has changed greatly. Nowadays, the mining activities are transferred to the field programmable gate array, and the hash speed can be achieved through optimization. The mining efficiency of this mode is very high

2. In order to understand the technical principle of bitcoin, we need to understand two important cryptographic techniques: hash code: it converts a long string into a fixed length string, and its conversion is irreversible, that is, it is impossible to guess the original string from hash code. Sha256 is mainly used in bitcoin protocol
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
3. Hello, questioner:
in the very early days, when the computing power of bitcoin was very low, the computer could also carry out a lot of calculations according to the algorithm to "mine" bitcoin

when users "mine" bitcoin, they need to search for 64 bit numbers by computer, and then compete with other gold miners by repeatedly solving puzzles to provide the required numbers for the bitcoin network. If the user's computer successfully creates a group of numbers, they will get the bitcoin awarded by the block. However, e to the rising value of bitcoin, the number of users of bitcoin mining is very large. There are millions of professional mining machines mining at the same time, and the output of bitcoin is very limited every 10 minutes. As a result, tens of millions of people scramble for a block. Therefore, if you use personal computers to mine alone, you may not be able to grab a block in a whole year, People came up with a method of group mining, so the mining pool was born. There are a lot of users who play after mining
I hope you will adopt it.
4.

Although many investors know nothing about bitcoin mining, they still can't resist the temptation of bitcoin price and plan to invest in the mining army. So if you also want to mine, I believe you will have a question in your heart: "what is a bitcoin miner? What is the principle of bitcoin mining machine? " To solve this problem, let's remember some popular science today

origin of bitcoin

to fully understand the origin of bitcoin, we have to mention the existing financial system

bitcoin mining machine specially used for mining. The popular digital currencies in 2013 include bitcoin, Leyte coin, zeta coin, pennies (Internet), invisible gold bar, red coin, pole coin, BBQ coin and prime currency. At present, hundreds of digital currencies are issued all over the world

with the orderly implementation of cashless society, banknotes will inevitably disappear in the long river of history with the passage of time. The future digital currency is believed to be similar to bitcoin, but it is by no means a limited supply. But when the human ability to proce wealth can be completely matched by the computing power of the computer, the issuing speed of e-money is directly proportional to or slightly exceeds the computing speed of the computer to create moderate inflation. In the future, while mining, it is also creating value rather than wasting electricity. In the end, the small changes in proctivity of digital currency match the difficulty of computing power, which may be the final form of human currency

5. It should be etc
etc is short for electronic toll collection. Etc lane, which is called etc toll platform, is an all electronic toll collection system that uses automatic vehicle identification technology to complete wireless data communication between vehicles and toll stations, to exchange automatic vehicle identification and related toll data, and to process toll data through computer network to realize automatic toll collection without stopping
automatic vehicle identification (AVI) is also called electronic toll collection system (etc). There is no manual charging platform, which is specially supplied to etc vehicles equipped with OBU.
6. Bitcoin mining is through the mining node, and then the bitcoin mining machine (computer) constantly consumes its own computing power in exchange for bitcoin. In the bitcoin system, through its own algorithm, it can dynamically adjust the mining difficulty of the nodes in the whole network, and ensure that every 10 minutes, one node will succeed in mining. At this time, the bitcoin system will reward this person with a certain amount of bitcoin. Bitcoin mining is a complicated process, but it usually goes through these steps: preparation, finding the mine pool, registering the mine pool account, setting the mine pool account, downloading the bitcoin miner (software) and configuring the bitcoin miner; After the above steps, you can mine
the content of this article comes from: financial code of the people's Republic of China: application edition, China Law Press
7. The actions in bitcoin can be regarded as the use of graphics card to do continuous general computing, and the computational complexity is relatively low and quite repetitive. The stream processor used by graphics card is just suitable for such an algorithm. It's like constantly solving equations. The graphics card is 2000 middle school students, while the CPU is 8 math doctors. Although the mathematical knowledge of the doctor of mathematics is far more than that of the middle school students, the speed of solving medium-sized equations such as virtual currency is certainly not as fast as that of 2000 middle school students
therefore, we used graphics cards to mine virtual currency at the beginning. After that, someone developed a specific algorithm to make the stream processor of the graphics card greatly strengthen the virtual currency solution, which is the origin of the mining machine
the transmission of knowledge is driven by life
8. There are few traders with stable profits, and most of the capital losses are mainly e to lack of experience. However, in primexbt, it only costs US $10, so you can experience more and operate more.
9. 1. First of all, you need to know the concepts of public key and private key (you don't need to read this part already)
public key and private key are terms in asymmetric encryption of modern cryptography. They usually encrypt information with public key and decrypt information with private key. Why? Because when you watch TV dramas, telegrams are encrypted symmetrically. The disadvantages of this encryption method are obvious. If someone knows the key and encryption method, they can decrypt the telegrams according to the encryption method. Until asymmetric encryption, the situation has changed. Public key is the key that can be made public all over the world. For example, when you communicate with Google, you encrypt with the 1024 bit public key given by Google and send it to Google. Only he has the corresponding private key, and only he can decrypt it, so the communication security is ensured
2. Bitcoin mainly uses ECDSA, which is the elliptic curve signature algorithm, This algorithm has two characteristics. Note that these two points are very important to the following
A. as long as you know the private key, you can calculate the corresponding public key
B. If you have signed something with the private key, you can use the public key to calculate whether you signed it or not
3. After knowledge preparation, let's start with the transaction of bitcoin. In fact, bitcoin has no wallet, only transaction bills, and the whole bitcoin is a lot of transaction bills

for example:
bill 1 transfers from a to B to XXX bitcoin
Bill 2 transfers from B to C and D to XXX bitcoin
bill 3 transfers from C to e to XXX bitcoin
.... Anyone who downloads the client can receive all the bills from the day when bitcoin was established, so as long as all the bills are downloaded, they will naturally know how much money should be left on each account (think carefully here)

4. The account of bitcoin is the public key mentioned just now

5, Here is the core part!!! Each bill is a piece of data. After you sign it, it will be sent to the whole network, and the data structure will be reversed into easy to understand Chinese. The explanation is as follows:

from (who sent it, including two parts)
previous TX: the ID of the bill for which you want to spend the money, that is to say, any money you spend should have been transferred to you, You need to show the ID of the bill
scriptsig: your signature for this transaction is to hash the bill with your private key, only you can do this hash

to (who accepts, including two parts)
value: how much to send
scriptpubkey: the public key of the other party, and the bitcoin account is a public key
6, How to send it? Bitcoin communication is not so complicated. You can compare it to IRC channel, but different from ordinary "IRC", any client is an "IRC" server. When you start the client, you will receive the client address with public IP around, that is, the "server" list. This list is constantly refreshed, and it is all other bitcoin users, So when you shout a word in this "IRC", people around you will hear it and spread it all over the world

7. After sending the signature to the whole world, all the clients who receive this list will verify whether your signature is correct, whether you sent it, and whether you have so much money (according to the historical transaction, you can calculate how much money you have to spend)
if you have calculated this transaction, it's OK, Basically, the transfer is successful

8. In fact, the other party has accepted bitcoin, but in order to spend it, he must have the private key corresponding to the address (public key). So he can fill in the from header of a form. Previous TX is the serial number of the transaction just now. Scriptsig fills in the hash signed with his private key...
10. Bitcoin mining machine is the computer used to earn bitcoin. This kind of computer generally has professional mining chips, and works by installing a large number of graphics cards, which consumes a lot of power. One of the ways to get bitcoin is to download mining software and run a specific algorithm to communicate with a remote server. Any computer can become a mining machine, but the benefit will be relatively low. It may not be able to dig a bitcoin in ten years. Many companies have developed professional bitcoin mining machines, which are equipped with special mining chips, and their computing speed is tens or hundreds of times higher than that of ordinary computers
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750