We already know that Bitcoin is the equivalent of a "global account book," and how this bill is stored. In other words, where to put the account.
The blockchain contains n sorted blocks of time, each of which has a pointer to the previous chunk, and all blocks form a chain through the pointer, so called a blockchain. The first block is called the Genesis block, as shown in figure:
As can be seen from the diagram above, the blockchain is made up of blocks of chunks and chunks, each containing chunk meta information and a pointer to the hash of the previous chunk header, which is a key message to prevent the blockchain from being tampered with.
The block body contains the Bitcoin trading information, the first transaction is a special transaction, is rewarded to mining node remuneration, which is the only way to generate bitcoins, but also the distribution of Bitcoin, the rest of the transaction is a transfer transaction, that is, bitcoin from one address to another address, This is also the only way to realize the transfer of Bitcoin value. As a result, Bitcoin can only be issued and transferred in two transactions, and bitcoin will only be transferred from one person to another in the future, and not disappear from thin air.
All transactions are in chunks, each chunk contains the hash value of all trades in the previous block, followed by this method, and the newest chunk always contains all the previous billing information indirectly.
All of these chunks form a blockchain, which makes it easy to verify (as long as the hash value of the last chunk is the equivalent of validating the entire ledger), immutable (any change in the transaction information, which changes the hash value of all subsequent chunks, The total ledger that could not be passed at the time of verification.