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
3
votes
4 answers

Hyperledger Composer issue identity but missing business card

I am working in a proof of concept with a Node.js application and 'composer-client' npm module. I have tried different commands such as adding a participant, adding an asset and performing a transaction and everything seems to work…
3
votes
1 answer

need to replace localhost:3000 with realip:3000 in composer-rest-server

I have uploaded the composer-rest-server on AWS machine , i have managed to launch without errors the composer-rest-server , although it always refer to http://localhost:3000 , i want to change my localhost to my actual host ip on AWS can someone…
TALAA
  • 6,184
  • 1
  • 13
  • 21
3
votes
1 answer

Passport Strategy to authenticate application users from local db

As per composer documentation I am able to validate my application users using github and after that redirecting to my blockchain application. But I have to use my local db where application users will be stored and have to validate application…
3
votes
6 answers

Failed to load connector module composer-connector-hlfv1 for connection profile hlfv1

I a trying to deploy my blockchain network on a cloud server, but the following command to deploy the bna file on the running hyperledger instance fails: composer network deploy -a basic-sample-network.bna -p hlfv1 -i PeerAdmin -s randomString I…
3
votes
1 answer

Create one more peer node using hyperledger-composer

I implemented hyperledger composer tutorial and create a simple business network definition and deploy it on through composer and implement it's rest API's through composer-rest-server. Now I want to add one more peer to it on a different local…
Chetan
  • 55
  • 1
  • 8
3
votes
1 answer

How to deploy hyperledger fabric on a network and run hyperledger composer on it?

I'm still a beginner and am working on a project. I have done the getting started from the fabric docs but I don't know how exactly I am supposed to deploy it to a network so that it runs on multiple peers. After creating the fabric, I want to…
3
votes
1 answer

Different between 'o' and arrow symbol used in .cto file?

I am bit confused between 'o' and '-->' used in Model file, For example : asset Field identified by assetId { o String assetId o Customer owner --> Customer custId } participant Customer identified by customerId { o String…
deepak parmar
  • 691
  • 1
  • 6
  • 20
3
votes
3 answers

Fabric Composer test code not working

I´ve just replaced the Composer default sample ("sampleAsset", "sampleTransaction", etc) by another one I created, for my better understanding. Everything works except for the transaction, which return me the error message: "**Error: Could not…
3
votes
3 answers

Getting timestamps in deterministic way in Hyperledger Composer transactions

Is there a deterministic way to get timestamp in transaction function, similar to stub.GetTxTimestamp() that can be used in Go version of Fabric's chaincode.
3
votes
1 answer

How to authenticate to REST API and map to Fabric credentials

How can I create a new user account with username/password to authenticate against composer-rest-server? How would I authenticate with this newly created user account against composer-rest-server? How would I manage the session for that user?…
Dan Selman
  • 2,287
  • 2
  • 9
  • 18
3
votes
1 answer

How to resolve a relationship to get a hold of the reference being pointed to?

I have been creating a model where one of my assets have a reference to a specific participant. When I retrieve my asset using the composer-client API I would like to retrieve the details of the participant being referenced. In the CTO language…
3
votes
3 answers

Failed to load connector module "composer-connector-hlfv1" for connection profile "defaultProfile"

Using Mac OS 10.12 https://github.com/fabric-composer/sample-applications with commit c5aa100d2532b7ec085a650e515a677dc3446ad2 when I run npm test in getting-started directory, I got below error error: [Composer-GettingStarted] Error: Failed to load…
xixuejia
  • 179
  • 4
3
votes
2 answers

Fabric Composer o vs -->

I can't find any docs on this, so what is the difference between o and --> in Fabric Composer, and under what circumstances should they be used? Consider this... asset Document identified by docId { o String docId o Articles[] articles } vs…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
2
votes
1 answer

hyperledger explorer walletstore path

When I start to run hyperledger explorer I get this below error. After a search I found that I need to give a path to walletstore path. But I couldn't find where the walletstore path. docker-compose.yaml file volumes: -…
2
votes
2 answers

Hyperledger Fabric Chaincode Installation Failed - no matching manifest for linux/arm64/v8

I am doing the Hyperledger Fabric Tutorial: Running a Fabric Application and I am at the Set up the Blockchain network section. I am using M1 MacBook Pro, and I need to deploy the chaincode using ./network.sh deployCC -ccn basic -ccp…