Blockchain Basics (3)-Blockchain storage (how to book)

Source: Internet
Author: User
Tags hash

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.