Questions tagged [hyperledger-composer]

Hyperledger Composer (previously Fabric Composer) provides a layer of abstraction on top of the Hyperledger Fabric blockchain for building business applications. Please use this tag for questions relating to the use of Hyperledger Composer, but not general Hyperledger Fabric questions. Defects in Hyperledger Composer should be reported as GitHub issues.

Hyperledger Composer provides a layer of abstraction on top of the Hyperledger Fabric blockchain. Developers can design in terms of business networks, participants, identity, assets, registries, transactions, events and links, in contrast to the low level abstractions of chaincode and key-value stores.

The composer modelling language makes it easy for developers to model the specific nature of their business domains. The interactive web Playground allows them to author and test these models, and then create domain specific APIs for developers building applications.

Developers can use Composer tools to create applications which exploit these APIs, and create loopback connectors which provide connectivity between the blockchain and their existing systems.

We're keen to build a community so please take a look!

Environments

Hyperledger Composer is a node.js framework available under the Apache-2 license. Hosted in github, using Travis-ci and npm.

Getting Started

Our getting started guide will help you install Hyperledger Composer, define and deploy a business network and start to integrate the network with applications.

Resources

Deprecated

Update Aug 29th 2019: Hyperledger Composer has been deprecated. Please see the README for more information.

1914 questions
2
votes
1 answer

Hyperledger Fabric: [Java] ContractException- Transaction commit was rejected by peer peer0.org2.example.com

I'm going through the commercial paper tutorial in the Hyperledger Fabric docs, and I'm getting a runtime error when I try to use the Issue application…
2
votes
2 answers

Equivalent of Hyperledger Composer CTO model file in Hyperledger Fabric 1.4

For my Hyperledger Business Network, have defined all my network objects (Enums, Assets, Participants, Transactions, Events etc) in a Composer CTO Model file. I also use the Concept, Abstract and Relationship (-->) features as well in the cto file.…
Lalji
  • 21
  • 1
2
votes
1 answer

composer card import error return "Required file not found: connection.json"

I created the admin card for the business network using below command composer network start -c PeerAdmin@hlfv1 -n airlines8 -V 0.0.1 -A Admin -S adminpw logs Starting business network airlines8 at version 0.0.1 Processing these Network Admins:…
2
votes
1 answer

Error:Composer runtime is not compatible with client

The issue with starting the REST server, I got the error while starting composer-rest-server composer version is v0.20.9 composer-rest-server version v0.19.20 Here is the log : nithin@:~/fabric-tools/fabric-dev-servers$ composer-rest-server …
2
votes
1 answer

Unable to start Fabric on Mac OS, startFabric.sh gives daemon error

I am following the setup as per https://hyperledger.github.io/composer/latest/installing/development-tools.html. But when I run ./startFabric.sh, I run into error as per below logs docker ps -a: CONTAINER ID IMAGE …
2
votes
1 answer

"How to fix 'Error: Invalid or missing identifier' in hyperledger composer"

When I call a transaction named IntentForSale I get the 'Error: Invalid or missing identifier for Type PropertyListing in namespace org.example.property' I have tried to change let propertyListing = factory.newResource(propertynamespace,…
shantanu
  • 33
  • 7
2
votes
1 answer

Hyperledger Composer's Future

I recently learned Hyperledger Composer. So, I wanted to know if Composer is actively being developed or is it going to be obsoleted in the near future. I tried looking over the internet but could not get the right information. Thanks
RAJ SINGH
  • 23
  • 4
2
votes
1 answer

How to reference to an array of products with unit-test in Hyperledger Composer

My shipment has an array of products, but I don't understand how to reference to do that array of product. I am trying to setup the unit test enviroment and need to make test data available. shipment module asset Shipment identified by shipmentId{ …
2
votes
0 answers

How can we store CNN weights from keras .h5 file into hyperledger fabric?

I am trying to store model weights from training a model in keras library (.h5 file) inside a participant of hyperledger. Since the .h5 file is too large (160 mb) and is in binary format. In order to convert to UTF-8 encoded character I have used…
PaxPrz
  • 1,778
  • 1
  • 13
  • 29
2
votes
0 answers

Using Node 'require' inside Hyperledger Composer smart contract

Using node's require inside Hyperledger Composer smart contract I want to know whether it is possible to use npm / node packages inside Hyperledger Composer's business network application's logic. My requirement is, I am having a encrypted string…
gbids
  • 489
  • 1
  • 6
  • 16
2
votes
0 answers

Update Connection Profile: The Current Identity has not been Registered

I'm able to run the hyperledger fabric network successfully. Now, I want to add new and organisation at run time. I have made all the changes and able to setup new peer and organisation. But to deploy BNA on peers, I update the connection profile…
2
votes
1 answer

How to use query in Hyperledger composer logic.js if the query have multiple inputs?

for querying in logic.js I can use await query('selectCommoditiesWithHighQuantity') But how can I do that if I have multiple input? if the query have function like this query selectCommoditiesByTimeAndOwnerAndDataType { description: "Select all…
Darwin Harianto
  • 435
  • 4
  • 15
2
votes
1 answer

How to load sample data in Hyperledger Composer project

When I deploy a new Hyperledger Composer project it is completely empty. Is there a way to load some kind of seed/fixtures data?
Piotr Brudny
  • 654
  • 4
  • 16
2
votes
0 answers

How to configure the multi-user mode of hyperledger composer with the front-end of application?

I am working on a hyperledger composer project and facing issues while woking on the front-end development. While working on composer playground, we are able to create different identities and perform transactions from different identities. But when…
2
votes
1 answer

Hyperledger Composer - Rest-Server-Api Local-Passport Strategy for angular app not node.js?

Can I use passport-localstrategy, knowing that i'm using angular front-end generated by the composer-rest-server tool? Because in the passportjs documentation for passport-local they write that it can be used just in node.js applications.
irkoch
  • 75
  • 9