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

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.

主站蜘蛛池模板: 宜州市| 齐河县| 阿坝县| 潼南县| 贡嘎县| 稻城县| 云安县| 昆山市| 乐平市| 汉川市| 靖江市| 永福县| 黑山县| 榆树市| 尼木县| 永定县| 永城市| 金寨县| 浦城县| 治县。| 若羌县| 石嘴山市| 凤山县| 柘城县| 林甸县| 肃宁县| 万安县| 内丘县| 无极县| 马鞍山市| 大邑县| 永春县| 东丰县| 驻马店市| 罗甸县| 察雅县| 黑龙江省| 伊宁县| 东港市| 土默特左旗| 陇南市|