Idemix Hyperledger Fabric - PullRequest
       7

Idemix Hyperledger Fabric

0 голосов
/ 01 апреля 2020

Я внедряю ZKP в HyperLedger Fabri c с помощью Idemix. Я уже изменил конфигурационные файлы в соответствии с https://hyperledger-fabric.readthedocs.io/en/release-2.0/idemix.html

Но я не знаю, где реализовать третий шаг:

Рассмотрим пользователя. Напомним, что Java SDK является API для пользователя.

There is only a single additional API call required in order to use Idemix with the Java SDK: the idemixEnroll method of the org.hyperledger.fabric_ca.sdk.HFCAClient class. For example, assume hfcaClient is your HFCAClient object and x509Enrollment is your org.hyperledger.fabric.sdk.Enrollment associated with your X509 certificate.

The following call will return an org.hyperledger.fabric.sdk.Enrollment object associated with your Idemix credential.

IdemixEnrollment idemixEnrollment = hfcaClient.idemixEnroll(x509enrollment, "idemixMSPID1");
Note also that IdemixEnrollment implements the org.hyperledger.fabric.sdk.Enrollment interface and can, therefore, be used in the same way that one uses the X509 enrollment object, except, of course, that this automatically provides the privacy enhancing features of Idemix.

В какие классы я должен включить этот вызов?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...