5
Designing Smart Contract Transactions and Ledger Data Structures
In Hyperledger Fabric, a smart contract, sometimes referred to as chaincode or just contract, is written by a developer. A contract implements a business logic agreed upon by stakeholders of the blockchain network. The functionality is exposed to client applications for them to invoke, provided they have the correct permissions.
A contract runs as an independent process in its own container, isolated from the other components of the Fabric network. An endorsing peer manages the lifecycle of the contract and of the transaction invocations. In response to client invocations, the contract queries the ledger and generates a transactions proposal.
Fabric provides Contract APIs for ...
Get Blockchain with Hyperledger Fabric - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.