Currently, I am using docker-compose yaml file provided as example (cloned from location mentioned on composer website) to setup fabric 1.0
If I would like to change endorsement policy of fabric 1.0, then Is it possible using composer?
As David has mentioned in comment, Currently composer is not supporting way of applying endorsement policy while deploying 'bna' file.
Feature is under development, You can track here: github.com/hyperledger/composer/issues/1251
Related
I want to use AWS QLDB Client using aws sdk in laravel v7
I have followed all procedures written here.
I'm getting this error
Aws\Laravel\AwsServiceProvider::class Not found
Aws SDK PHP does not have a provider built in, it is for vanilla PHP. You will need to install the Laravel version of it, you can find the package on github.
composer require aws/aws-sdk-php-laravel
I followed the instructions https://ibm-blockchain.github.io/interacting/
I saw the APIs on Hyperledger Composer REST server.
I then updated the model, script and ACL. The Deployment was successful, but the APIs were still the same, so I ran this script again - no change:
./create/create_composer-rest-server.sh --business-network-card admin#perishable-network
composer version v0.19.10
Fabric version 1.1
21 nodes:
3 CLI
3 CA
3 orders
3 www
3 api
6 peers
channel name: common
My fabric network is up and running and I can commit a transaction. But I am trying to add composer playground into the mix. If I try a default install it fails because it wants to use composerchannel. My question is. Is there an way to install composer to an existing fabric deployment.
The Composer Playground uses Business Connection Cards that it finds on your local file system. By default these are under a folder under your home folder e.g. ~/.composer (Maybe you have created a standard PeerAdmin card for a standard 1 peer Development Fabric? )
If you have already connected to the Fabric with Composer, you will have some cards that you already use to commit a transaction. If you have separate machines you can use composer card export on the original machine and composer card import on the machine running Playground.
If you have not connected to the Fabric yet using Composer you might like to look at the Composer Tutorial for MultiOrg which goes through creating cards to connect Composer to the Fabric - it is not your exact scenario, but should provide enough information for you to move forward.
To answer the channel question, one of the files in the "Card" is a connection.json file and in that file the channel to use is specified. (By default composer uses a channel called composerchannel)
I'm try to learn a Hyperledger Composer.
now, Hyperledger Composer's sample test is working.
How to check blockchain in Hyperledger Composer?, have a some visual tool?
Composer is a development framework and suite of tools that is oriented towards accelerating the ability to write blockchain applications as a developer primarily. It simplifies and expedites the creation of blockchain applications. If you're new to Blockchain, Hyperledger Fabric or Hyperledger Composer, we recommend that you start with the tutorials like the Developer tutorial at the Hyperledger Composer website.
The present Hyperledger Explorer (shows blocks as they're added etc) is being updated to work with v1 of Hyperledger Fabric I understand https://github.com/hyperledger/blockchain-explorer
You therefore don't use composer tools or APIs to get a list of blocks - you need Fabric SDK REST APIs for that. This can help you -> https://github.com/hyperledger/fabric-sdk-rest - some parts are work in progress. But the salient point is the chaincode ID is the business network ID, where deployed Composer business networks are concerned. eg.
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9982c1c7e84b dev-peer0.org1.example.com-vehicle-lifecycle-network-0.11.3 "chaincode -peer.a. " etc etc
You can see every step what composer is doing in the logs. Command is => "docker logs ". you will get container name using "docker ps -a" command(orderer plays an important role).
Using the guide on https://hyperledger.github.io/composer/installing/using-playground-locally.html
The shell script has downloaded Hyperledger Composer 0.8.0 and Fabric V1 Beta docker images.
When using the Playground on my browser I am unable to deploy/import any sample business network (tried marbles network).
With the error:
t: line 33 column 1, to line 36 column 2. Class TradeMarble is not declared as abstract. It must define an identifying field.
Error on Composer Playground
I know there is a newer version of Composer (0.8.1; with 0.9.0 coming really soon) and Fabric V1 RC1. Do I need to update Composer and Fabric runtime/images?
We are in the process of updating the samples to support Composer v0.9. When v0.9 is released the online Composer Playground will be updated and you will be able to import samples again.
Sorry for the inconvenience!