HOKIE: The key to DeFi

2021-11-03 14:11:00

Now our life is almost inseparable from the contract, generally speaking, work is signed with the company labor contract, buy a house is signed with the real estate company contract, buy insurance is signed with the insurance company insurance contract; At a small level, online shopping, ordering takeout, taking a taxi and buying lottery tickets are all contracts signed with relevant service providers. Where there are people, so to speak, contracts are used.

Even when we make a bet, it is a contract, but if one side reneges, it becomes difficult to keep the contract. If there is a contract, the rules are set in advance, and when the clause is triggered, the contract is automatically enforced without human intervention or fear of repudiation. Is there such a contract? Yes, there is. This is a smart contract.

1. What is a smart contract

Smart Contract is an idea proposed by the cryptographer Nick Saab in the 1990s. Due to the lack of a credible execution environment at that time, Smart Contract was not applied and developed until the emergence of Ethereal, which revived Smart Contract.

So what exactly is a smart contract? Simply put, smart contracts are contracts that replace written terms in legal language with computer language and are automatically executed by programs. In other words, smart contracts are digital versions of traditional contracts that run on a blockchain network and are automatically executed by programs.

Vending machines, ATMs, to some extent, can be understood as machines that execute smart contracts, but they're not really smart contracts.

2. What are the characteristics of smart contracts?

Compared with traditional contracts, smart contracts have three characteristics:

1). The contract content is open and transparent

Smart contracts are deployed on blockchain, and the contract content is naturally open and transparent.

2). The contract shall not be tampered with

Similarly, the content of a smart contract cannot be modified because it is deployed on a blockchain.

3), permanent operation

The smart contract running on the blockchain is also jointly maintained by the network nodes on the blockchain. As long as the blockchain is in place, the smart contract can run forever. There is a sense of brotherhood where the chain is and the contract is.

Smart contracts supported by three characteristics of blockchain have the following advantages compared with traditional contracts:

1. Trust.

Because smart contracts are blockchain-based, their contents are open, transparent and immutable. Code is law. Based on the trust of Code, traders can safely and safely trade in an environment of distrust.

2. Economic and efficient

Compared with traditional contracts, disputes are often caused by differences in understanding of the terms of the contract. Smart contracts do a good job of avoiding disagreements through the language of computation, creating few disputes and achieving consensus at a low cost. In terms of the smart contract, the arbitration result shall take effect immediately. Therefore, compared with traditional contracts, smart contracts have economic and efficient advantages.

3. No need for arbitration by cooperating manufacturers

If A and B are betting on whether it will rain tomorrow, the loser will have to pay the other party $100. If the loser denies it, the winner gets no reward. To this end, to find a cooperative manufacturer arbitration organization, inefficient and time-consuming. However, if the bet is written on the smart contract, when the bet is made, each party will put $100 into the smart contract address. The smart contract will be executed automatically according to the final result, and the winner will take all the rewards. It can be seen that the smart contract does not need to be arbitrated by the partner manufacturers.

Are smart contracts really smart?

All the advantages of smart contracts mentioned above, is smart contract really smart and without disadvantages? No, smart contracts have their drawbacks.

As mentioned above, the immutable nature of smart contracts makes it easy to build trust. But at the same time, there is also a bad side. If there are loopholes in the smart contract, hackers can take advantage of the loopholes in the smart contract to make profits for themselves.

Take a simple example, a vending machine, the original price of $5 drink, due to negligence, written 50 cents, the administrator found, can immediately correct. But if the vending machine invokes a smart contract on the blockchain, the error cannot be fixed until the drinks run out.

On the other hand, the intelligent contract itself cannot obtain (perceive) external information, involving that it needs external information to decide the contract, and relevant information needs to be written into it before it can make a decision. For example, A and B bet on whether it will rain tomorrow. The smart contract itself does not know whether it will rain the next day. It needs to provide it with information from other sources, such as the Central Meteorological Station.

On both counts, smart contracts are neither perfect nor smart.

4. Summary

To sum up, we know about smart contracts:

Smart contracts are programmatically executed contracts that use computer language instead of legal language. Deployed on the block, it also has the characteristics of open and transparent data of the block chain, non-tampering and permanent operation.

Compared with traditional contracts, smart contracts have the advantages of trust, security, efficiency and no need for arbitration by partner vendors. But the wisdom contract is not perfect, and it's not smart or it's not smart at all.

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播信息之目的,不構成任何投資建議,如有侵權行為,請第一時間聯絡我們修改或刪除,多謝。

推薦文章

VC 如何看待目前的迷因幣狂潮?Meme 本輪週期還能走多久

Y etta,現在這種市場你們焦慮嗎?,這是在一個飯局上別人認真向我發出的提問,我當時先是一愣,不...

PANews
6 6小時前

比特幣直衝 10 萬美元,滿手山寨幣的我該怎麼辦?

比 特幣吸血行情處在自我強化的階段,之前只是吸血山寨幣,這兩天開始吸血鏈上 MeMe 幣。早上觀察...

PANews
6 6小時前

星球日報|Cboe向美SEC提交4支Solana現貨ETF上市申請;Tether近期已累計增發90億枚USDT(11月22日)

頭條 Cboe 向美 SEC 提交 4 支 Solana 現貨 ETF 上市申請 彭博高級 ETF...

星球日報
6 6小時前

香港Web3宣言兩周年,HashKey總經理Anna Liu談代幣化未來

整理:Tia,Techub News 作為亞洲頂尖的加密資產企業之一,HashKey Group...

TechubNews
5 6小時前

萬萬沒想到,AI盜了我的錢包

原創 | Odaily星球日報( @OdailyChina ) 作者|Azuma( @azuma_...

星球日報
6 6小時前

美 SEC 主席 Gary Gensler 宣布將辭職,加密貨幣迎來四年坦途?

撰文:Alex Liu,Foresight News 11 月 22 日凌晨,亞洲時區夜深人靜之際...

ForesightNews
6 6小時前