search
Homeweb3.0Learn more about blockchain principles in one article

Learn more about blockchain principles in one article

Mar 07, 2024 am 09:07 AM
BlockchainBitcoinBlockchain technologyVirtual currency

Blockchain technology is a magical thing. For many techies, this is just a masterpiece. For such a powerful thing, do you know what the principle of blockchain is? Below, the editor will analyze and analyze what the principle of blockchain is? Blockchain is an important concept of Bitcoin. The currency is connected to the Internet Finance Laboratory of Tsinghua University PBC School of Finance. , Sina Technology released the "2014-2016 Global Bitcoin Development Research Report" and mentioned that blockchain is the bottom layer of Bitcoin. technology and infrastructure.

Blockchain is essentially the underlying technology of Bitcoin, which is a decentralized database system. Blockchain uses encryption technology to generate a series of data blocks. Each data block contains information about a transaction on the Bitcoin network, which is used to verify the validity of the transaction and generate the next data block.

Learn more about blockchain principles in one article

What is its principle?

Seeing the different definitions of blockchain, I began to realize that my previous explanation of this concept was always Confined to Bitcoin. The definition of blockchain is not unique and clear. Here, I would like to share some of my personal insights on the characteristics of "blockchain" based on research papers:

Use a data structure in the form of a "hash chain" to save underlying data (described below)

Multiple nodes participate in system operations (distributed)

Reach consensus (consensus protocol/algorithm) through a specific protocol or algorithm to ensure the consistency of basic data.

Bitcoin is one of the most representative and influential applications in blockchain technology. By understanding how Bitcoin utilizes blockchain, we can more easily understand other kinds of blockchain applications.

Before talking about the application, it is most important to understand its technical nature. All answers to blockchain first mention the intangible characteristics of blockchain, so the first thing to understand is how it is implemented?

Essential knowledge; the one-way nature of the password Hash() function: Hash(x) = y, it is difficult to find the y

hash chain of x: if there are data blocks A, B, C in sequence. Then we can calculate a hash value like this. Note the "||" splicing

H0 = Hash(A)

H1 = Hash(B || h0)

H2 = Hash(C || h1 )H2 is the hash header we calculated. Now, why we call this thing a hash chain, because the value of h2 depends on the content of the previous series of data and the order of calculation. If you know h2 now and someone else holds A, B, C, no matter if he modifies any of A, B, C or the order of A, B, C, you cannot calculate the correct h2 again.

Well, in fact, the concept of blockchain makes a bit of sense here. Isn't it? "Blockchain word" is the translation of blockchain in English. If understood literally, a block of data "composed" of chains is enough to explain its basic meaning. The Bitcoin blockchain is actually a variation of a hash chain (note that Bitcoin added the rules for nonces and special requirements for nonces described below to implement a proof-of-work consensus mechanism). , rather than a necessary feature of blockchain). How to change? Add a random number (Nonce)

Learn more about blockchain principles in one article

Assume that there are now sequentially generated data blocks A, B, C. Let's calculate the hash header like this. Note the "||" splicing

H0 = Hash(A || Nonce0)

H1 = Hash(B || h0 || Nonce1)

H2 =Ha Hash (C || h1 || Nonce2)

Here we also add an additional requirement, that is, h0, h1, h2 must all start with the specified 0 digits, for example, each hash value must Start with 5 0, then h0, h1, h2 it should look like this (00000 *****************)

After adding this requirement, h0, h1, h2 are not so easy to calculate because you can't invert the input according to the form of the output and give A, B, C, it can only be to keep changing the Nonce to do an exhaustive calculation and then find the Nonce value that satisfies the requirements so that h0 , h1, h2 meet the requirements.

Everyone knows what the so-called miners are doing, which is accepting broadcast blocks of data and then calculating the head of the current hash chain. After a successful hash has been calculated, everyone will be notified. I found it myself and let someone else calculate the next hash header. In fact, the nature of blockchain is almost the same here. If everyone in the network defaults to the protocol and only calculates the new header after the longest hash chain, then everything is fine, but if someone wants to do it the same way, he has to have more computing power. When honest people follow the rules, they can calculate a series of forks, or even directly calculate a new chain, so that everyone can admit it.

