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.
Add IdCard.getRoles function (#1415) (hyperledger-archives#1684)
Signed-off-by: Mark S. Lewis <[email protected]>
- Loading branch information
1 parent
12326db
commit bab39ae
Showing
8 changed files
with
137 additions
and
8 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
39 changes: 39 additions & 0 deletions
39
packages/composer-common/test/data/id-cards/valid-with-roles/connection.json
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "hlfv1", | ||
"type": "hlfv1", | ||
"orderers": [ | ||
{ | ||
"url": "grpcs://", | ||
"cert": "orderer1.crt" | ||
}, | ||
{ | ||
"url": "grpcs://", | ||
"cert": "orderer2.crt" | ||
} | ||
], | ||
"ca": { | ||
"url": "https://", | ||
"name": "", | ||
"trustedRoots": "", | ||
"verify": true | ||
}, | ||
"peers": [ | ||
{ | ||
"requestURL": "grpcs://", | ||
"eventURL": "grpcs://", | ||
"cert": "peer1.crt" | ||
}, | ||
{ | ||
"requestURL": "grpcs://", | ||
"eventURL": "grpcs://", | ||
"cert": "peer2.crt" | ||
} | ||
], | ||
"keyValStore": "/YOUR_HOME_DIR/.composer-credentials", | ||
"channel": "composerchannel", | ||
"mspID": "Org1MSP", | ||
"timeout": 300, | ||
"globalcert": "", | ||
"maxSendSize": 10, | ||
"maxRecvSize": 15 | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/composer-common/test/data/id-cards/valid-with-roles/credentials/private
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg00IwLLBKoi/9ikb6 | ||
ZOAV0S1XeNGWllvlFDeczRKQn2uhRANCAARrvCsQUNRpMUkzFaC7+zV4mClo+beg | ||
4VkUyQR5y5Fle5UVH2GigChWnUoouTO2e2acA/DUuyLDHT0emeBMhoMC | ||
-----END PRIVATE KEY----- |
4 changes: 4 additions & 0 deletions
4
packages/composer-common/test/data/id-cards/valid-with-roles/credentials/public
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa7wrEFDUaTFJMxWgu/s1eJgpaPm3 | ||
oOFZFMkEecuRZXuVFR9hooAoVp1KKLkztntmnAPw1Lsiwx09HpngTIaDAg== | ||
-----END PUBLIC KEY----- |
11 changes: 11 additions & 0 deletions
11
packages/composer-common/test/data/id-cards/valid-with-roles/metadata.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "Conga", | ||
"description": "A valid ID card", | ||
"businessNetwork": "org-acme-biznet", | ||
"image": "images/conga.png", | ||
"roles": [ | ||
"peerAdmin", | ||
"channelAdmin", | ||
"issuer" | ||
] | ||
} |
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