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

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.

主站蜘蛛池模板: 沾化县| 牡丹江市| 广南县| 宝山区| 陇川县| 石城县| 中卫市| 上饶市| 建水县| 治县。| 台中市| 左云县| 江西省| 松滋市| 察隅县| 铁岭市| 长兴县| 团风县| 独山县| 九龙县| 凤山市| 高邮市| 诸暨市| 泉州市| 濮阳市| 太和县| 秦安县| 昌都县| 陆川县| 宁乡县| 周口市| 勃利县| 夏河县| 六枝特区| 虞城县| 高雄县| 鲁甸县| 巢湖市| 临夏市| 虹口区| 精河县|