hyperledger/fabric-sdk-py

How can I retrieve user identity?

sfl0r3nz05 opened this issue · 0 comments

Hi,

Following manual instructions I can create a user and store the identity in e.g., FileSystenWallet. However, I need to recover that identity in a different code location. I have tried:

user1_cert = wallet.Identity("user1", user1Enrollment)._EnrollmentCert, but it depends of user1Enrollment , so I get an error that the user has been registered.

res = identityService.getOne('user1', admin), allows to recover information of user1 but no the certified to e.g. query the blockchain,

image

Thanks in advance.