As for the proof of this difficulty, Satoshi Nakamoto established a probability model of the Poisson distribution, assuming that the probability of a new hash header calculated by an honest node and the probability q of a new hash header calculated by a dishonest node. , calculate the N value.

The meaning of this N value is that after calculating the new hash header h1, and then appending N headers (h2, h3, h4....), the network should recognize the new header. H1. Because at this time, if the attacker wants to successfully launch an attack, he needs to calculate at least one branch with a length greater than N. This possibility is difficult to realize when the attacker does not have 50% of the total network computing power.

Learn more about blockchain principles in one article

So here, it’s clear that blockchain is a clever application of cryptographic tools. Of course, the possibilities of blockchain are not just what I mentioned. Giants from various industries including insurance, auditing, medical care, etc. are exploring its potential. If you have good ideas and think blockchain can bring The benefits will far outweigh the side effects, so you can try it.

The above is the detailed content of Learn more about blockchain principles in one article. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:脚本之家. If there is any infringement, please contact admin@php.cn delete
Which of the top ten currency trading platforms in the world are among the top ten currency trading platforms in 2025Which of the top ten currency trading platforms in the world are among the top ten currency trading platforms in 2025Apr 28, 2025 pm 08:12 PM

The top ten cryptocurrency exchanges in the world in 2025 include Binance, OKX, Gate.io, Coinbase, Kraken, Huobi, Bitfinex, KuCoin, Bittrex and Poloniex, all of which are known for their high trading volume and security.

Which of the top ten currency trading platforms in the world are the latest version of the top ten currency trading platformsWhich of the top ten currency trading platforms in the world are the latest version of the top ten currency trading platformsApr 28, 2025 pm 08:09 PM

The top ten cryptocurrency trading platforms in the world include Binance, OKX, Gate.io, Coinbase, Kraken, Huobi Global, Bitfinex, Bittrex, KuCoin and Poloniex, all of which provide a variety of trading methods and powerful security measures.

What are the top currency trading platforms? The top 10 latest virtual currency exchangesWhat are the top currency trading platforms? The top 10 latest virtual currency exchangesApr 28, 2025 pm 08:06 PM

Currently ranked among the top ten virtual currency exchanges: 1. Binance, 2. OKX, 3. Gate.io, 4. Coin library, 5. Siren, 6. Huobi Global Station, 7. Bybit, 8. Kucoin, 9. Bitcoin, 10. bit stamp.

What are the top ten virtual currency trading apps? The latest digital currency exchange rankingsWhat are the top ten virtual currency trading apps? The latest digital currency exchange rankingsApr 28, 2025 pm 08:03 PM

The top ten digital currency exchanges such as Binance, OKX, gate.io have improved their systems, efficient diversified transactions and strict security measures.

What currency does Ripple (XRP currency) belong to? Detailed tutorial for beginnersWhat currency does Ripple (XRP currency) belong to? Detailed tutorial for beginnersApr 28, 2025 pm 07:57 PM

Created by Ripple, Ripple is used for cross-border payments, which are fast and low-cost and suitable for small transaction payments. After registering a wallet and exchange, purchase and storage can be made.

Binance official website entrance Binance official latest entrance 2025Binance official website entrance Binance official latest entrance 2025Apr 28, 2025 pm 07:54 PM

Visit Binance official website and check HTTPS and green lock logos to avoid phishing websites, and official applications can also be accessed safely.

Sesame Open Door Official Website Entrance Sesame Open Door Official Latest Entrance 2025Sesame Open Door Official Website Entrance Sesame Open Door Official Latest Entrance 2025Apr 28, 2025 pm 07:51 PM

Sesame Open Door is a platform that focuses on cryptocurrency trading. Users can obtain portals through official websites or social media to ensure that the authenticity of SSL certificates and website content is verified during access.

Ouyi official website entrance Ouyi official latest entrance 2025Ouyi official website entrance Ouyi official latest entrance 2025Apr 28, 2025 pm 07:48 PM

Choose a reliable trading platform such as OKEx to ensure access to the official entrance.

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.