How to get the public key of a client inside the chaincode ? #fabric-chaincode #signcerts


K Sanjay Kumar
 

I want to create a  verifiable public key log of clients. These public keys are then queried to perform off chain verification of documents issued by the corresponding private key. 


I looked through "clientIdentity" class (https://hyperledger.github.io/fabric-chaincode-node/release-2.2/api/fabric-shim.ClientIdentity.html) , and I couldn't find anything that would return me public key of the client.  

Is there any built in libraries already available? Or could anyone please guide me where and how to add this function. 

Join fabric@lists.hyperledger.org to automatically receive all group messages.