Example #1
0
        public void TestCreateAccount2()
        {
            MyWallet      wallet   = new MyWallet();
            Contract      contract = Contract.Create(new ContractParameterType[] { ContractParameterType.Boolean }, new byte[] { 1 });
            WalletAccount account  = wallet.CreateAccount(contract, UT_Crypto.generateCertainKey(32).PrivateKey);

            account.Should().NotBeNull();

            wallet  = new MyWallet();
            account = wallet.CreateAccount(contract, (byte[])(null));
            account.Should().NotBeNull();
        }
Example #2
0
 public static void ClassInit(TestContext context)
 {
     glkey   = UT_Crypto.generateCertainKey(32);
     nep2Key = glkey.Export("pwd", 0, 0, 0);
 }
Example #3
0
 public static void ClassInit(TestContext context)
 {
     glkey   = UT_Crypto.generateCertainKey(32);
     nep2Key = glkey.Export("pwd", ProtocolSettings.Default.AddressVersion, 2, 1, 1);
 }
Example #4
0
 public void TestSetup()
 {
     key = UT_Crypto.generateCertainKey(32);
 }