I'm trying to connect api layer for go chaincode in hyperledger fabric but I didn't get any refrence for this. If anyone know anything about this please help me regarding this issue.
What type of documents i will need for apilayer node setup for go chaincode.
Related
Using BYFN I was able to fetch the Anchor Peers using Discovery Services.
Now I am trying use the same for Hyperledger Composer "fabric-dev-servers" network but getting null.
Has anyone tried it and can provide the changes that might be needed?
Thanks in Advance!
The fabric-dev-servers package is meant as a simple development fabric so that developers using composer can get up and running with a real fabric.
If you need discovery then it would make sense to stick with BYFN as the fabric you want to develop against, or to look at the various hyperledger fabric resources and build a fabric to your requirements.
I am trying to move from Hyperledger composer to Fabric and I was looking at creating a similar pattern as composer to associate a participant to a connection identity.
Did you guys already tried to implemente a similar schema/pattern in fabric smart contract ?
Thanks a lot for you help.
Am working on Hyperledger composer.I have developed the Chaincode in Go language. Is it possible to deploy the Chaincode written in Go language on a Hyperledger Composer Environment? Am using the latest composer version:0.19.12. please guide..
I dont think that is possible. Hyperledger Composer interacts with the Javascript runtime and does not communicate in any way with the GO runtime.
Hyperledger Composer business networks are capable of invoking chaincode from TP functions in the business network. So you can get a business network to interact with your GO Chaincode. You would use the getNativeAPI method inside a business network to get access to the stub and then can then perform an invokeChaincode request on that stub.
Hyperledger Composer doesn't provide a Fabric network, it requires a fabric network to be deployed to (a business network is, at the end of the day, chaincode).
I am using hyperledger composer for transaction invocation and all the stuffs related to resource(participants, assets etc) manipulation. I have generated the server using composer-rest-server, and also generated the angular frontend using yeoman generator.
This makes me to ask what is the use of fabric sdk? Will I need it in the above mentioned scenario?
Please clarify, thanks.
There are two ways to write chaincode in Hyperledger Fabric,
1) Using GoLang
2) Using NodeJS
In order to connect Hyperledger Fabric and Invoke chaincode transaction. You will require SDK. Based on your application technology stack, You can either use Fabric NodeJS SDK, Fabric Java SDK and Fabric Python SDK.
On other hand; Hyperledger composer is different way of writing chaincode, which is guide of framework which can help you to accelerate your chaincode development. If you have developed business network using composer, then you can either use "composer rest server" or "composer-admin" and "composer-client" node module. You dont need to use any SDK in order to interact with Business network deployed on hyperledger fabric. Kindly refer following diagram for more clarity.
If we can build a business network in composer playground online(or) locally and then deploy network in fabric, make a REST call from an angular app (user facing) to connect to blockchain.
Do I still need to learn about the fabric implementation or its infrastructure, When composer has provided me with necessary toolings to work with blockchain.
What am I missing in this ?
ps:I am still in the early phase of learning hyperledger and so not very clear as to use which and when.
Composer just provide necessary tools to work with blockchain.
But if you want to build your own blockchain network, You need to learn about fabric.
In composer guide, it mainly showed two fabric networks: One organization Hyperledger Fabric and Two organizations Hyperledger Fabric.
Let's say if you want to add one more organization or add one more peer node for each organization. You can't implement the requirements just utilize composer.
I'm also quite new to this. So if I understand well your answer lissdy, if I follow the developer tutorial (https://hyperledger.github.io/composer/tutorials/developer-tutorial.html) my network will be deployed but with only one peer ? And I need to use fabric to go further ?