Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#11 private data #40

Merged
merged 9 commits into from
Aug 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ To work with already configured channel you will need to provide following data
- cert – path to user certificate pem file
- privateKey – path to user private key pem file
- mspID – id of organization(predefined in fabric network) that user belongs to
- eventhubs – list of event hubs (deprecated, use peer event service)
- key-name – key value that can be used for referring eventhubs in this config file
- url – url for access
- pemFile – file location for x509 pem certificate for SSL
- properties – list of eventhub SDK properties
- peers – list of peers
- key-name – key value that can be used for referring peer in this config file
- url – url for access
Expand All @@ -37,8 +32,7 @@ To work with already configured channel you will need to provide following data
- key-name – key value that can be used for referring channel in application
- admin – user that will be used for working with this channel
- orderers – list of orderer key-names that serve this channel
- peers – list of peer key-names that serve this channel
- eventhubs (deprecated) – list of eventhub key-names that serve this channel
- peers – list of peer key-names that serve this channel

- cas – list of CAs
- key-name – key value that can be used for referring CA in application
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.luxoft'
version '1.4.2'
version '1.4.5'
ext.mavenLocalGroupId = 'com.github.Luxoft'

apply plugin: 'maven-publish'
Expand Down
6 changes: 2 additions & 4 deletions fabric-configurator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ Path of congitxlator can be overridden with parameter --configtxlator (ex. --con
Types of operations supported by the configurator:

- **config** - create channels and deploy chaincodes using fabric.yaml
- `%jar% --type=config --config=network/fabric-devnet.yaml --skipunauth`
- `%jar% --type=config --config=network/fabric-devnet.yaml`
- *config* - fabric.yaml configuration
- *skipunauth* (optional) - flag to skip failures on unauthorized requests
- *wait-chaincode* (optional) - flag to wait till chaincodes are fully initialized
- **wait-chaincode** - wait till chaincodes are fully initialized
- `%jar% --type=wait-chaincode --config=network/fabric-devnet.yaml --name=chaincode --timeout=60 --skipunauth`
- `%jar% --type=wait-chaincode --config=network/fabric-devnet.yaml --name=chaincode --timeout=60
- *config* - fabric.yaml configuration
- *name* (multiple, optional) - names of chaincodes
- *timeout* (optional) - seconds to wait, defaults to 60
- *skipunauth* (optional) - flag to skip failures on unauthorized requests
- **deploy** - deploy chaincode
- `%jar% --type=deploy --name=mychaincode`
- *name* - chaincode name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public static void main(String[] args) throws Exception {
OptionSpec<String> admin = parser.accepts("admin").withRequiredArg().ofType(String.class);
OptionSpec<String> signatures = parser.accepts("signature").withRequiredArg().ofType(String.class);
OptionSpec<Integer> timeout = parser.accepts("timeout").withOptionalArg().ofType(Integer.class).defaultsTo(60);
OptionSpec skipunauth = parser.accepts("skipunauth");
OptionSpec waitchaincodes = parser.accepts("waitchaincodes");

OptionSet options = parser.parse(args);
Expand All @@ -84,7 +83,7 @@ public static void main(String[] args) throws Exception {
FabricConfig fabricConfig = FabricConfig.getConfigFromFile(configFile);

if(!options.has(type) || mode.equals(Arguments.CONFIG)) {
success = cfg.configNetwork(fabricConfig, options.has(skipunauth), options.has(waitchaincodes), options.valueOf(timeout));
success = cfg.configNetwork(fabricConfig, options.has(waitchaincodes), options.valueOf(timeout));
} else if (mode.equals(Arguments.ENROLL)) {
UserEnroller.run(fabricConfig);
} else if (mode.equals(Arguments.GET_CHANNEL)) {
Expand Down Expand Up @@ -168,7 +167,7 @@ public static void main(String[] args) throws Exception {
else if (mode.equals(Arguments.UPGRADE))
cfg.upgradeChaincodes(hfClient, fabricConfig, names);
else if (mode.equals(Arguments.WAIT_CHAINCODE))
success = cfg.waitChaincodes(hfClient, fabricConfig, names, options.valueOf(timeout), options.has(skipunauth));
success = cfg.waitChaincodes(hfClient, fabricConfig, names, options.valueOf(timeout));
}

System.exit(success ? 0 : 1);
Expand Down
Loading