Analysis of multiple output hexadecimal of blockchain
1. Blockchain links
as the name suggests, blockchain is a chain composed of blocks. Each block is divided into block head and block body (including transaction data). The block head includes the prevhash value (also known as hash value) of the previous block used to realize the block link and the random number (nonce) used to calculate the mining difficulty. The hash value of the previous block is actually the hash value of the head of the previous block, and the random number calculation rule determines which miner can obtain the right to record the block
2. Consensus mechanism
blockchain is accompanied by the birth of bitcoin, which is the basic technology architecture of bitcoin. Blockchain can be understood as an Internet-based decentralized accounting system. A decentralized digital currency system like bitcoin requires the consistency of accounting of honest nodes without a central node, which needs blockchain to complete. Therefore, the core of blockchain technology is a consensus mechanism to reach a consensus on the legitimacy of transactions between indivials without mutual trust without central control
there are four main types of consensus mechanisms in blockchain: pow, POS, dpos and distributed consistency algorithm
3. Unlocking script
script is an important technology to realize automatic verification and contract execution on blockchain. Every output of every transaction does not point to an address in the strict sense, but to a script. A script is like a set of rules that constrain how the receiver can spend the asset locked on the output
the validation of transactions also depends on scripts. At present, it depends on two kinds of scripts: Lock script and unlock script. Locking script is a condition added to the output transaction, which is realized by a script language and located in the output of the transaction. The unlocking script corresponds to the locking script. Only when the conditions required by the locking script are met can the assets corresponding to the script be spent, which is located in the input of the transaction. Many flexible conditions can be expressed by script language. Interpretation script is similar to the "virtual machine" in our programming field, which runs in every node of the blockchain network in a distributed way
4. Transaction rules
blockchain transaction is not only the basic unit of a block, but also the actual effective content recorded by the blockchain. A blockchain transaction can be a transfer, or the deployment of smart contracts and other transactions
as far as bitcoin is concerned, a transaction refers to a single payment transfer. The transaction rules are as follows:
1) the input and output of the transaction cannot be empty
2) for each input of a transaction, if its corresponding utxo output can be found in the current transaction pool, the transaction will be rejected. Because the current transaction pool is the transaction not recorded in the blockchain, and each input of the transaction should come from the confirmed utxo. If it is found in the current trading pool, it is Shuanghua trading
3) for each input in a transaction, the corresponding output must be utxo
4) each input unlocking script must verify the compliance of the transaction together with the corresponding output locking script
5. Transaction priority
the priority of blockchain transaction is determined by the blockchain protocol rules. For bitcoin, the priority of a transaction to be included in a block is determined by the time when the transaction is broadcast to the network and the amount of the transaction. With the increase of transaction broadcast time on the network and the increase of transaction chain age, the priority of transaction will be improved and eventually be included by the block. For Ethereum, the priority of the transaction is also related to the transaction fee that the publisher is willing to pay. The higher the transaction fee that the publisher is willing to pay, the higher the priority that the transaction is included in the block
6. Merkle proof
the original application of Merkle proof is bitcoin, which was described and created by Satoshi Nakamoto in 2009. Bitcoin blockchain uses Merkle proof to store transactions in each block. So that the transaction can not be tampered with, but also easy to verify whether the transaction is included in a specific block
7. RLP
RLP (recursive length prefix) is one of the main encoding methods of object serialization in Ethereum. Its purpose is to encode the sequence of arbitrary nested binary data.
According to reports, blockchain has the advantages of decentralization, distrust and tamper proof
compared with the Internet, the blockchain network conceived by Cosmos not only realizes information interaction, but also realizes the transmission of asset value. Through the IBC cross chain protocol, the token can be transferred across the chain between the blockchains based on Cosmos' tendermint core. For the public chains based on POW consensus mechanism like Ethereum, pegged zone can be used to bridge
Article source: bit110 network
blockchain is a new application mode of distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and other computer technologies. Blockchain is an important concept of bitcoin. It is essentially a decentralized database. At the same time, as the underlying technology of bitcoin, it is a series of data blocks generated by using cryptographic methods. Each data block contains a batch of information about bitcoin network transactions, Used to verify the validity of its information (anti-counterfeiting) and generate the next block. In fact, the original English version of bitcoin white paper [1] does not use the word blockchain, but uses the word chain of blocks. In the earliest Chinese translation of bitcoin white paper [2], chain of blocks was translated into blockchain. This is the earliest time when the Chinese word "blockchain" appeared.
Who are the major shareholders. Two people account for more than 70% of the shares, of which the tension is slightly more than Li Silian, basically 30% - 35% each
Zhang Li, CO chairman and President of R & F real estate group In 1953, he was born in Guangzhou, Guangdong Province. His ancestral home is Zhujiang village, Guangzhou city. He has a first degree and a college degree. He holds an MBA from Hang Seng International Business School and a PhD in business management from national Boston University. Co chairman and President of R & F real estate group, chairman of R & F football club, honorary president of Guangdong General Chamber of Commercein February 2010, Zhang Li was selected into Forbes Global billionaire list, ranking 556th. In the 2016 Hurun real estate rich list, Zhang Li and Zhang Zhang ranked 42nd with 11 billion yuan
Li Silian, chairman of Fuli real estate groupborn in Hong Kong in 1957, with a personal wealth of 18.07 billion yuan, graated from Mathematics Department of the Chinese University of Hong Kong [1], MBA of Hang Seng International Business School (Hong Kong), and doctor of business management of national Boston University. In 1993, Li Silian joined hands with 20 million yuan to enter the real estate instry of Guangzhou and earned the first pot of money; It took only ten years to build R & F real estate into one of the most powerful real estate instries in China. As of November 23, 2006, the total sales volume of R & F real estate in China has exceeded 10 billion yuan and the total market value has exceeded 50 billion Hong Kong dollars
on November 27, 2017, he was elected vice president of China Chamber of Commerce
#include<stdio.h>intmain(){intx=0;charc;printf("请输入二进制数:");c=getchar();while(c=='0'||c=='1'){x=x*2+c-'0';c=getchar();}printf("十进制:%d 十六进制:%X ",x,x);return0;}