Ejemplo n.º 1
0
        public override void Start()
        {
            _networkSynchronizer.Start();

            byte[][] assetIds = new byte[][] { CryptoHelper.GetRandomSeed(), CryptoHelper.GetRandomSeed(), CryptoHelper.GetRandomSeed() };
            _walletManager.IssueAssets("Vote for President", assetIds, new string[] { "Asset 1", "Asset 2", "Asset 3" }, 5005);

            Console.WriteLine("Check that Assets Issuance passed successfully and press <Enter>. Otherwise type 'exit' and press <Enter>.");
            string cmd = Console.ReadLine();

            if ("exit".Equals(cmd, StringComparison.InvariantCultureIgnoreCase))
            {
                return;
            }

            ConfidentialAccount confidentialAccount = new ConfidentialAccount
            {
                PublicViewKey  = ConfidentialAssetsHelper.GetTrancationKey(CryptoHelper.GetRandomSeed()),
                PublicSpendKey = ConfidentialAssetsHelper.GetTrancationKey(CryptoHelper.GetRandomSeed())
            };

            _walletManager.SendAssetToUtxo(assetIds, 1, 5005, confidentialAccount);
        }