freeCodeCamp/guide/chinese/blockchain/smart-contracts/index.md

9 lines
604 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Smart Contracts
localeTitle: Smart Contracts
---
## 智能合约
区块链中的交易是一种非常基本的合同 - 一方将资源发送给另一方。 在Etherium区块链中事务可以支持任何类型的逻辑。他们有表现力 Turing-Complete机器的强大功能 - 这意味着它们可以成为计算机可以执行的任务的步骤。
作为区块链上的一段代码,智能合约可以自动执行任务。 当帐户收到钱时,它可以自动将其分发给其他人。 这是完全透明的,因此所有节点(矿工)都可以看到正在执行的逻辑。