IBM Developer Day | Bengaluru | March 14th Register now
Get the code
View the demo
By Mohan Venkataraman, Sandeep Pulluru, Ratnakar Asara | Published September 12, 2018
Note: The authors of this code pattern work for Chainyard.
Recently, a multi-million dollar painting by Andy Warhol was tokenized and sold on blockchain in what was the first transaction of its kind. So clearly these types of transactions are no longer outside the realm of possibility. We have finally democratized the art market! This approach creates accessibility for non-traditional art collectors and enables art sellers to enter new markets on a global scale. This code pattern features an app that instantiates a local blockchain network to store artwork images in digital format on the ledger.
This code pattern is a sample Node.js-based auction application that shows you how to store and retrieve Base64-encoded and Base64-encrypted images on and from a Hyperledger Blockchain ledger. The application launches the Hyperledger Fabric network and then starts the application as a REST API server built on top of Node SDK APIs. The main goal of this application is to demonstrate how to leverage encoding and encryption on a blockchain. This use case demonstrates how to store images of artwork on a blockchain for an art auction. This model can be applied to other types of assets such as forms and videos. There are several approaches to storing the images:
This pattern uses the third option. The Base64 command can be done on the command line or as part of a script. The command is available by default in OS X. The syntax is:
$ base64 –i -o
One can also cat the input from a file.
By default, blockchain supports encryption, security, and immutability. These characteristics are fundamental for the art auction use case.
When you have completed this code pattern, you will understand how to:
We challenge you to try using this with other types of assets!
Find the detailed instructions in the README. These steps explain how to:
Before open source was cool, IBM was busy donating our code, establishing open licensing, pushing for open governance in the…
Back to top