智能合约(英语:Smart contract)是一种旨在以信息化方式传播、(刘森-180-2857-8624)验证或执行合同的计算机协议。智能合约允许在没有第三方的情况下进行可信交易,这些交易可追踪且不可逆转。智能合约概念于1995年由Nick Szabo首次提出。
The purpose of smart contracts is to provide better security methods than traditional contracts and reduce other transaction costs related to contracts.
数字形式意味着合约不得不写入计算机可读的代码中。这是必须的,因为只要参与方达成协定,智能合约建立的权利和义务,是由一台计算机或者计算机网络执行的。
更进一步地说明:
(1)达成协定
When will the participants of the smart contract reach an agreement?The answer depends on the specific smart contract implementation.Generally speaking,the contract is discovered when the participant is committed to the execution of the contract by installing the contract on the contract host platform.
(2)合约执行
The true meaning of"implementation"also depends on implementation.Generally speaking,implementation means active implementation through technical means.
(3)计算机可读的代码
In addition,the specific"digital form"required by the contract is very dependent on the agreement agreed by the participants.
智能合约的优势
1、信任
2、备份
3、自治
4、速度
5、自动化
6、加密与安全
开发语言
主要有以下几种开发语言1:
Solidity:这是一种类似于js的语言,并且这个语言被称为开发智能合约的旗舰语言。
Serpent:这是一种类似于Python的语言。
LLL:这是一种类似于汇编的低级语言。
Mutan:这是一种类似于C的语言,目前已被放弃。
开发环境
主要有以下几种开发环境3:
Mix:Mix项目现在已经被以太坊官方停止支持了,开发团队现在进行Remix项目4。
Remix
Solidity realtime compiler and runtime:在线编译和运行环境。
Ethereum Studio:这是一个在线开发的工具,不需要在本地下载安装。在这个网站注册完账号并登录后,点击页面左上角的Start Now按钮后就可以进入开发环境了。
Visual Studio 2015:对于初学者来说,建议选择VS2015社区版,这个版本是免费的,而且功能齐全。使用VS2015开发智能合约的环境搭建可以参考这篇文章:各位童鞋,windows下Visual Studio 2015里可以开发基于以太坊的Solidity项目了。但是,就我个人而言,我不建议大家选择Windows作为智能合约的开发平台。以太坊开发团队主要采用Ubuntu系统作为开发平台,而他们也建议开发者应该采用Ubuntu 64位系统开发。我使用Windows系统搭建以太坊开发环境的时候,遇到了很多奇葩无解的问题。Windows的命令行与Ubuntu相比就是一坨翔,使用Ubuntu系统应该是初学者佳的方案。
资讯标签:
智能合约DeFi质押代币模式系统开发流程制度方案(成熟技术)