Position: Home page » Bitcoin » Principles of bitcoin software

Principles of bitcoin software

Publish: 2021-05-10 14:56:45
1. How does bitcoin work? From the perspective of operation, bitcoin is actually a decentralized account book on the Internet

centralized account book (bank)
the bank is a centralized account book, which is stored in the bank's central database, and it says:
Zhang San's a account balance is 3000 yuan, The balance of Li Si's B account is 2000 yuan...
when Zhang San wants to transfer 1000 yuan to Li Si's B account through a account:

Zhang San goes to the bank and submits the transfer request to the bank
the bank confirms Zhang San's identity through bank card password and checks whether Zhang San's a account has enough balance
after passing the check, The bank adds a transfer record: account number a transfers 1000 yuan to account number B,
and modifies the balance: account number a balance = 3000-1000 = 2000 yuan, account number B balance = 2000 + 1000 = 3000 yuan

decentralized account book
suppose there is such a small village where people do not rely on the bank, but use the account book to record who has how much money, Everyone's account book says:
Zhang San's a account balance is 3000 yuan, Li Si's B account balance is 2000 yuan...
when Zhang San wants to transfer 1000 yuan to Li Si's B account through a account,
Zhang San roars: attention, I transfer 1000 yuan to Li Si's B account with a account
the villagers near Zhang San listen to Zhang San's voice and check whether Zhang San's a account has enough balance
after passing the inspection, the villagers write on their account books: account a transfers 1000 yuan to account B
and modify the balance: account a balance = 3000-1000 = 2000 yuan, account B balance = 2000 + 1000 = 3000 yuan
the villagers near Zhang San tell the distant villagers about the transfer until everyone knows about the transfer, so as to ensure the consistency of everyone's account book

decentralized account book (bitcoin)
bitcoin users run bitcoin client software on the computer, such a computer is called a node
a large number of node computers connect with each other to form a peer-to-peer network like spider web
when Zhang San wants to transfer 1 bitcoin to Li Si's B account through a account,

Zhang San broadcast the transfer transaction requirements to the surrounding nodes: a account transfers 1 bitcoin to B account, and signs with the private key of a account
(the private key of account a can be simply understood as the password of account a, and the bitcoin on account a can be used as long as the private key of account a is known)
the nodes around Zhang San check the authenticity of the transaction signature through the public key of account a, and check whether Zhang San's account a has enough balance
after the check, the node writes to its own account book: account a transfers 1 bitcoin to account B,
and modify the balance: a account balance = 3 bitcoin - 1 bitcoin = 2 bitcoin, B account balance = 2 bitcoin + 1 bitcoin = 3 bitcoin
the node broadcasts the transaction to the surrounding nodes and transmits it to all the nodes until all the nodes receive the transaction

bitcoin's decentralized public ledger is called blockchain. This is the simplest description of the operation of bitcoin. Of course, the actual operation of bitcoin is far more complex than this. We will explain it further in the future.
2. Bitcoin is a consensus network, contributing to a new payment system and a fully digital currency. It is the first decentralized peer-to-peer payment network, which is controlled by its users without a central management organization or middleman. From the user's point of view, bitcoin is much like Internet cash. Bitcoin can also be regarded as the most outstanding three style bookkeeping system

