Principle of bitcoin personal transaction
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.
Bitcoin mining is a process of using computer hardware to do mathematical calculation for bitcoin network to confirm transactions and improve security
First, register the fire coin, this is the registration link
Web link
and then download the fire coin from the app store. Pay attention to the third one, fire coin Pro
In short, the principle of brick Arbitrage: buy low and sell high, buy money from the place with low price and sell it at the place with high price, that is to earn the price difference of different platforms
but there are three risks in moving bricks:
A. time difference of currency transfer: it takes a certain waiting time to pick up or deposit the currency, so it may miss the best trading time
B. currency price fluctuation: if the currency price fluctuation is relatively large and the process of moving bricks has not been completed, the price difference has disappeared
C. platform problems: some trading platforms may shut down services from time to time, or even run away
principle: carry out brick arbitrage on two platforms at the same time to avoid the risk of "time difference of currency transfer" and "currency price fluctuation"
before moving bricks: the brick moving platform must support the same currency transaction, and the brick moving platforms must be able to transfer currency to each other
Step 1: price difference calculation. There are handling charges for currency trading and currency transfer, so you have to calculate the cost according to your own funds. Only when the price difference reaches how much can it be profitable to move bricks
Step 2: simultaneous operation. Buy BTC on the low price platform and sell BTC on the high price platform. At this time, the number of BTC holdings remains unchanged and the number of usdt increases You need to pay attention to transaction fees.)
Step 3: balance funds. It is difficult to predict which platform has a lower price and which has a higher price e to the price difference. Therefore, the two platforms that move bricks need to prepare usdt and BTC. When the price difference appears, it is convenient to move bricks There are also handling charges for cross platform currency transfer.)
the above is the principle and steps of risk-free arbitrage using BTC and usdt. It also has a big name: quantitative hedging. The fundamental purpose is to earn usdt, not BTC
You can take a closer look at this: Web linkselliptic curve digital signature algorithm is mainly used in the generation process of bitcoin public key and private key, which is the cornerstone of bitcoin system. SHA-256 hash algorithm is mainly used in the workload proof mechanism of bitcoin
the principle of bitcoin generation is the special solution generated by complex operation, and mining is the process of finding the special solution. However, the total number of bitcoin is only 21 million, and with the continuous mining of bitcoin, the more difficult it will be to proce bitcoin, and the cost of acquiring bitcoin may be higher than the price of bitcoin itself
the bitcoin block consists of a block header and the transaction list contained in the block. The size of the block header is 80 bytes, which is composed of 4-byte version number, 32 byte hash value of the previous block, 32 byte Merkle root hash, 4-byte timestamp (current time), 4-byte current difficulty value and 4-byte random number. A block header with a fixed length of 80 bytes is the input string used to prove the workload of bitcoin. Constantly change the random number in the block header, that is, the value of nonce, and do double sha256 operation on the block header after each change, and compare the result value with the target value of the current network. If it is less than the target value, the problem is solved successfully, and the workload is proved to be complete
the essence of bitcoin is actually the unique solution of a set of equations generated by a bunch of complex algorithms. Bitcoin is the first distributed virtual currency in the world, which has no specific distribution center. The network of bitcoin is composed of all users, because there is no center to ensure the security of data.