Book Image

Oracle Blockchain Quick Start Guide

By : Vivek Acharya, Anand Eswararao Yerrapati, Nimesh Prakash
Book Image

Oracle Blockchain Quick Start Guide

By: Vivek Acharya, Anand Eswararao Yerrapati, Nimesh Prakash

Overview of this book

Hyperledger Fabric empowers enterprises to scale out in an unprecedented way, allowing organizations to build and manage blockchain business networks. This quick start guide systematically takes you through distributed ledger technology, blockchain, and Hyperledger Fabric while also helping you understand the significance of Blockchain-as-a-Service (BaaS). The book starts by explaining the blockchain and Hyperledger Fabric architectures. You'll then get to grips with the comprehensive five-step design strategy - explore, engage, experiment, experience, and in?uence. Next, you'll cover permissioned distributed autonomous organizations (pDAOs), along with the equation to quantify a blockchain solution for a given use case. As you progress, you'll learn how to model your blockchain business network by defining its assets, participants, transactions, and permissions with the help of examples. In the concluding chapters, you'll build on your knowledge as you explore Oracle Blockchain Platform (OBP) in depth and learn how to translate network topology on OBP. By the end of this book, you will be well-versed with OBP and have developed the skills required for infrastructure setup, access control, adding chaincode to a business network, and exposing chaincode to a DApp using REST configuration.
Table of Contents (8 chapters)

Demystifying the craft of chaincode development

With HLF, chaincode must implement the chaincode interface in any of these languages: Go, Node.js, or Java. A chaincode developer can select any of these programming languages to develop in. Fabric's shim package (github.com/hyperledger/fabric/core/chaincode/shim) is paramount in chaincode development.

It provides support for all earlier languages. This package has two interfaces, which play a key role in the chaincode. The syntax of these interfaces and their methods may change, depending on the language, but their purpose is the same.

Essentially, when a transaction is received, these chaincode interfaces are called. Firstly, when a chaincode receives a transaction request, the Init method is invoked. This allows for the initialization of the application state. Subsequently, the Invoke methods are called when an invoke transaction...