The power of blockchain goes beyond the security it provides. It is about the transparency and peace of mind that it provides through immutability. Every single transaction, whether that transaction is creating new assets on the blockchain or deleting from the blockchain, is recorded and hashed.
The IBM Blockchain Platform, leveraging open source Hyperledger Fabric technology, provides an easy interface to look inside the transactions, or blocks, within the blockchain. Not only that, but it provides an easy tool via Hyperledger Composer, to create the data schema and logic behind the smart contracts that make the blockchain so useful.
The “Create a fair-trade supply network” code pattern shows you how to digitize the paperwork and documents that are part of the supply chain. Each step of the supply chain is recorded as a different function, in which the participant will submit the relevant data. Once the data is submitted, it is recorded on the blockchain, and will be available to whomever has access to it.
Lastly, our code pattern shows how to write to the blockchain. When a cup of coffee is given out from a coffee shop, each cup will have a barcode with a unique cupId. The coffee shop will scan the barcode with their own application, which calls an API endpoint that writes to the blockchain. That API will write the cupId, with its associated metadata onto the blockchain. That way, when a customer scans the barcode, the customer will see personalized data such as what time the coffee was served, which barista served the coffee, what type of beans the coffee was brewed from, and what type of drink was served. The customer also can follow the batch of beans used in that coffee from its origin all the way to when it gets delivered to the retailer. Overall, this pattern shows how to get started putting one organization’s data onto the blockchain, along with documents gathered from other organizations.