Blockchain Taiji Computer
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.
blockchain (English: blockchain or block chain) is a kind of distributed database . You may have heard about bitcoin, which is the core technology. Blockchain is a series of data blocks generated by cryptography. Each data block contains the information of a network transaction, which is used to verify the validity of the information and generate the next block. In a popular concept, blockchain is an account that everyone can keep. In a company or organization, most people only have the right to keep accounts, while only a few people with professional training have the right to keep accounts. Of course, blockchain is not an account book in the traditional sense. It has the following three key points in technical principle: first, decentralization. In a network practicing blockchain technology, each computer covered by it can read and add records. From the perspective of account book, they are the people who keep accounts together, and there is no authoritative person to guide and correct them. Second, asymmetric encryption. Although everyone can remember this account, they will not be able to read it unless they are in the Bureau. Because, in the accounting process, everyone follows the unified encryption rules, but when reading, they must use their own unique decryption method. Therefore, although everyone keeps this constantly updated account, the part they can read is only the one they can decrypt, that is, the part related to themselves. Third, time stamp. That is, time stamp (English: timestamp), refers to the string or coded information used to identify the recorded time and date. Each block on the blockchain is arranged in sequence according to the time it is generated, and is confirmed by collective authentication. Moreover, previous records cannot be modified. Just like in an account, we can index and verify the previous content through the records after a point in time. Once these contents are confirmed, it will be more difficult to tamper with them
blockchain technology is to maintain a growing distributed database of data records. These data are associated with all the data written before through cryptography technology, which makes it difficult for the third party or even the owner of the node to tamper with. Block contains the data that need to be saved in the database, and these data are written into the database through block organization. Chain usually refers to the use of Merkle tree and other methods to check whether all the current blocks have been modified. This is familiar to code farmers who have used git for a long time. Recall how to modify git's history
blockchain technology is mainly divided into three categories, which are open, collaborative and private
public blockchain
example: bitcoin, Ethereum frontier. The data on the public blockchain can be accessed by all people, and all people can issue transactions waiting to be written into the blockchain. Participants in the consensus process (corresponding to the miners in bitcoin) maintain the security of the database through cryptography technology and built-in economic incentives. Open blockchain is completely distributed
highlights and pain points: the open blockchain is completely distributed and has all the characteristics of bitcoin. However, it needs sufficient cost to maintain the system operation and relies on built-in incentives. At present, only bitcoin in the public blockchain is safe enough. If the algorithm is the same as bitcoin, it will be safe; There are no built-in rewards, but they are not; It's easy to concentrate on the attack of computing power (for example, as long as the raid sweeps goods and a large number of graphics cards), and take jujube pills. The more valuable the data on the open blockchain is, the more important it is to examine its security, transaction cost and system scalability
federated blockchain
example: audit system tried by hyperledger and Deloitte. The nodes participating in the blockchain are selected in advance, and there is likely to be a good network connection between the nodes. Other consensus algorithms without workload proof can be used on such a blockchain. For example, a blockchain has been established among 100 financial institutions, and more than 67 institutions must agree to reach a consensus. The data on such a blockchain can be public or internal to these node participants. Distributed in a partial sense
highlights and pain points: collaborative blockchain can achieve a good connection between nodes, only need a little cost to maintain operation, provide rapid transaction processing and low transaction costs, has good scalability (but the scalability will decline with the increase of nodes), and data can have certain privacy. Developers have the ability to change the protocol under the consensus. There is no problem with bitcoin hard fork, but it also means that everyone can tamper with the data together under the consensus. Collaborative blockchain also means that the application scope of this blockchain will not be too wide, lacking the network propagation effect of bitcoin
private blockchain
example: Eris instries. The participating nodes are only users themselves, and the access and use of data have strict authority management. Most of the blockchain technologies recently announced by some financial institutions for internal use are vague, but they are probably all within this scope
highlights and pain points: private blockchain is actually a confusing term. Such a system is nothing more than a shared database in the traditional sense. Merkle tree and other methods are used to try to show that the data in it is verifiable. There are already mature solutions for such databases, and Merkle tree is only one of many mature solutions. It's easy for these projects to be "like eggs". Because the user has the final say, the data inside can not be changed, and there is not much protection for the third party. Therefore, many private blockchains exist by attaching to bitcoin, such as recording system snapshots to bitcoin regularly
the core advantage of blockchain technology is decentralization, which can realize point-to-point transaction, coordination and cooperation based on decentralized credit in a distributed system without mutual trust by means of data encryption, time stamp, distributed consensus and economic incentive, so as to solve the high cost and low cost of centralized institutions Low efficiency and data storage insecurity provide solutions
the application fields of blockchain include digital currency, token, finance, anti-counterfeiting traceability, privacy protection, supply chain, entertainment, etc. with the popularity of blockchain and bitcoin, many related top domain names have been registered, which has a great impact on the domain name instry.
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 />
then he built a mine pool, and many people bought mining machines in his custody
he can continuously earn money from the mine pool
computer network technology
computer network technology is the combination of communication technology and computer technology. Computer network is a collection of scattered and independent computers connected to each other according to network protocol. The connecting medium can be cable, twisted pair, optical fiber, microwave, carrier or communication satellite. Computer network has the function of sharing hardware, software and data resources, and has the ability of centralized processing, management and maintenance of shared data resources. Computer network can be classified according to different standards, such as network topology, network scope and interconnection distance, network data transmission and network system owner, different service objects, etc. It is generally divided into: (1) local area network (LAN) 2) Man 3) Wide area network (WAN). The geographical scope of local area network is generally within 10 kilometers, which belongs to a small area network formed by a department or a group of groups, such as a school, a unit or a system. Wan covers a wide range, generally from tens of kilometers to tens of thousands of kilometers, such as a city, a country or an intercontinental network. At this time, the transmission devices and media used for communication are generally provided by the telecommunications department, which can achieve a wide range of resource sharing. Metropolitan area network is between LAN and WAN. It usually covers a city or an area, ranging from tens of kilometers to hundreds of kilometers.