1. Newly generated block
2. Latest transactions
The transaction process of blockchain seems mysterious and cumbersome, but it is not so difficult to really say it.
Step 1: Owner A signs a digital signature for the last transaction (source of goods) and the next owner B with his private key, and attaches this signature to the end of this currency to make a transaction slip. At this point, B takes the public key as the address of the receiver.
Step 2: A broadcasts the transaction list to the whole network, and bitcoin is sent to B. Each node merges the received transaction information into a block.
At this point, for B, Bitcoin will be displayed in Bitcoin wallet immediately, but it can't be used until the block is confirmed successfully. At present, a bitcoin is successfully confirmed from payment to final confirmation, and it can only be truly confirmed after six confirmations.
Step 3: Each node obtains the right to create a new block by solving a mathematical problem, and strives for the reward of bitcoin (new bitcoin will be generated in this process).
At this point, the node repeatedly tries to find a numerical value, so that after sending the numerical value, the Hash value of the last block in the blockchain and the transaction form to the SHA256 algorithm, the hash value X(256 bits) that meets certain conditions (for example, the first 20 bits are all 0) can be calculated, that is, the solution of the mathematical problem can be found.
Step 4: When a node finds a solution, it broadcasts all the time-stamped transactions recorded in the block to the whole country and is checked by other nodes in the whole network.
At this point, the timestamp is used to prove that a specific block must exist at a certain time. Bitcoin network takes time from more than five nodes, and then takes the middle value as the timestamp.
Step 5: Other nodes in the whole network check the correctness of the accounting of this block. After there are no mistakes, they will compete for the next block after this legal block, thus forming a legal accounting blockchain.