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
26 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 16,450 points

Related Questions In Blockchain

+1 vote
1 answer
+1 vote
1 answer
0 votes
1 answer
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
• 27,620 points
36 views
+1 vote
1 answer
+1 vote
2 answers
+1 vote
7 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.