forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs and test docs changes, fixes, v1 changes in examples (hyperledge…
…r-archives#1664) * Change to use digitalproperty and change sequence of things * Updated to emphasise non-privileged user for install Added before prereqs-ubuntu,sh description - as this should also be run as 'non-privileged' * Updated to show v1 defaults and example * Added issuer authority prerequisite info ; add biz connect sample code (replacing TODO)
- Loading branch information
Showing
4 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ certificate. | |
## Before you start | ||
|
||
Before you follow these steps, you must have added a participant to a participant | ||
registry. | ||
registry. The **issuer** of a new identity (whether using command line or using the Javascript APIs below) must itself have 'issuer' authority and as appropriate, ACLs that permit him/her issue the identity (to be associated with the participant) in Composer. | ||
|
||
The procedure below shows an example using the following model of a participant | ||
from the Getting Started walkthrough. | ||
|
@@ -40,11 +40,19 @@ of that participant has been created and placed into a participant registry. | |
|
||
## Procedure | ||
|
||
1. Issue an identity to the participant | ||
1. Connect and Issue an identity to the participant | ||
* JavaScript API | ||
|
||
|
||
|
||
```javascript | ||
let businessNetworkConnection = /* TODO: get a business network connection */ | ||
/* replace with your connection info */ | ||
this.businessNetworkConnection = new BusinessNetworkConnection(); | ||
this.businessNetworkConnection.connect('hlfv1', 'net.biz.digitalPropertyNetwork', participantId, participantPwd) | ||
.then((result) => { | ||
this.businessNetworkDefinition = result; | ||
}); | ||
|
||
businessNetworkConnection.issueIdentity('net.biz.digitalPropertyNetwork.Person#[email protected]', 'maeid1') | ||
.then((result) => { | ||
console.log(`userID = ${result.userID}`); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters