Hyperledger Composer Web application user authentication

see https://github.com/hyperledger/composer-sample-networks/blob/v0.16.x/packages/trade-network/test/trading.js#L21 but use FileSystemCardStore instead of MemoryCardStore – we have an issue on documentation for this right now – https://github.com/hyperledger/composer/issues/3088 the general flow is : Issue identity, businessNetworkConnection.issueIdentity(NS + ‘#’ + userData.id, userData.user); …. var userCard = new IdCard({…}); userCard.setCredentials(credentials); … Import Card: adminConnection.importCard(userCardName, userCard); …. .then(() => { // Connect to the business … Read more

Error in starting hyperledger fabric network with hyperledger composer

Are you behind a proxy / firewall ? If so in the composer network install command you require a -o npmrcFile parameter, to resolve the NPM registry. eg registry=https://mycompanynpmregistry.com:4873 (or the resolved IP address) as in composer network install -c PeerAdmin@hlfv1 -a digitalproperty-network.bna -o npmrcFile=/tmp/npmrcFile . See https://hyperledger.github.io/composer/latest/managing/connector-information If you are finding that you get … Read more

How to restart the fabric composer without losing the existing data?

The startFabric.sh under fabric-dev-servers (formerly fabric-tools) does more than just start the Fabric – it removes existing Fabric Containers and recreates new Containers from the Docker Images. The impact of this is that you lose all your data and your Business Network from the Fabric. All Business Network Cards except PeerAdmin@hlfv1 are now useless. If … Read more