Introduction to chaincode for Java developers

Chaincode for Java developers: Introduction Blockchain is hot! It’s one of those disruptive technologies
that has the potential to revolutionize the way business is done. And Blockchain is coming soon to a software
development project near you. This tutorial is designed to help you be
ready for that day. I’ll assume you’re familiar with basic Blockchain
concepts such as: * Trust
* Transparency, and * Accountability If you’re familiar with Hyperledger, then
you already know that Hyperledger
Fabric provides the basic framework for creating the
peer network, which creates the network of trust, and
maintaining the ledger, which provides transparency. But the Hyperledger Fabric also provides the
framework for the Smart Contract, which enables the accountability
aspect of Blockchain. The Smart Contract is business logic that
enforces the terms of a deal made between business
parties. So think
of the Smart Contract as like links in a chain. And the code that brings the Smart Contract
to life, and runs the business rules is called Chaincode. Get it? In this Tutorial, I’ll show you how to write
chaincode using the Java language. We’ll first take a look at the technology
landscape, which is somewhat fluid at the moment. Then I’ll show you how to set up a development
environment on your computer with a few tools you’ll need
to build and test your Java chaincode. I’ll also show you how to define a simple
validating peer network, run it locally on your computer,
and clone the Hyperledger Fabric source code to build
a critical component that lets you run chaincode written
in the Java language. The Hyperledger Fabric comes with lots of
examples, and I’ll show you how to build, deploy, and run
one of those examples. To do chaincode development means you need
development tools, which you will install into your Eclipse IDE. I’ve provided a skeleton project in Github,
along with programming exercises for you to use with
these development tools, and when you have completed the exercises
you will have implemented your first Smart Contract
using Java chaincode. Finally, I’ll show you how to deploy, run,
and test that chaincode in your local Blockchain network. As you can see, there is a LOT to cover. I hope you enjoy this tutorial, and thanks
for watching! Blockchain is coming. Will you be ready?

Leave a Reply

Your email address will not be published. Required fields are marked *