Get the code
View the demo
by Mohan Venkataraman, Sandeep Pulluru, Ratnakar Asara | Published September 12, 2018
Archived date: 2019-05-01
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:
April 26, 2019
Before open source was cool, IBM worked to establish open source as technology that's safe (and good!) for the enterprise.
Back to top