Position: Home page » Computing » The contradiction between decentralization and smart contract

The contradiction between decentralization and smart contract

Publish: 2021-05-12 12:06:10
1. Centralized exchange and decentralized exchange have their own advantages and disadvantages, and the difference is very obvious. Let's take a look at the centralized exchange first. To put it bluntly, the trading mechanism of the centralized exchange is actually similar to our traditional stock trading
the first step is to register (open an account) and set the password. The second step is user authentication (KYC). The third step is to recharge. Here comes the key. The third step is the most important. Because you need to charge money to your address in the exchange before you can trade money in the exchange. The address of the exchange is actually a wallet address, but the ownership of the wallet is not the user, but the exchange, that is to say, the private key of the address, you don't have it!!! Do you understand the meaning

well, after recharging, the transaction is finished. The user submits the instruction (hanging order) to the server, and then the exchange will be responsible for matching the transaction, which is exactly the same as the stock. The last is cash withdrawal (withdrawal of currency). Users can send instructions to transfer the currency from the exchange address to their wallet address. The above is the trading mechanism of the centralized exchange. In these steps, all actions will have costs. No matter you recharge, trade or withdraw money, gas and handling charges can't escape
then let's look at the decentralized exchange. The trading mechanism is different from the centralized exchange. The first step is to register (open an account) and set the password. It doesn't make any difference. But then it's a little different. KYC is not used. But because there is a private key, the ownership of this address is completely controlled by the user. The second step is recharging. This is not very different from the centralized exchange. You still have to make your own gas
after recharging, we can also trade in the decentralized exchange. Users can also register orders, and exchanges will also be responsible for matching transactions, but the matching is done by smart contracts. Finally, cash withdrawal (withdrawal of currency) is initiated. After withdrawing currency, users can directly transfer the currency from the address of the exchange to their wallet address. This step is the same as that of the centralized exchange
the above is the trading mechanism of centralized and decentralized exchanges, and the difference between them is also obvious. Because all currencies in the central exchange are under its control, the trading efficiency is very high, and it is similar to the stock trading process, convenient and suitable for most users. Conversely, the risk lies in this. If the exchange itself loses its integrity or is attacked by hackers, the user's capital (currency) is not guaranteed
all the transaction processes of decentralized exchanges are completed by smart contracts, so the transaction efficiency is relatively low (TPS of blockchain technology has always been a soft rib), but relatively, the capital (currency) is completely in the hands of users, so the security is relatively high. In addition, there are also KYC, where KYC is needed for centralization, but not for decentralization, and the security of personal information is relatively high. Compared with the decentralized exchange, the advantages of the centralized exchange lie in the trading depth and the number of users, which are unmatched by the decentralized exchange
therefore, centralization and decentralization have their own advantages and disadvantages. It depends on the user's own choice. They like convenient, centralized, secure and decentralized.
2.

There is an essential difference between Ethereum and bitcoin. What is the difference? Bitcoin defines a set of currency system, while Ethereum focuses on building a main chain (which can be understood as a road) to allow a large number of blockchain applications to run on this road

from this point of view, Ethereum's application scenarios are more extensive, which is why we say that Ethereum marks a simple monetary system in the era of blockchain

1.0, and a transformation to other instries and application scenarios in the era of blockchain 2.0

however, there is no perfect thing in the world. Although Ethereum has expanded the application scope of blockchain in all walks of life and improved the speed of transaction processing, it also has some disputes and doubts

first, the solution to the lack of scalability of Ethereum: slicing technology and lightning network

the bottom design of Ethereum, the biggest problem is that Ethereum has only one chain and no side chain, which means that all programs have to run on this chain equally, consuming resources and causing system congestion. Just like last year's very popular Ethereum game "encryption cat", when this game was very popular, it once caused Ethereum network paralysis

to improve the processing capacity, Ethereum proposes two ways: shard and lightning network. Let's introce these two technologies respectively

