当前位置:网站首页>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.
边栏推荐
- go——并发编程
- This article understands the process from RS485 sensor to IoT gateway to cloud platform
- 【冒泡排序以及奇数偶数排列】
- [华为云在线课程][SQL语法入门][学习笔记]
- Web Server 设置缓存响应字段的一些推荐方案
- C#+WPF 单元测试项目类高级程序员必知必会
- Matplotlib
- 3分钟实现内网穿透(基于ngrok实现)
- LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之二
- 使用.NET简单实现一个Redis的高性能克隆版(一)
猜你喜欢
随机推荐
袋鼠云思枢:数驹 DTengine,助力企业构建高效的流批一体数据湖计算平台
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!...
Web Server 设置缓存响应字段的一些推荐方案
3D激光SLAM:LeGO-LOAM---两步优化的帧间里程计及代码分析
深入解析分布式文件系统的一致性的实现
怎么在外头使用容器里php命令
被审稿人吐槽没有novelty!深度学习方向怎么找创新点?
MATLAB programming and application 2.7 Structural data and unit data
像用户体验设计师一样思考
面试一面
mysql数据库定时备份占用大量线程,导致全局锁表,有啥好的解决方法么
QT with OpenGL(HDR)
混动产品谁更吃香,看技术还是看市场?
MySQL database combat (1)
深度学习100例——卷积神经网络(CNN)实现服装图像分类
二叉搜索树(搜索二叉树)模拟实现(有递归版本)
图新地球为什么很模糊,白球、看图、下载问题深度剖析
面试官:工作两年了,这么简单的算法题你都不会?
三大产品力赋能欧萌达OMODA5
Enter the SQL Client to create the table, in another node into the SQL Client queries
![[Bubble sort and odd-even sorting]](/img/89/d63afe1900a05b2a5615fcc3c09ccb.png)








