예제 #1
0
        static public async Task <string> getCredDef(string tag, WalletController wallet)
        {
            string list = await wallet.listCredDefs();

            JArray a = JArray.Parse(list);

            foreach (var o in a.Children())
            {
                string id = o["id"].ToString();
                if (id.Contains(tag))
                {
                    return(o["value"].ToString());
                }
            }
            return("No credential matches the tag: " + tag);
        }
예제 #2
0
 public SetupFacilitator(ref WalletController wallet,
                         ref LedgerController ledger)
 {
     d_wallet = wallet;
     d_ledger = ledger;
 }
예제 #3
0
 public LedgerController(ref PoolController poolController,
                         ref WalletController walletController)
 {
     d_poolController   = poolController;
     d_walletController = walletController;
 }