(1) fragmentation technology

vitalik buterin, founder of Ethereum, believes that the reason why mainstream blockchain networks such as bitcoin process transactions very slowly is that every miner has to process every transaction in the whole network, which is actually very inefficient. The idea of fragmentation technology is: a transaction does not need to be processed by all nodes in the whole network, as long as some nodes (miners) in the network are allowed to process it. Therefore, Ethereum network is divided into many pieces. At the same time, each piece can handle different transactions. In this way, the network performance will be greatly improved

however, the slicing technology is also controversial. As we all know, the important idea of blockchain technology is decentralization. Only when the whole network witnesses (processes) the same transaction can it have the highest authority. The Ethereum slicing technology is similar to the group witness, not all nodes witness together. In this way, it will lose the absolute "decentralization" attribute, and can only achieve the purpose of high performance by sacrificing certain characteristics of decentralization

(2) lightning network

lightning network uses the way of transaction under the chain. What does that mean? It means: when the participants of lightning network transfer money to each other, they do not need to confirm the transaction through the main chain of Ethereum, but create a payment channel between the participants and complete it under the chain

however, lightning network is not separated from the main chain. Before establishing a payment channel, you need to use the assets on the main chain as collateral to generate a balance proof, which indicates that you can transfer the corresponding balance. In the case that both parties of the transaction hold the balance certificate, both parties can make unlimited number of transfers under the chain through the payment channel

only when the off chain transaction is completed and the assets need to be transferred back to the chain, the balance change information of the main chain account will be registered on the Ethereum main chain, and no matter how many transactions occur ring this period, there will be no record on the main chain

another real benefit of lightning network is that it can save the cost of miners for you. At present, when we trade on the main chain of Ethereum, we need to consume gas and pay for miners. Once we move the transaction to the lower chain, we can save this part of the cost

Of course, lightning network is not perfect. When using the lightning network, the assets on the main chain should be used as collateral; And this part of assets as collateral can not be used before the user completes the transaction under the chain. This also determines that lightning trading is only suitable for small transactions

the above is the problem of insufficient scalability of Ethereum, as well as the two main solutions: fragmentation technology and lightning network

Second, there are loopholes in Ethereum's smart contract and the infamous Dao event

Ethereum's smart contract is very powerful, but there are loopholes in any code. The biggest controversy of Ethereum's smart contract lies in the so-called loopholes, that is, security issues. According to relevant research, 34200 (about 3%) of the nearly 1 million smart contracts based on Ethereum contain security vulnerabilities, which will allow hackers to steal eth, freeze assets or delete contracts, such as the infamous Dao incident

(1) what does Dao mean

before introcing the Dao event, let's first introce what Dao is. Dao is the abbreviation of decentralized

autonomous organization, which can be understood as decentralized autonomous organization. From the perspective of Ethereum, Dao is a kind of contract or a combination of contracts on the blockchain, which is used to replace the government's review and complex intermediate proceres, so as to achieve an efficient and decentralized trust system. Therefore, Dao is not a specific organization, that is to say, there can be many Dao, all kinds of Dao

(2) the infamous Dao event

however, when we talk about Dao now, we basically refer to the Dao event, that is, the infamous hacker attack event we just mentioned. As we know, the English word "the" refers to "the Dao event". The Dao event

refers to "the Dao event", because we just said that Dao is not a specific organization, there can be many Dao, all kinds of Dao

in 2016, slock.it, a German company focusing on "smart locks", launched the Dao project on Ethereum in order to realize decentralized physical exchange (such as apartments and ships). Since April 30, 2016, the financing window has been open for 28 days

unexpectedly, this Dao project is very popular. It raised more than US $100 million in just half a month. By the end of the whole financing period, it raised a total of US $150 million. Therefore, it has become the largest crowdfunding project in history. However, it didn't last long. In June, hackers took advantage of the loopholes in the smart contract to successfully transfer more than 3.6 million Ethernet coins and put them into a Dao sub organization, which has the same structure as the Dao. At that time, the price of Ethernet currency fell directly from more than $20 to less than $13

