Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperledger fabric gRPC interaction

I've been messing around with gRPC and I was looking into building my own simple and comprehensive hyperledger fabric SDK in rust.

I've looked everywhere for any gRPC spec of hyperledger fabric to see how we can reproduce the functionality of interacting with the peers, stuff like managing channels and performing invokes and queries.

(reproduce this behavior: https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchannel.html).

Online, everyone says that the functionality is exposed over gRPC, but that they recommend using an existing SDK.

I've inspected the nodeJS SDK and looked for their .proto files, but there are barely any services (https://github.com/hyperledger/fabric-sdk-node/tree/release-1.4/fabric-client/lib/protos)

Is there any way to get their gRPC spec? is there a generic way to do this for gRPC servers? Why is it so hidden?

Thanks!

like image 774
Enrique Alcázar Garzás Avatar asked Oct 15 '22 10:10

Enrique Alcázar Garzás


1 Answers

I believe the protos are recently relocated to https://github.com/hyperledger/fabric-protos for the master branch, which is not yet released.

For an as current 1.4 based project, look at the protos/ directory in the main fabric repository. https://github.com/hyperledger/fabric/tree/release-1.4/protos

like image 78
mhb Avatar answered Oct 21 '22 04:10

mhb