Smart Contracts and Chaincode

官方文档:Smart Contracts and Chaincode

TODO

下图展示Fabric是如何处理验证成功的交易和验证不成功的交易的。

smartcontract.diagram.04

All transactions have an identifier, a proposal, and a response signed by a set of organizations. All transactions are recorded on the blockchain, whether valid or invalid, but only valid transactions contribute to the world state.

Intercommunication

A Smart Contract can call other smart contracts both within the same channel and across different channels. It this way, they can read and write world state data to which they would not otherwise have access due to smart contract namespaces.

There are limitations to this inter-contract communication, which are described fully in the chaincode namespace topic.