this event shows that there are loopholes in smart contracts, and once the loopholes are exploited by hackers, the consequences will be very serious. This is why many people criticize Ethereum and say that its smart contract is not smart

to solve this problem, many foreign companies begin to provide code audit services in order to solve the vulnerability problem of smart contract. From a technical point of view, some teams are currently testing smart contracts. Most of these teams are led by professors from Harvard, Stanford and Yale, and some of them have obtained investment from leading institutions

in addition to the problems of insufficient expansibility and loopholes in smart contracts, the controversy over Ethereum lies in the POS consensus mechanism it pursues, that is, the proof of equity mechanism. Under the proof of equity mechanism, if anyone holds more money and holds it for a longer time, he will get more "rights" (interests) and have the opportunity to get bookkeeping power, Bookkeeping can also be rewarded. In this way, it is easy to create the oligarchic advantage of "the stronger the stronger"

Another problem is the chaos of ICO. ICO is a common way to raise funds for blockchain projects, which we can understand as pre-sale. The outbreak of ICO projects on Ethereum has caused illegal activities such as fund allocation and money fraud under the banner of ICO, which has caused security risks to social and financial stability

3. Smart contract & quot The term "smart contract" can be traced back to at least 1995 and was proposed by the prolific interdisciplinary legal scholar Nick Szabo. He mentioned the concept of smart contract in several articles published on his website. His definition is as follows:
& quot; A smart contract is a set of promises defined in digital form, including the agreements on which the contract participants can execute these promises& quot;
let's explore the meaning of his definition in more detail
commitment
a set of commitments refers to the (often mutual) rights and obligations agreed by contract participants. These commitments define the nature and purpose of the contract. Take a sales contract as a typical example. The seller promises to deliver the goods and the buyer promises to pay a reasonable price
digital form
digital form means that contracts have to be written into computer-readable code. This is necessary, because as long as the participants reach an agreement, the rights and obligations of smart contract establishment are executed by a computer or computer network
to further explain:
(1) when will the parties to the smart contract reach an agreement? The answer depends on the specific smart contract implementation. Generally speaking, the contract is discovered when the parties are committed to the execution of the contract by installing the contract on the contract host platform< (2) contract execution
& quot; Execute & quot; And the real meaning of it also depends on implementation. Generally speaking, implementation means active implementation through technical means
(3) computer readable code
in addition, the contract needs specific & quot; Digital form & quot; Very much depends on the agreement that the parties agree to use
protocol
protocol is technical implementation, on this basis, the contract commitment is realized, or the contract commitment is recorded. Which agreement to choose depends on many factors, the most important of which is the nature of the assets being traded ring the performance of the contract
take the sales contract as an example. Suppose that the participants agree to pay in bitcoin. The chosen protocol will obviously be bitcoin protocol, on which the smart contract will be implemented. Therefore, the contract must use & quot; Digital form & quot; It's bitcoin scripting language. Bitcoin scripting language is a non Turing complete, imperative, stack based programming language, similar to forth.
4.

The decentralization of blockchain refers to the form of social relations and content generation formed in the process of blockchain development. It is a new network content proction process relative to "centralization"

blockchain is an important concept of bitcoin, which 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 the information of a batch of bitcoin network transactions, which is used to verify the effectiveness of its information (anti-counterfeiting) and generate the next block

blockchain is unified in the whole network, so it is logically centralized. From the perspective of architecture, blockchain is based on peer-to-peer network, so it is decentralized. From the perspective of governance, blockchain makes it difficult for a few people to control the whole system through consensus algorithm, so it is decentralized

extended data:

characteristics of blockchain Decentralization:

