public void Initialize() { string file = Environment.GetEnvironmentVariable("POOL_GENESIS_FILE"); if (string.IsNullOrEmpty(file)) { file = PoolUtils.GenerateGenesisFile(); _filesCreated.Add(file); } _pool = IndyDotNet.Pool.Factory.GetPool("WriteDidAndQueryVeryKeyDemoPool", file); _pool.Create(); _pool.Open(); WalletConfig config = new WalletConfig() { Id = "WriteDidAndQueryVeryKeyDemoWalletId" }; WalletCredentials credentials = new WalletCredentials() { Key = "8dvfYSt5d1taSd6yJdpjq4emkwsPDDLYxkNFysFD2cZY", KeyDerivationMethod = KeyDerivationMethod.RAW }; _wallet = IndyDotNet.Wallet.Factory.GetWallet(config, credentials); _wallet.Create(); _wallet.Open(); }
public void Initialize() { string file = PoolUtils.GenerateGenesisFile(); _filesCreated.Add(file); _pool = IndyDotNet.Pool.Factory.GetPool("AllPaymentsTestsPool", file); _pool.Create(); _pool.Open(); WalletConfig config = new WalletConfig() { Id = "AllPaymentsTestWalletId" }; WalletCredentials credentials = new WalletCredentials() { Key = "8dvfYSt5d1taSd6yJdpjq4emkwsPDDLYxkNFysFD2cZY", KeyDerivationMethod = KeyDerivationMethod.RAW }; _wallet = IndyDotNet.Wallet.Factory.GetWallet(config, credentials); _wallet.Create(); _wallet.Open(); }
public void Initialize() { string file = PoolUtils.GenerateGenesisFile(); _filesCreated.Add(file); _pool = IndyDotNet.Pool.Factory.GetPool("AllCryptoTestsPool", file); _pool.Create(); _pool.Open(); WalletConfig config = new WalletConfig() { Id = "AllCryptoTestsWalletId" }; WalletCredentials credentials = new WalletCredentials() { Key = "8dvfYSt5d1taSd6yJdpjq4emkwsPDDLYxkNFysFD2cZY", KeyDerivationMethod = KeyDerivationMethod.RAW }; _wallet = IndyDotNet.Wallet.Factory.GetWallet(config, credentials); _wallet.Create(); _wallet.Open(); IdentitySeed seed = new IdentitySeed() { Seed = "00000000000000000000000000000My1" }; _senderDid = IndyDotNet.Did.Factory.CreateMyDid(_pool, _wallet, seed); }
public void Initialize() { string file = PoolUtils.GenerateGenesisFile(); _filesCreated.Add(file); _genesisFileName = file; }
public void Initialize() { string file = Environment.GetEnvironmentVariable("POOL_GENESIS_FILE"); // throw new Exception($"environment variable POOL_GENESIS_FILE is {file}"); if (string.IsNullOrEmpty(file)) { file = PoolUtils.GenerateGenesisFile(); _filesCreated.Add(file); } _pool = IndyDotNet.Pool.Factory.GetPool("IssueCredentialDemoPool", file); _pool.Create(); _pool.Open(); WalletConfig config = new WalletConfig() { Id = "IssueCredentialDemoWalletId" }; _wallet = IndyDotNet.Wallet.Factory.GetWallet(config, _credentials); _wallet.Create(); _wallet.Open(); }
public void CreatePoolWithValidGenesisFile() { string file = PoolUtils.GenerateGenesisFile(); IPool pool = Factory.GetPool("CreatePool", file); pool.Create(); Assert.IsTrue(System.IO.File.Exists(file), "expected to find genesis file created."); pool.Delete(); }
public void ListPoolTest() { string file = PoolUtils.GenerateGenesisFile(); IPool pool = Factory.GetPool("ListPool", file); pool.Create(); List <IPool> pools = Factory.ListPools(); Assert.IsNotNull(pools); pool.Delete(); Assert.IsTrue(0 < pools.Count, "expected to find at least one pool"); }