anyone can run software on specialized hardware and become a bitcoin miner. mining software monitors transaction broadcast through P2P network and performs appropriate tasks to process and confirm these transactions. Bitcoin miners can earn transaction fees paid by users to speed up transaction processing and additional bitcoin issued according to fixed formula
new transactions need to be included in a block with mathematical workload proof before they can be confirmed. This kind of proof is hard to generate because it can only be generated by trying billions of calculations per second. Miners need to run these calculations before their blocks are accepted and rewarded. As more people start mining, the difficulty of finding effective blocks will be automatically increased by the network to ensure that the average time to find a block remains at 10 minutes. Therefore, the competition for mining is very fierce, and no indivial miner can control the content contained in the block chain
workload proof is also designed to rely on previous blocks, which forces the time sequence of block chain. This design makes it extremely difficult to cancel previous transactions, because the workload proof of all subsequent blocks needs to be recalculated. When two blocks are found at the same time, the miner will process the first block received, and once the next block is found, it will be transferred to the longest block chain. This ensures that the mining process maintains a global consistency based on processing capacity
bitcoin miners can neither increase their rewards by cheating, nor deal with the fraulent transactions that destroy the bitcoin network, because all bitcoin nodes will reject the blocks containing invalid data that violate the bitcoin protocol rules. Therefore, even if not all bitcoin miners can be trusted, the bitcoin network is still secure

sha256 is an encryption algorithm.
3. Throughout history, there have been cases of gold, goods and even land confiscation in times of crisis. It is also disturbing that, as we have seen in Venezuela, people there are struggling with high inflation. Sometimes it is extremely difficult to convert money into another currency, which makes people feel helpless and can only watch their life savings be worthless. Bitcoin is very different. It is in electronic form and has no boundary restrictions. It can be transferred without any intermediary. Anyone who connects to a mobile device or the Internet can use it. All transactions are permanently recorded in the public ledger, and there is no dispute about ownership
in a recent article in the New York Times, a Venezuelan economist described how bitcoin became a part of Venezuela's daily life, so that on a mainstream bitcoin trading platform, Venezuela's trading volume ranked second only to Russia in the world. But bitcoin is not just used to protect wealth in extreme conditions. In general, bitcoin is also an excellent choice for portfolio diversification, and it should be seen as part of a comprehensive wealth preservation strategy.
4. Bitcoin mining is a process of using computer hardware to do mathematical calculation for bitcoin network to confirm transactions and improve security. As a reward for their service, miners can get the Commission included in the transaction they confirm, as well as the newly created bitcoin. Mining is a professional and competitive market. The bonus is divided according to the amount of calculation. Not all bitcoin users mine, and it's not easy to make money from mining

however, at present, professional Avalon ASIC miner is needed for mining, and it also needs to be included in a mine pool. If you are a retail investor, of course, if you arrange a large mine, you don't need it.
5.

the principle of bitcoin mining is to implement rules made by people and automatically executed by computers

Satoshi Nakamoto, the inventor of bitcoin, has stipulated this rule from the very beginning, and those who participate in bitcoin blockchain must automatically abide by it unconditionally

The content of

rules is generally ,

people who pack the circulation data of bitcoin, arrange it into a fixed size, and then upload it to the blockchain for bitcoin whole network synchronous broadcasting can get 50 bitcoins rewarded by the system

under certain conditions, these rewards will be halved, about once every four years

so how to complete the data packing

the person who wants to complete this action must first have the necessary tools, that is, the software to execute the bitcoin blockchain, and the machine (computer at the beginning) to run the software; Then download and save all the bitcoin transaction data that have been recognized by the whole network. At this time, you become a "node" and a part of protecting the blockchain data

The

node can only get the priority of the packaged data after running a specific mathematical formula and getting the correct answer. The system will automatically give the reward to the node who gets the priority, who completes the packaging first and then uploads it to the blockchain, and receives and approves it from other nodes

if there is bitcoin service charge in the packaged transaction, the service charge belongs to the node

people think that the process of calculating the mathematical formula and then completing the package to get the reward is just like fishing for gold in the river. It is necessary to discard many wrong answers in order to find the right key to get gold, so people compare this process to mining

so bitcoin mining is not really to dig something, or to use computers to constantly collide and guess. Whoever guesses first wins the reward, that's all

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.

Bitcoin mining is a process of using computer hardware to do mathematical calculation for bitcoin network to confirm transactions and improve security

8. No more money, just look at the allocation. In most cases, we can't find one in a month. It's not recommended to do it. It's a waste of time and electricity
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