Hyperledger Composer – Using the Fabric

Blockchain is HOT

You can’t go many places these days without hearing about blockchain. It is a truly disruptive technology that will change the way people do business with each other. If you have wanted to learn more about Blockchain but think the barrier to entry is too high, I have good news: Hyperledger Composer. Yes, that’s the good news. Read on.

What is Hyperledger Composer again?

Hyperledger Composer is a set of tools that allows you to quickly build, test, and manage blockchain applications. One of several projects under the Hyperledger umbrella, Composer provides:

  • A Domain-Specific Language (DSL) called CTO that lets you model a blockchain network
  • A sandbox – called Playground – that lets you quickly prototype a blockchain application
  • A command line interface (CLI) for managing and interacting with blockchain applications
  • Security through the use of ACL-style permissions
  • Tools
  • Lots more!

Using Composer, you can quickly build, test, and then manage blockchain applications that run on the Hyperledger Fabric.

Composer lowers the bar to building Fabric applications. How? Composer provides a framework that includes many common features of production-quality blockchain applications like management and security. So you spend your time writing business logic, not infrastructure.

Now, before going any further, if you haven’t checked out Part 1 or Part 2 of this series, you should do that now.

How do I work with a real blockchain network?

In Parts 1 and 2 you get your feet wet working with Hyperledger Composer:

  • The CTO modeling language
  • Tools (like composer-cli and VSCode)
  • Unit testing with Cucumber
  • Using Composer Playground in the IBM Cloud

But surely there’s more to Composer than that, right? You bet! What about Hyperledger Fabric? Check. Working with the Composer CLI? I’ve got you covered. Security? Absolutely!

How about a tutorial?

In Part 3 of the series, called Deploy locally, interact with, and extend your blockchain network, available at IBM developerWorks, you’ll install Hyperledger Fabric on your computer, and deploy the business network archive (BNA) to an instance of Hyperledger Fabric running on your machine (referred to as your local Hyperledger Fabric).

You’ll also install more tools and generate a Loopback-based REST interface that you can use to interact with the sample network blockchain application.

Part 3 also includes a detailed discussion of Hyperledger Composer security concepts. This part concludes with steps to pull it all together and extend the iot-perishable-network to create a more “real world” version of the Perishable Goods network.

How do I learn more?

Check out these links to learn more about Blockchain and Hyperledger Fabric and Composer:

Videos

Setup the Composer REST server to interact with your Fabric application:

 

Put it all together (complete demo of the Perishable Network)

Thanks for reading, and happy blockchaining!

–jsp

Hyperledger Composer – Refine and deploy your blockchain network

Blockchain is HOT

You can’t go many places these days without hearing about blockchain. It is a truly disruptive technology that will change the way people do business with each other. If you have wanted to learn more about Blockchain but think the barrier to entry is too high, I have good news: Hyperledger Composer. Yes, that’s the good news. Read on.

Wait, what the heck is Hyperledger Composer?

Hyperledger Composer is a set of tools that allows you to quickly build, test, and manage blockchain applications. One of several projects under the Hyperledger umbrella, Composer provides:

  • A Domain-Specific Language (DSL) called CTO that lets you model a blockchain network
  • A sandbox – called Playground – that lets you quickly prototype a blockchain application
  • A command line interface (CLI) for managing and interacting with blockchain applications
  • Security through the use of ACL-style permissions
  • Tools
  • Lots more!

Using Composer, you can quickly build, test, and then manage blockchain applications that run on the Hyperledger Fabric.

Composer lowers the bar to building Fabric applications. How? Composer provides a framework that includes many common features of production-quality blockchain applications like management and security. So you spend your time writing business logic, not infrastructure.

Now, before going any further, if you haven’t checked out Part 1 of this series, you should do that now.

How do I work with a real blockchain network?

In Part 1 of the tutorial series, I showed you about the CTO language, and how to model, deploy, and test a simple blockchain network application using Composer Playground.

Surely there’s more to it than that, right?

Of course. You’ll need tools in order to use Composer to work with real blockchain networks. Tools like:

  • Node.js
  • The Composer CLI
  • VSCode

What about unit testing your chaincode transactions? Composer has you covered. Through Cucumber steps written specifically for Composer, you can test every inch of your blockchain network (okay, maybe not every inch, but Cucumber is super-extensible).

How about a tutorial?

So, you’re convinced Composer is THE tool to use for building Hyperledger Fabric applications. Now what do you do? Sounds like you need a tutorial. Don’t worry, IBM developerWorks and I have you covered.

I’ve written a three part tutorial series on how to use Composer. When you’re finished with this tutorial series, you’ll be ready to build the next hot blockchain application. I talked about Part 1 of the series in a previous blog post. So be sure to check that out if you haven’t already.

In Part 2 of the series, called Hyperledger Composer Basics, Refine and deploy your blockchain network, available at IBM developerWorks, you’ll install the necessary tools to work with real Hyperledger Fabric applications running on your computer, including unit testing your chaincode using Cucumber. Part 2 is all about the development process for building blockchain applications. If you want to be a serious blockchain developer, you owe it to yourself to check it out.

How do I learn more?

Check out these links to learn more about Blockchain and Hyperledger Fabric and Composer:

Videos

Setup your Composer development environment:

Thanks for reading, and happy blockchaining!

–jsp

Hyperledger Composer – Model and test a blockchain network

Blockchain is HOT

You can’t go many places these days without hearing about blockchain. It is a truly disruptive technology that will change the way people do business with each other. If you have wanted to learn more about Blockchain but think the barrier to entry is too high, I have good news: Hyperledger Composer. Yes, that’s the good news. Read on.

What is Hyperledger Composer?

Hyperledger Composer is a set of tools that allows you to quickly build, test, and manage blockchain applications. One of several projects under the Hyperledger umbrella, Composer provides:

  • A Domain-Specific Language (DSL) called CTO that lets you model a blockchain network
  • A sandbox – called Playground – that lets you quickly prototype a blockchain application
  • A command line interface (CLI) for managing and interacting with blockchain applications
  • Security through the use of ACL-style permissions
  • Tools
  • Lots more!

Using Composer, you can quickly build, test, and then manage blockchain applications that run on the Hyperledger Fabric.

Composer lowers the bar to building Fabric applications. How? Composer provides a framework that includes many common features of production-quality blockchain applications like management and security. So you spend your time writing business logic, not infrastructure.

How about a tutorial?

So, you want to build a blockchain application, and Composer sounds like a good tool for getting you started. Now what do you do? Sounds like you need a tutorial. Don’t worry, IBM developerWorks and I have you covered.

I’ve written a three part tutorial series on how to use Composer. When you’re finished with this tutorial series, you’ll be ready to build the next hot blockchain application.

In Part 1 of the series, called Hyperledger Composer Basics, Model and test your blockchain network, available at IBM developerWorks, I tell you all about these features of Composer, and show you how to use them as you work with a perishable goods network. You’ll learn how to model a blockchain network’s features – such as assets, participants, and transactions – using the Composer CTO language, and you’ll see how to use the Composer Playground to quickly prototype and test the perishable goods network using an embedded Hyperledger Fabric instance that runs inside a Docker container.

How do I learn more?

Check out these links to learn more about Blockchain and Hyperledger Fabric and Composer:

Take a video tour of Composer Playground:

 

Model and test a blockchain network using Playground:

 

Thanks for reading, and happy blockchaining!

–jsp