decentralization, not without the center, but by the node to freely choose the center, freely determine the center. In short, centralization means that the center determines the node. The node must depend on the center, and the node cannot survive without the center

in a decentralized system, anyone is a node, and anyone can be a center. Any center is not permanent, but phased, and no center is mandatory for nodes

with the diversification of network service forms, the decentralized network model becomes more and more clear and possible. After the rise of Web2.0, the services provided by Wikipedia, Flickr, blogger and other network service providers are decentralized. Any participant can submit content, and Internet users can create or contribute content together

reference source: network blockchain

reference source: Network decentralization

5. Q: What is blockchain technology? A: Blockchain technology can be understood as a public accounting mechanism. It is a technical solution rather than a specific proct. The basic idea is to establish a set of public account books on the Internet, in which all users in the network keep accounts and check accounts together, so as to ensure the authenticity and non tamperability of information. The reason why it is called "blockchain" is that the structure of blockchain storage data is composed of a chain of "storage blocks" on the network. Each block contains all the information exchange data in the network within a certain period of time, and the chain continues to grow over time. Q: What is the relationship between blockchain and bitcoin? A: Bitcoin used to be one of the most successful applications of blockchain technology. Specifically, the blockchain is a series of data blocks generated by the use of cryptography Association, and each data block contains the information of effective confirmation of multiple bitcoin network transactions. It can be said that bitcoin is a "killer application" of blockchain idea. Blockchain is the underlying technology of bitcoin, but its role is not limited to bitcoin. Q: What are the technical features of blockchain? A: Based on open source software and peer-to-peer network, blockchain can bring more advantages than traditional network in currency related fields such as transaction payment. These advantages include: decentralization, no need to trust the system, disintermediation, tamper proof, encryption security. Q: How does blockchain technology improve the authenticity and non tamperability of data? A: The newly added data blocks are linearly added to the end of the original block in chronological order, which constitutes the blockchain. In this process, the data is distributed in each computer. This decentralized storage method improves the authenticity and non tamperability of the data. When a transaction occurs, users all over the world can act as regulators. If we do not recognize the legitimacy of the transaction, the transaction cannot be concluded, and the data on the blockchain is maintained by us collectively. Q: Is there any potential defect in such a brain burning "blockchain"? A: Blockchain also has some defects to be solved, such as security risks, work efficiency and resource consumption. Since the supervision of blockchain depends on all nodes in the network, theoretically speaking, if you master more than 50% of the computing power of the whole network, you will be able to successfully tamper with and forge blockchain data. Secondly, e to the distributed storage, each node in the blockchain needs to keep a database, and any transaction in the network needs to be authenticated and recorded by other nodes, so the efficiency of the system is low. Finally, because the operation of the blockchain relies on the computing power contributed by the network nodes, these computing power do not proce actual social value, so it is generally considered that these computing power resources are "wasted". Application of blockchain in various fields when blockchain technology is published, many people think it is possible to realize DAC. DAC (full name) can be translated into distributed autonomous system, which refers to an organization system that runs autonomously without intervention and management through a series of open and fair rules. DAC has many forms. It may be a digital currency, a system or an entity, or even a driverless car. This kind of organization system can provide valuable services for customers in the form of currency transfer (such as bitcoin), asset transaction, domain name service, or any other business model. Therefore, through the idea of information sharing, blockchain technology is likely to bring profound changes in cost rection and security improvement to various instries. Application scenarios that existing blockchain technology can achieve: proof of existence can be used to confirm rights in the field of Internet finance, that is, blockchain can really realize "proving your mother is your mother". The smart contract guarantees the validity of the contract, such as the generation required by the electronic signature law; Reliability of methods for storing or transmitting data messages; The reliability of the method of maintaining content integrity; The reliability of the method used to identify the sender. The blockchain of the Internet of things can solve the problem of the coding standard interaction interface of the Internet of things. When an e-signature is signed by identity verification, the signature data is only under the exclusive control of the signer. Any changes to the e-signature after signing can be found, and any changes to the content and form of the data message after signing can also be found. The market forecasting community, August, is an example. Anyone can access and use August anywhere in the world, which may bring unprecedented liquidity and trading volume to the market. Asset trading NASDAQ OMX Group Inc is testing blockchain technology, which NASDAQ believes has the opportunity to transform traditional financial trading methods into bitcoin like ones. The bitcoin mode of e-commerce can be applied directly. Is it possible for e-commerce to become a "harmonious" market without supervision? Social news magmavc has invested $400000 in getgems (formerly known as gems), a start-up project for decentralized social communications applications. File storage directly impacts and even subverts the traditional cloud computing architecture. Chain, a data API blockchain API service provider, has received a $9.5 million investment led by Khosla ventures. Wall Street's financial companies are investing in blockchain and seizing the beach. Visa, NASDAQ and Citigroup also invested in chain, an old Jinshan blockchain start-up, with a financing amount of US $30 million. In the financial field, what can blockchain do? Specifically, in the financial field, in addition to providing a trading platform for bitcoin, Jiuding investment believes that blockchain technology can also greatly improve various asset trading systems other than the existing digital currency. For example, it plays an important role in the post transaction market proceres such as the liquidation and settlement of financial derivatives, foreign exchange, private equity, energy credit linked investment procts and other assets. In terms of speed, the time required for settlement audit in the U.S. securities market is 2 to 3 days. The application of blockchain technology is expected to rece the settlement audit time from hour level to minute level or even second level, thus recing the settlement risk by 99%, and recing the capital cost and system risk. In the blockchain, transaction confirmation and settlement are carried out at the same time. After the node transaction is confirmed by the system, it is automatically written into the distributed ledger, and the corresponding distributed ledgers of all other nodes are updated at the same time. The automatic operation mechanism can greatly shorten the settlement cycle. In terms of expenses, under the current settlement mechanism, in order to achieve a shorter settlement cycle, it is necessary to increase the settlement cost and initial investment expenses significantly. The emergence of blockchain technology makes it possible to rece the settlement cycle more efficiently and quickly, and rece the transaction intermediate proceres, so as to save a lot of money, which is the market space of the related blockchain instry. In terms of security, the integration of blockchain technology into smart contract technology can process complex derivatives transactions programmatically, making clearing more standardized and automated. The time linear stacking feature of the block itself can help the regulators identify and discover illegal operations. At the same time, the smart contract can change the compliance inspection into automation and minimize the possibility of violation from the beginning of liquidation. The 24-hour uninterrupted operation of blockchain technology can also make the data exchange processing of Pan state exchange more stable and reliable. In addition to securities transaction settlement, blockchain can also be used to register and issue digital asset ownership. Blockchain technology can greatly enhance program automation, while smart contract can write many complex derivatives trading terms into the registration and issuance program supported by blockchain technology. When a transaction occurs, blockchain network can quickly and correctly execute. In November 2015, LINQ, a new blockchain technology project cooperated by Nasdaq and chain, has completed the first private equity transaction using the blockchain based issuance and trading platform. The application prospect of blockchain in the field of accounting has also attracted the attention of a large number of people in the instry. Accounting, auditing and compilation cost a lot for global enterprises and the four accounting firms. Automatic accounting based on blockchain technology can greatly rece the relevant costs. The company does not need to recruit special auditors to audit the account book, and all transactions can be stored in the internal blockchain. Due to the irreversibility and time stamp function of the blockchain, the external auditors and regulators of the four major accounting firms can monitor the company's account books in real time by tracking these blockchains. At the same time, the institutions can greatly rece the dependence on the auditors to audit financial transactions and make the audit business more efficient. With the increasing maturity and application expansion of blockchain technology, blockchain start-ups in developed countries have sprung up. At present, the world's leading blockchain companies generally focus on transaction, payment, clearing, Internet of things and other pain point businesses. Some companies have achieved a certain scale, and have developed a relatively clear business model. At the same time, many companies have extended their business in the blockchain instrial chain, covering payment, transaction, risk control, etc., making full use of the multi-point coordination effect. At present, Jiuding investment is also focusing on the projects and applications of various blockchain technologies.
6. Chongqing jinwowo analyzes the role of smart contract in blockchain technology as follows:
three characteristics of smart contract in blockchain can be summed up:
1) decentralization. It doesn't rely on the centralized server and runs automatically through the network nodes
2) good trust mechanism. The crisis of trust is greatly reced, and it is not necessary to consider whether the participation is trustworthy
3) high degree of autonomy. Once the condition is triggered, the contract will be executed automatically without interference
7. Frankly speaking, with the rising operating costs and the extrusion of centralized platform, the life of traditional dealers is not easy. In particular, after Alibaba, Jingdong and other Internet enterprises have set foot in the field of FMCG circulation, the squeezed dealers have begun to seek a way out
however, the centralized platform mode pursued by the giant will constantly encroach on the participants in the platform, squeeze the living space of small and medium-sized businesses, and destroy the healthy development of the whole instry order. Fundamentally speaking, it is not suitable for dealers to enter, and it is not concive to building a harmonious and symbiotic ecosystem
"it's not appropriate or long-term to hand over our channels, lifeblood and resources to several giants." Instry professionals said, "all brands and retail enterprises should be clearly aware of: the proct or scene is yours, the user is yours, the operation and marketing are all done by you, and the data should also be yours. You are not going to settle in a certain platform, but to build your own garden."
at the same time, Ma Yufeng, the founder of cloud media, believes that the real value of decentralization lies in the construction of a shared and symbiotic intelligent closed-loop ecology, in which enterprises can play their own expertise and strengthen their main business. More importantly, this enabling form of sharing, symbiosis and win-win creation is concive to the intelligent upgrading of the whole instry at low cost, and is a great opportunity for dealers to seize.
8. Centralized trading platform, because the transaction data is not on the chain, so as long as there is a matching opponent single, the transaction speed is extremely fast. At the same time, the operation steps of the centralized trading platform are simple, the threshold of use is low, and it can provide rich trading pairs, so more users will choose the centralized trading platform, and more users will have better trading depth, which further promotes the transaction speed of orders on the centralized trading platform
e to the need to link transaction data and wait for miners to pack and broadcast transaction confirmation, the transaction speed of decentralized transaction is slow. The operation steps of decentralized trading platform are relatively complex, and the use threshold is higher. When it comes to the transaction of different blockchain assets, such as bitcoin and Ethereum, it needs more complex cross chain technology, and many decentralized trading platforms can't realize it, so the supported transactions are less than the centralized trading platform
celletf is a comprehensive application platform for defi (celletf. IO), which relies on the deployment of Ethereum public chain, including a number of smart contracts / protocols, passive bidding mechanism and ETF primary and secondary al market architecture. With only one site, it can embrace the unlimited possibilities of defi.
9. "One of the important reasons why the working theory of smart contracts has not been realized is the lack of digital systems and technologies that can support programmable contracts. The emergence of blockchain technology solves this problem. It can not only support programmable contracts, but also has the advantages of decentralization, non tampering, transparent and traceable process, so it is naturally suitable for smart contracts. Therefore, it can also be said that smart contract is one of the characteristics of blockchain technology "
the smart contract based on blockchain technology can not only give play to the advantages of smart contract in cost efficiency, but also avoid the interference of malicious behavior on the normal execution of the contract. The smart contract is written into the blockchain in digital form, and the characteristics of blockchain technology ensure that the whole process of storage, reading and execution is transparent, traceable and tamperable. At the same time, a set of state machine system is constructed by the consensus algorithm of the blockchain, so that the intelligent contract can run efficiently.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750