IBM / blockchain-application-using-fabric-java-sdk

Create and Deploy a Blockchain Network using Hyperledger Fabric SDK Java
https://developer.ibm.com/code/patterns
Apache License 2.0
289 stars 156 forks source link

Register and enroll user #12

Closed ZhiqiangGuo1994 closed 5 years ago

ZhiqiangGuo1994 commented 5 years ago

I'm sorry to bother you. When I executed RegisterEnrollUser.java, user-****.ser file is generated.What‘s the effect of the generated new file?

balajikadambi commented 5 years ago

This file serializes the enrollment information. It is java serialized object. For subsequent requests, the user context is built by deserializing the file.

ZhiqiangGuo1994 commented 5 years ago

I want to execute the queryMarblesByOwner function in the marbles_chaincode.go file. How should I configure the current network?

maheshwarishikha commented 5 years ago

@ZhiqiangGuo1994 , If you want to deploy the different chaincode on the network then

  1. change chaincode related details in blockchain-application-using-fabric-java-sdk/java/src/main/java/org/app/config/Config.java

  2. Change chaincode invocation(invoke and query) functions in blockchain-application-using-fabric-java-sdk/java/src/main/java/org/app/chaincode/invocation/

Once done, build the client and execute APIs. It will work.

maheshwarishikha commented 5 years ago

Hope the response helped and worked for you. Closing this issue now.