Exemplo n.º 1
0
        public async Task createDoctorWallets(string issuer, string issuerDid)
        {
            var exists = await d_wallet.exists("Doctor1");

            if (exists)
            {
                Console.WriteLine("Doctor wallets already exists.");
                return;
            }
            await createAndPublishWallet(issuer, issuerDid, "Doctor1",
                                         "0000000000000000000000000Doctor1");
            await initialize("Doctor1");

            await CredDefFacilitator.createPatientCredentialDefinitions(d_ledger);

            await createAndPublishWallet(issuer, issuerDid, "Doctor2",
                                         "0000000000000000000000000Doctor2");
            await initialize("Doctor2");

            await CredDefFacilitator.createPatientCredentialDefinitions(d_ledger);

            await createAndPublishWallet(issuer, issuerDid, "Doctor3",
                                         "0000000000000000000000000Doctor3");
            await initialize("Doctor3");

            await CredDefFacilitator.createPatientCredentialDefinitions(d_ledger);
        }