Mid blockchain 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.
1 - Decentralization: because the blockchain relies on each node to achieve system maintenance and ensure the authenticity of information transmission, it is based on distributed data storage without centralized management by a certain center, Therefore, the attack and tampering of a node will not affect the healthy operation of the whole network
2-DE Trust: the establishment of a connection between any two nodes does not need to trust each other's identity, and the data exchange between the two sides does not need the basis of mutual trust. Since all nodes in the network can act as "supervisors", there is no need to worry about fraud
3 - extensible: blockchain is an underlying open source technology, on which various kinds of extension, decentralized and distrusted applications can be realized<
4 - anonymization: the two sides of data exchange can be anonymous, and the nodes in the network can exchange data without knowing each other's identity and personal information
5 - Security and reliability: because the activities between any nodes are supervised by the whole network, and the database adopts distributed storage, for hackers, first, they can't disguise and cheat, Second, we can't control the network only by conquering a node.
1 - public blockchain; It means that anyone can read and send transactions for validity confirmation, and anyone can participate in the consensus process of the blockchain to jointly maintain the security, transparency and non tampering of the public blockchain data. For example,
2-community blockchain represented by bitcoin; It is also called alliance chain, which means that the nodes participating in the blockchain are selected in advance, and there are usually good network connections and other cooperative relationships between the nodes; Community blockchain is a practical application scenario of the combination of blockchain and physical goods, such as Domenech jewelry's Maobei mode
3-private blockchain: the participating nodes only have a limited range, the data access and use have strict permission management, the write permission is only in the hands of the participants, and the read permission can be opened to the outside world.
the top and easiest thing to do is the application layer. I can see two or three such projects every day, accounting for more than 95% of the whole market. But such companies often write a lot of technical things in the white paper. In fact, they also write in vain. This is purely for the purpose of collecting pages, because they don't need to talk about technology at all
the second type is the intermediate operation level, such as quantum chain and ant. This kind of project is similar to the operation procere, called the basic chain, which is used to run the application. This category is relatively small, and the proportion has dropped to less than 5%
the third category is more downward extension and lower level, such as standard chain and arcblock. This kind is even less. It's good to see two or three in a month. And some of them are not necessarily true, because there is really nothing to write about, and all fields are occupied by others, so someone will go in this direction.
Blockchain and artificial intelligence are the next era
There is a good combination between the twoblockchain 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
artificial intelligence, abbreviated as AI. It is a new technical science to research and develop the theory, method, technology and application system for simulating, extending and expanding human intelligence
Artificial intelligence is a branch of computer science, which attempts to understand the essence of intelligence and proce a new intelligent machine that can respond in a way similar to human intelligence. The research in this field includes robot, language recognition, image recognition, natural language processing and expert system. Since the birth of artificial intelligence, its theory and technology have become increasingly mature, and its application fields have also been expanding. It can be imagined that the scientific and technological procts brought by artificial intelligence in the future will be the "container" of human intelligence. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is not human intelligence, but it can think like human and may surpass human intelligence At present, blockchain technology can be divided into three versions At present, in the first three versions, there are some problems, such as the lack of decentralization, low scalability, the mismatch between the incentive of the blocker and the best profit of the whole network, and the network always runs at the maximum capacity, such as bitcoin and Ethereum, which affect the efficiencyVelas combines the two to develop a public chain that can learn and improve itself
Velas enhances its consensus algorithm through artificial intelligence (AI) optimized neural network, and concts self-learning and self optimized public chain, aiming at improving the security, interoperability and high scalability of transfer process and intelligent contract. Velas adopts the dpos consensus enhanced by AI, which completely realizes decentralization without recing the security and transaction speed
technically, Velas has integrated functions and services such as cross chain payment, multi signature wallet supporting multi currency, anonymous transfer, etc. Its Ecosystem focuses on all application scenarios covering transaction and payment, such as exchanges, multi signature wallets, merchant platforms, etc. after AI is fully connected to the system, the transfer fee can be completely exempted
and complete decentralization through AI enhanced dpos (aidpos) & gt; AI chooses who to mortgage the token according to the needs of blockchain & gt; Velas only blocks when needed & lt; Between every 1 second and every 2 minutes & gt& gt; Scalability (up to 30000 TPS) & gt; Block procers are selected by artificial intuition< br />