예제 #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();
        }
예제 #2
0
 public static void ClassInit(TestContext context)
 {
     glkey   = UT_Crypto.generateCertainKey(32);
     nep2Key = glkey.Export("pwd", 0, 0, 0);
 }
예제 #3
0
파일: UT_Wallet.cs 프로젝트: wsjq5477/neo
 public static void ClassInit(TestContext context)
 {
     glkey   = UT_Crypto.generateCertainKey(32);
     nep2Key = glkey.Export("pwd", ProtocolSettings.Default.AddressVersion, 2, 1, 1);
 }
예제 #4
0
 public void TestSetup()
 {
     key = UT_Crypto.generateCertainKey(32);
 }