Blockchain system Jiamu Technology
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.
The so-called blockchain technology, also known as the distributed ledger technology, is an Internet database technology, which is characterized by decentralization, openness and transparency, so that everyone can participate in database records
the basic principle of blockchain is not difficult to understand. The basic concepts include:
transaction: one operation leads to a change in the status of the account book, such as adding a record
block: to record the transactions and status results over a period of time is a consensus on the current account status
chain: it is composed of blocks in series according to the sequence of occurrence, and it is the log record of the whole state change
if the blockchain is regarded as a state machine, each transaction is an attempt to change the state, and the block generated by each consensus is the result that the participants confirm the state change caused by all the transaction contents in the block. The following is the ranking of Chinese enterprises
how many stages is the blockchain divided into 8194;
there are 1.0, 2.0 and 3.0 blockchains, and the digital currency dominated by bitcoin is blockchain 1.0; The smart contract platform centered on Ethernet is blockchain 2.0; The application scenario and platform of high-performance blockchain is blockchain 3.0. The simple conclusion is that 1.0 is mining and currency speculation; 2.0 is ICO and currency; 3.0 is the implementation of the project. The real landing projects are still far away from us. Most projects take stage 2.0 as the entry point of instry solutions. The combination of blockchain and instry enables blockchain to be applied in a certain instry 8194;
how to be a qualified blockchain project 8194;
potential blockchain projects have different evaluation standards and different periods. The main reason for the outbreak of digital currency in 2017 is the promotion of ICO and Ethernet smart contract. In the past, projects that could meet these two conditions were considered good. Now, the measurement standard of projects is: &
(1) There are application scenarios. The project itself has team, goal and real scene application. Because some teams or enterprises are not suitable for blockchain applications, it is a rather crude way to establish a connection between them 8194; 8194; 8194; 8194; 8194;
(2) the multi parties involved in the blockchain can generate transactions
(3) blockchain has a large number of communities and users. In conclusion, good blockchain projects can be applied
refer to the case of Henan keoo Information Technology Co., Ltd
To select a proct traceability system, we must select a block chain traceability system
because blockchain is an open, transparent and tamper proof technology, it has great credibility for information fidelity. Compared with the traditional centralized traceability system, which is vulnerable to hacker attacks and causes poor system security and stability, the decentralized blockchain technology has absolute advantages, and the well chain traceability application is the real blockchain technology
mokejing chain has been committed to blockchain technology for six years. At the same time, mokejing chain has been carrying out the implementation practice of blockchain technology application, and has jointly built various blockchain technology application platforms with major enterprises, including business intelligence platform, smart city platform, anti-counterfeiting traceability platform, etc. Every application platform makes full use of blockchain technology to solve all kinds of pain points of traditional Internet platform, making the platform more reliable and authentic, and deeply loved by enterprises and users. The well chain traceability platform is highly praised and recommended by many enterprises
well chain traceability optimizes one thing and two codes on the basis of one thing and one code, which makes the query information more comprehensive and traceable; Anti counterfeiting one-to-one locking, implicit anti-counterfeiting code accurately corresponding, can be used for anti-counterfeiting, anti-counterfeiting, traceability, code scanning marketing, data analysis, private customized one-stop service, help enterprises solve the problems of proct traceability, anti-counterfeiting and anti channeling, brand image and so on strong>
There are some differences between SOA and micro service architecture in terms of architecture division and technology platform selection
First, the architecture is divided into different levels2. Microservices are divided by Vertical Architecture and business capability. Each service completes a specific function, and service is proct
Second, the choice of technology platform is different2. Microservices can select different technology platforms according to different business characteristics, go to the center for unification, and give full play to the advantages of various technology platforms
Thirdly, the boundary processing mechanism between systems is different.
1. SOA architecture emphasizes the communication and decoupling between heterogeneous systems A coarse-grained and loosely coupled service architecture
2. Microservice architecture emphasizes the fine-grained splitting and deployment of the system according to the business boundary
The main goal of SOA architecture is to ensure that applications can operate interactively2. Microservice architecture, the main goal is to achieve new functions, and can quickly expand the development team
reference materials
Network SOA
Network micro service architecture
their company knows the blockchain system very well
we have cooperated with their family, which is really good.