当前位置:网站首页>What is a smart contract?
What is a smart contract?
2022-08-03 10:54:00 【Wisdom Haohai】
Nick Szabo first proposed smart contracts in 1994.He defines it: "A smart contract is a computerized transaction agreement that enforces the terms of a contract."
The word "agreement" in the transaction agreement refers to the computer agreement.Nick Szabo's paper on smart contracts can be found at: http://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html.
Nick Szabo is a renowned computer scientist, legal scholar, and cryptographer whose research focuses on smart contracts and digital cash.In 1998, he also created the centralized digital cash Bitcoin Gold.
Why do you need smart contracts
Nick Szabo said: "Smart contracts are designed to enforce general contractual conditions, minimize malicious and accidental situations, and minimize the use of trusted intermediaries."
He believes that we need a computer protocol that can fully guarantee that if payment is made, the item will be sent, or if the item is sent, the money will be received.
In real life, we have many ways to achieve this.The goal of computer scientists is to automatically enforce contract terms with pre-determined code, without human intervention and third-party intermediaries.
The "intelligence" in smart contracts can be understood as automatic execution according to conditions, without human intervention, automatic or autonomous.
Is a "contract" a good analogy for a smart contract
By its name, isn't a good analogy for a smart contract the "contract" we enter into in our business activities?Actually not.
An apt analogy to a smart contract is the automatic cola vending machine we often use when talking about the computer term "finite state machine" or "state machine":
- We put a coin into the Coke dispenser and clicked the Coke out button.
- The vending machine releases a can of Coke from the outlet.
- The vending machine is restored to its original state.
Saab also stated in his 1997 article that the original ancestor of smart contracts was the humble vending machine.
In the Ethereum white paper, Vitalik also specifically pointed out that the "contract" here should not be understood as something that needs to be executed or obeyed, but as an "autonomous agent" that exists in the execution environment of Ethereum(autonomous agents), which have their own ethereum accounts, they receive the transaction information and are equivalent to being stabbed, and then automatically execute a piece of code.
Vitalik is the founder of Ethereum, the famous "Vitalik".
We can also look at it this way:
- What the blockchain stores is "state" and smart contracts are how it is used for state transitions.
- Smart contracts are like a special "clock" that turns the world from "synchronous" to "asynchronous".
Smart Property: Using Smart Contracts to Control Physical Assets
In the smart contracts paper, Szabo also discusses how smart contracts can be used for physical assets, forming so-called smart properties.
The so-called smart property is the property controlled by the smart contract program according to the set rules.Saab exemplifies the following:
- For example, to prevent theft of a car, the car will not activate unless the owner is determined to complete the correct Challenge Response Protocol.
- For example, if the car was bought with a loan, when the owner cannot repay the loan, the smart contract will automatically initiate a seizure order and hand over control of the car keys to the bank.Once the owner pays off the loan, the smart contract removes the seizure order.
The concept of smart assets was later expanded. In the introduction to Bitcoin, there is a saying: Assets controlled by smart contracts on the Bitcoin blockchain, whether physical or digital, are called smart assets.(see picture 1).
Figure 1: Smart Assets: By AreaOnline or offline assets controlled by smart contracts on the blockchain
Key papers by Nick Szabo:
- 1994, Smart Contracts.
- 1996, Smart Contracts: Building Blocks for Digital Markets.
- 1997, The Idea of Smart Contracts.
边栏推荐
- Depth study of 100 cases - convolution neural network (CNN) to realize the clothing image classification
- 跨链桥协议 Nomad 遭遇黑客攻击,损失超 1.5 亿美元
- How to deal with this time of MySQL binlog??
- 出色的移动端用户验证
- 成为优秀架构师必备技能:怎样才能画出让所有人赞不绝口的系统架构图?秘诀是什么?快来打开这篇文章看看吧!...
- Why is the new earth blurred, in-depth analysis of white balls, viewing pictures, and downloading problems
- 再谈“雷克萨斯”安全装置失效!安全手册疑点重重,网友:细思极恐
- 509. 斐波那契数
- 如何检索IDC研究报告?
- 多态详细讲解(简单实现买票系统模拟,覆盖/重定义,多态原理,虚表)
猜你喜欢
Web Server 设置缓存响应字段的一些推荐方案
With strong network, China mobile to calculate excitation surging energy network construction
深度学习100例——卷积神经网络(CNN)实现服装图像分类
【二分查找详解外加递归写法】附有全部代码
Babbitt | Metaverse daily must-read: Players leave, platforms are shut down, and the digital collection market is gradually cooling down. Where is the future of the industry?...
VL53L0X V2 laser ranging sensor collects distance data serial output
LeetCode_多叉树_中等_429.N 叉树的层序遍历
MySQL database combat (1)
开源一夏 | 教你快速实现“基于Docker快速构建基于Prometheus的MySQL监控系统”
用于发票处理的 DocuWare,摆脱纸张和数据输入的束缚,自动处理所有收到的发票
随机推荐
OS层面包重组失败过高,数据库层面gc lost 频繁
Skills required to be a good architect: How to draw a system architecture that everyone will love?What's the secret?Come and open this article to see it!...
MySQL database combat (1)
Advanced use of MySQL database
用于发票处理的 DocuWare,摆脱纸张和数据输入的束缚,自动处理所有收到的发票
Mysql OCP 72 questions
谷歌实用插件分享
混动产品谁更吃香,看技术还是看市场?
嵌入式软件组件经典架构与存储器分类
如何改变sys_guid() 返回值类型
袋鼠云思枢:数驹 DTengine,助力企业构建高效的流批一体数据湖计算平台
干货!一种被称为Deformable Butterfly(DeBut)的高度结构化且稀疏的线性变换
Binary search tree (search binary tree) simulation implementation (there is a recursive version)
深度学习100例——卷积神经网络(CNN)实现服装图像分类
GBase 8c与openGauss是什么关系?
ETL data cleaning case in MapReduce
Question G: Word Analysis ← Questions for the second provincial competition of the 11th Blue Bridge Cup Competition
一文带你弄懂 CDN 技术的原理
【无标题】函数,对象,方法的区别
被审稿人吐槽没有novelty!深度学习方向怎么找创新点?