Hyperledger Fabric SDK Design Role of the application

0 votes
When using an application which utilizes a hyperledger fabric network the application has an identity, e.g. a user identity. When invoking functions, it has to be send to and singed by all endorsing peers. The application needs to handle this whole process, so it has to have knowledge about the blockchain network/logic.

I think that this might not be a good design for an sdk. It would be better that the application connects to a peer and sends it invocation request to the connected peer. The peer then handles all the blockchain logic, including the endorsement and the sending to the orderer peer.

E.g. Tendermint does it like this. The interface between application and blockchain then becomes thin and easy to work with.

Is this also possible with hyperledger fabric sdk? E.g. assume there is an endorsement policy which states that two peers have to endorse a transaction. It is possible to communicate just whith one peer and let it automatically handle the whole transaction flow?
Nov 6, 2018 in Blockchain by Christine
• 15,790 points
830 views

1 answer to this question.

0 votes

When invoking functions, it has to be send to and singed by all endorsing peers. The application needs to handle this whole process, so it has to have knowledge about the blockchain network/logic.

Yep, unfortunately, right now - the application needs to code the endorsement policy logic inside of it. Another problematic aspect is that it needs to be preconfigured with the endpoints of the peers.

However, not for long! hopefully in v1.2 or v1.3 Fabric will have a service discoverymechanism in which the Fabric SDK would query peers for network metadata information, like where are the other peers running, and also for information like "given chaincode foo in channel bar, which peers should I ask endorsements from?" And the application won't have to deal with all that infrastructure-level knowledge, and would focus only on business logic.

answered Nov 6, 2018 by Perry
• 17,100 points

Related Questions In Blockchain

+1 vote
1 answer
+1 vote
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,401 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
924 views
+1 vote
1 answer
+1 vote
2 answers
+1 vote
7 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP