jawahar
jawahar

Reputation: 85

Setting "Credentials set" for hyperledger Composer card

What are the step to create card with credentails as "Credentials set" hyperledger composer?

Upvotes: 1

Views: 373

Answers (1)

Paul O'Mahony
Paul O'Mahony

Reputation: 6740

You can do so in Playground -> https://hyperledger.github.io/composer/latest/playground/id-cards-playground#manually-creating-a-business-network-card

From the CLI -> https://hyperledger.github.io/composer/latest/managing/id-cards-playground#creating-a-business-network-card-from-component-files

Programatically - as shown by the example here -> https://github.com/hyperledger/composer-knowledge-wiki/blob/latest/knowledge.md#card-api-errors--resolutions - see the section from the line

https://github.com/hyperledger/composer-knowledge-wiki/blob/latest/knowledge.md#card-api-errors--resolutions

onwards.

The important thing is that if you're using an enrol secret, you should connect() or ping the network first, so that the identity is activated and its credentials (certificate/key) can be downloaded to 'his/her' wallet (from where it can be exported and shared if that is the requirement). You can use it in Playground, or export it (eg. for importing into the REST API wallet, when interacting with the business network from the Composer REST APIs)

Upvotes: 1

Related Questions