官术网_书友最值得收藏!

Smart contract

In 1994, Nick Szabo first used the term smart contract. Szabo is a computer scientist and the inventor of Bit Gold. In his blog, Nick Szabo describes it as similar to the vending machine, which is the granddaddy of all smart contracts. A vending machine is built with hard-coded rules that define what actions are to be executed when certain conditions are fulfilled. For example:

  • If Susan inserts a dollar bill, then she will receive a bag of pretzels
  • If Tom inserts a five-dollar bill, then Tom will receive a bag of pretzels and change of four dollars

In other words, rules are defined and enforced by a vending machine physically. Similarly, a smart contract contains rules in program code that are triggered and run on the Ethereum platform when certain conditions are met.

Some important facts about smart contracts are summarized as follows:

  • A smart contract is immutable.
  • A smart contract is permanent.
  • A smart contract is timestamped.
  • A smart contract is globally available.
  • A smart contract is a digitized legal document.
  • A smart contract defines the protocol for facilitating, verifying, or enforcing an agreement among trading parties.
  • Smart contracts allow for the execution of transactions without an intermediary. The transactions are auditable and irreversible.
  • Smart contracts are applicable in many cases.
  • For deploying and running a smart contract, you need to sign it digitally.
  • Smart contract code is visible to everyone. This makes smart contracts vulnerable, as a hacker can tap the flaws in the code and initiate vicious attacks.

主站蜘蛛池模板: 乐都县| 卢湾区| 伊金霍洛旗| 调兵山市| 新宾| 阿坝县| 万州区| 方正县| 循化| 九寨沟县| 浮梁县| 措美县| 宁化县| 永寿县| 五河县| 两当县| 鄂托克前旗| 闽清县| 宜昌市| 手游| 北碚区| 石泉县| 浮山县| 上虞市| 广汉市| 清水县| 鄂温| 东源县| 陆良县| 乌兰浩特市| 沁源县| 沙湾县| 曲水县| 孟津县| 淮南市| 临洮县| 石首市| 朝阳县| 长白| 盐源县| 德惠市|