BTC all node installation
bitcoin is the first distributed virtual currency
to mine bitcoin, you can download the special bitcoin computing tools, register various cooperation websites, fill the registered user name and password into the computing program, and then click the operation to officially start. After completing the installation of bitcoin client, you can directly obtain a bitcoin address. When others pay, you only need to paste the address to others, and you can pay through the same client
after installing the bitcoin client, it will assign a private key and a public key. You need to back up the wallet data containing your private key to ensure that your property is not lost. Unfortunately, if the hard disk is completely formatted, personal bitcoin will be completely lost
extended information:
as a virtual commodity, bitcoin itself has no national boundaries, and its operation mode is a "decentralized" monetary system, which is very convenient for one-time large transaction. Bitcoin is traded through the network, and the owner's identity is only in the form of a set of encrypted computer code
in the operation, input a digital address directly, click the mouse a few times, and wait for the confirmation of the transaction to complete the transaction. The network can only record which address a bitcoin was g up from and how it was transferred
however, the identity of the owners of these addresses can not be verified, which is just like when money goes to an ownerless bank account, the relevant transactions can easily be invisible from the perspective of government supervision, and it is difficult to be tracked or intercepted. In addition, bitcoin can evade the scrutiny of exchange control institutions required by normal cross-border remittance, and the transaction records will not be recorded by banks and other parties
naturally, the problem of reporting to relevant departments after the transaction exceeds a certain amount is avoided. Buy bitcoin with domestic currency, sell it on foreign trading platforms, and withdraw it in US dollars. Asset transfer can be completed in a few minutes
it is not difficult to open an overseas bank account related to bitcoin for foreign exchange, and the conversion is very convenient. Because of these characteristics, bitcoin has been chosen by criminal organizations
a node is a network node in the blockchain distributed ledger system. By connecting servers, computers and other devices through the network, different types of blockchains have different ways to become nodes. For example, bitcoin participates in trading and mining, and EOS participates in election campaign to become a node
the following is what is a bitcoin full node
bitcoin full node is the node that downloads and preserves complete blockchain data by loading bitcoin clients (including bitcoin unlimited and bitcoin)
because of the congestion of the blockchain transaction network, the author solves the problem by adjusting the broadcast communication, information encryption and decryption, consensus mechanism and transaction verification mechanism. In the whole bitcoin network, from miners to ordinary users can be regarded as a node in the bitcoin network, but because bitcoin has the characteristics of multi centralization, In the whole network, its important role is "bitcoin all nodes."
first of all, the cost of hard disk has dropped from the lowest of US $0.025/gb in 2017 to US $0.15/gb, a 40% drop in three years. If this rate of decline continues, then by 2022, the decline rate of hard disk home will be faster than the growth rate of bitcoin, because over time, hosting a full node will be more economical
however, there are some technical solutions to solve this problem, which can rece the storage burden of the whole node. One of the most common solutions is light node. These nodes use a simplified payment verification method to verify transactions. Users only need to download a small part of the blockchain, but they need to rely on the third-party full node hosting the whole blockchain.
The concept of 21 million
bitcoin was first proposed by Nakamoto in 2009. According to Nakamoto's idea, open source software was designed and released, and P2P network was built on it. Bitcoin is a kind of P2P digital currency. Point to point transmission means a decentralized payment system
bitcoin is not issued in unlimited quantity, which is different from most currencies. Bitcoin does not rely on a specific currency issuer. But according to the specific algorithm, through a large number of calculations. Its circulation is controlled by software algorithms. The total number is 21 million
extended materials:
generation principle
starting from the essence of bitcoin, the essence of bitcoin is actually the special solution generated by a bunch of complex algorithms. A special solution is one of the infinite (in fact, bitcoin is finite) solutions that can be obtained from the equations. Every particular solution can solve the equation and is unique[ 10] In the metaphor of RMB, bitcoin is the serial number of RMB. If you know the serial number of a note, you have the note. The process of mining is to constantly seek the special solution of this equation system through a huge amount of calculation. This equation system is designed to have only 21 million special solutions, so the upper limit of bitcoin is 21 million
to mine bitcoin, you can download the special bitcoin computing tools, register various cooperation websites, fill the registered user name and password into the computing program, and then click the operation to officially start. After completing the installation of bitcoin client, you can directly obtain a bitcoin address. When others pay, you only need to paste the address to others, and you can pay through the same client. After installing the bitcoin client, it will distribute a private key and a public key. You need to back up your wallet data containing your private key to ensure that your property is not lost. Unfortunately, if the hard disk is completely formatted, personal bitcoin will be completely lost
a person signed by Nakamoto Tsui has put forward a revolutionary idea: let's create a currency that is not controlled by the government or anyone else! This idea is crazy: there is no asset support behind a string of figures, and no one is responsible for it. How can anyone accept it when you pay it to the other party as money
Merkle tree
looks like a binary tree, but this is the lower two nodes. Take the hash value to get the upper node. Just remember the root node to detect whether the whole tree has been tampered
the root hash value is stored in the block header, and the transaction process is stored in the block body. All nodes include block header and block body, but light nodes (such as bitcoin wallets on mobile phones) only include block header. This tree can prove that a transaction has been written into the blockchain
3. Consensus agreement
two issues should be paid attention to in decentralized currency:
1. Who can issue digital currency: mining
2. How to verify the legitimacy of transactions: blockchain
double spending attack
double spending attack is a major challenge of digital currency
all transactions in bitcoin have input and output. Where does bitcoin come from and where does it go
under normal circumstances, there may be two bifurcations, because two nodes obtain the bookkeeping right at the same time, and the two nodes package the block and calculate the random number at the same time. At this time, the two bifurcations will coexist temporarily until one of the blocks finds the next block first, which becomes the longest legal chain, and the other one is discarded<
Sybil attack
a malicious node keeps generating accounts. If the total number of accounts exceeds half of the total accounts, it obtains the control of the blockchain
consensus protocol in bitcoin
some nodes are malicious, and most nodes are good
idea 1: pack some transactions into blocks as candidate blocks, let each block vote, and write them into the blockchain if they pass
No, because some malicious nodes have been publishing blocks containing malicious transactions, and they have been voting and occupying resources. And some nodes don't vote<
idea 2: vote not by the number of accounts, but by computing power. Each node can generate legal transactions and put them into the block. These nodes start to try random numbers until H (block header) ≤ target is found, then this node has the right to account
the only way to generate bitcoin
coinbase transaction. There is no need to point out the source of the currency. If you have the bookkeeping right, you will get a reward< br />
50BTC-> 25BTC-> 12.5btc, the reward will be halved for every 210000 bitcoins
the process of bitcoin competing for bookkeeping rights is called mining. The node competing for bookkeeping right is called miner.
on August 1, 2018, bitcoin carried out a hard bifurcation to proce BCH. BCH is the result of community division, not a kind of bifurcated coin. BCH has its own strong community support. However, at that time, some wallets did not support BCH to collect.
does each node have complete blockchain data? You mean a user node? A user node needs to keep the of the block head of the longest workload proof chain, so it knows the data of all the block heads. It can move forward to know all the data on the block chain, but not all of them are saved. A block header is very small, only 80 bytes, which can be saved completely, because the generation of nodes is very slow. Even with the passage of time, the amount is not too large now.