Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Oracle Blockchain Quick Start Guide
  • Toc
  • feedback
Oracle Blockchain Quick Start Guide

Oracle Blockchain Quick Start Guide

By : Acharya, Eswararao Yerrapati, Prakash
close
Oracle Blockchain Quick Start Guide

Oracle Blockchain Quick Start Guide

By: Acharya, Eswararao Yerrapati, 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)
close

Testing chaincode

A chaincode can be tested locally, without installing it on OBP. There are two ways to test chaincode: using mock shim and using REST endpoints.

Testing chaincode using the shim

Let's see how to test the earlier chaincode developed locally in the Go language. Before that, here are some key points to note:

  • Install the Go language locally on your machine.
  • This test filename should take this form: <Go file name>_test.go.

For example: if the chaincode name is education.go, then this test filename should be education_test.go.

  • Keep both files in the same folder.
  • Set GOPATH to the folder.
  • Install the dependent packages used in the chaincode if they can't be found.

For example: go get github...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete