static public async Task createPatientCredentialDefinitions(
            LedgerController ledger)
        {
            GovernmentSchemasModel model =
                GovernmentSchemasModel.importFromJsonFile();
            // create cred def that defines trusted party with emergency secret
            await ledger.createCredDef(
                model.emergency_trusted_parties_schema,
                "ETP");

            // create cred def for emergency EHR access data
            await ledger.createCredDef(
                model.shared_secret_schema,
                "ESS");

            // create cred def for wallet backup data
            await ledger.createCredDef(
                model.shared_secret_schema,
                "WBSS");

            // create cred def for EHR data
            await ledger.createCredDef(
                model.electronic_health_record_schema,
                "EHR");

            return;
        }
示例#2
0
 public SetupFacilitator(ref WalletController wallet,
                         ref LedgerController ledger)
 {
     d_wallet = wallet;
     d_ledger = ledger;
 }