IBM Developer Day | Bengaluru | March 14th Register now
Get the code
By Dan Selman, Matt Roberts | Published October 2, 2018
Learn how to track perishable goods on a Hyperledger blockchain using a smart legal contract running on Clause to capture the contractual terms and penalty calculations between food producers, importers, and shippers.
The food industry is the perfect place to apply blockchain technology. Our local grocery store hates having to waste food because of spoilage and would jump at the opportunity to track its food supply chain. Blockchain enables traceability and ensures the quality of food produce by tracking each product’s origin along with its current status. As most things become digitized, so are contracts. Blockchain is transforming the exchange of assets to a model based on a business network that uses a distributed ledger. This model requires that you establish governing rules for digital asset exchanges — hence, the idea of smart contracts was born. The Accord Project is an open source software initiative that has established specifications, tooling, and code for smart legal contracts.
The Clause platform manages digital legal contracts that adhere to the Accord Project’s open source specifications for smart legal contracts.
This developer code pattern illustrates how a legal agreement, such as a shipping contract, can be automated with the use of trusted data from the IBM Blockchain Platform. In this scenario, the Hyperledger Composer business network (executing on Hyperledger Fabric v1) invokes the Clause platform. Hyperledger Fabric stores the state of assets on the blockchain, while the Cicero engine from the Accord Project executes contract logic off-chain on the Clause platform.
When you have completed this code pattern, you will understand how to:
Find the detailed instructions in the README. These steps explain how to:
Get the Code »
Back to top