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.

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

推薦文章

比特幣跌破9.5萬、以太坊失守3300美元,本週聖誕節市場避險情緒濃厚

比 特幣週六最高從 92,268 美元反彈到 9.95 萬美元之後,又開始一波震盪下跌,撰稿當下最...

Joe
2 1小時前

加密貨幣交易中的心理關口:恐懼與貪婪如何影響市場?

在加密貨幣市場中,交易心態對行為有著深遠的影響,這大大影響著價格波動和交易決策。本文源自 Abdu...

白話區塊鏈
2 1小時前

為慶祝聖誕,Elfbird精靈鳥推出限量版聖誕鳥

在衆多加密貨幣大幅下跌之際,Elfbird 精靈鳥以其優異玩法設計和豐厚收益仍然吸引了許多玩家參與...

星球日報
2 1小時前

Web3.0安全开發實踐:探索比特幣DeFi生態中的PSBT

近年來,部分籤名比特幣交易(PSBT)在比特幣生態系統中獲得了顯著關注。隨着如Ordinal和基於...

CertiK
2 1小時前

24H熱門幣種與要聞 | Michael Saylor發布數字資產框架提案;Azuki疑似即將發幣(12.23)

24 H 熱門幣種 1、CEX 熱門幣種 CEX 成交額 Top 10 及 24 小時漲跌幅: B...

星球日報
2 1小時前

從銘文賽道看AI Agent敘事:有哪些潛在發展演變邏輯和投資機會?

原文作者:Haotian 可能大家都感覺這一輪 AI Agent 敘事推進像極了 23 年以來的銘...

星球日報
2 1小時前