Blockchain Learning Day01

Knowledge reserve before learning

1.go language (must master)
2.Basic database operations
3.Basic algorithms
4.Basic Linux operations
5.Linux cluster construction
6.Web common sense

Proof of work

1. Introduction to the concept
1. P2P
blockchain has a premise, which is P2P. This is not a lending platform, but a peer-to-peer network.
Satoshi Nakamoto White Paper: A peer-to-peer electronic cash payment system that requires third-party support is worthless
The original intention of the so-called peer-to-peer network (P2P network) is to stand in opposition to this kind of third party and center
. In a peer-to-peer network, there are no special nodes. All nodes are functionally the same and can provide all the services of the entire network to the outside world. All the services required by the peer-to-peer network. When each node provides services to the outside world, it is also using the services provided by other nodes for itself
. The peer-to-peer network does not need to rely on any special third party to complete the operation of its own system, and there is no so-called central hub. , thus ensuring the freedom, equality, transparency and circulation of data in universities.
2. Bitcoin

  • Originally proposed by Satoshi Nakamoto in 2009, the open source software designed and released based on Satoshi Nakamoto's ideas and the P2P network built on it
  • It is a P2P form of digital currency, and peer-to-peer transmission means a decentralized payment system.
  • From a technical perspective, Bitcoin is the earliest and most successful blockchain application. Its open source is regarded as a system composed of encryption algorithms, consensus mechanisms, p2p networks and other technologies.
  • Because this system is constantly issuing currency, it can also be seen as a world bank, but unlike ordinary banks, it is not run by a specific central authority or twenty nodes on the network.
  • In addition, the currency distributed by this system is also called Bitcoin. If we want to avoid confusion, we can also refer to this currency with BTC
    3. Blockchain
  • Literally understood, blockchain includes two concepts: block and chain.
  • The blockchain itself is composed of blocks, and the network built by linking different nodes together is the blockchain
  • The main function of the blockchain is to store information. Any information that needs to be maintained can be written to the blockchain or read from it.
    4. Mining machine
  • It is a computer used to earn Bitcoins. This type of computer usually has a professional mining chip. It usually works by burning the graphics card, which consumes a lot of power.
  • Users use a personal computer to download software and then run a specific algorithm. After communicating with a remote server, they can obtain corresponding Bitcoins. This is one of the ways to obtain Bitcoins.

Insert image description here
5. Mining

  • Cryptocurrencies must maintain their scarcity to maintain their value. If anyone could generate any number of Bitcoins at any time, Bitcoin would be worthless.
  • The Bitcoin algorithm sends a certain amount of Bitcoins every 10 minutes to the members (nodes) in the network who discover the next block.
  • Bitcoin mines Pow through consensus algorithm
    Pow
  • Proof-of-Work, referred to as Pow, is proof of work.
  • By calculating a value, the value of the content after piecing together the transaction data meets the specified upper limit. After the node successfully finds the satisfactory Hash value, it will immediately broadcast the packaged block to the entire network, and the nodes of the network receive the broadcast packaged block. It will be verified immediately
  • Only the fastest decrypted block in the network will be added to the ledger, and other nodes will copy it, thus ensuring the uniqueness of the entire ledger.
  • If a node engages in any cheating behavior, it will cause the network node to fail the verification and directly discard its packaged block. This block will not be recorded in the general ledger, and the cost of the cheating node will be in vain. Therefore, in the huge The low cost of mining also makes workers voluntarily comply with the consensus protocol of the Bitcoin system, thus ensuring the security of the entire system!

おすすめ

転載: blog.csdn.net/weixin_44774466/article/details/135139502
おすすめ