Can a composer fabric business network, .bna file, be deployed to the bluemix blockchain service today? If so, is there a connection profile example that someone can share? Thanks.
相关问题
- Bluemix Analytics for Apache Spark log file inform
- chaincode in hyperledger composer vs chaincode in
- Send Raw Transaction Ethereum infura nodejs npm
- Hyperledger fabcar sample fabric showing connect f
- Not able to push my local app to bluemix
相关文章
- Is there an npm module to modify a pdf file in nod
- Does Composer needs an already built Fabric networ
- Hyperledger transaction verification
- Hyperledger fabric's ChannelCreationPolicy
- Kubernetes Persistent Volume Claim mounted with wr
- How to efficiently hash (SHA 256) in golang data w
- ltdl.h Not found error while building chaincode
- Error: Cannot find module './api' (Hyperle
You can use Composer with the Bluemix Blockchain service today.
However, you must be running a local copy of the Composer Playground as the version of Composer running on Bluemix (fabric-composer.mybluemix.net) only supports the web connection profile at the moment.
You can set up a local copy of the Composer Playground by following the instructions here: https://fabric-composer.github.io/start/getting-started-playground.html
Here's the connection profile that I used to connect to the Bluemix Blockchain service:
The hostname and port numbers in the URLs must come from the Bluemix dashboard. I find it easiest to get this information by navigating to "Service Credentials" and viewing the default credentials "Credentials-1". Here's an explanation of where each URL comes from:
membershipServicesURL is always "grpcs://" + url from the "ca" object (url also being discovery_host + ":" + discovery_port).
peerURL is always "grpcs://" + discovery_host + ":" + discovery_port from one of the peers listed in the "peers" array.
eventHubURL is always "grpcs://" + event_host + ":" + event_port from one of the peers listed in the "peers" array.
keyValStore is a directory on the file system of the system running Composer. If using the Docker images, then use the "/home/composer/.composer-credentials" path, otherwise use a directory that exists on your machine.
certificate comes from the "us.blockchain.ibm.com.cert" file which can be downloaded from the "cert" property in the credentials, for example "https://blockchain-certs.mybluemix.net/us.blockchain.ibm.com.cert". If you create this JSON manually, you must ensure that it ends with a "\n" newline character.
certificatePath comes from the "cert_path" property in the credentials.
You can also get the enrolment ID and enrolment secret to use for Bluemix from the credentials page; I recommend using "admin". Note that if you use the REST APIs to interact with the Bluemix service then you cannot use those same credentials with Composer.
One thing to note however is that the Bluemix Blockchain service can be unreliable due to problems with the event hub connection being timed out due to inactivity. When this happens, Composer will terminate and you may see an error. We are awaiting a fix to the hfc (Hyperledger Fabric Client) Node.js module that will correctly handle this error and reconnect as required.
Hope that helps,
Simon