예제 #1
0
        static void Main(string[] args)
        {
            var iconService = new IconSignService();
            var keyPair     = iconService.GenerateKeyPair();

            Console.WriteLine($"PrivateKey: {keyPair.PrivateKey}");
            Console.WriteLine($"Address(PublicAddress): {keyPair.Address}");
            Console.ReadLine();
        }
예제 #2
0
        public void GenerateKeyPairTest()
        {
            IconSignService service = new IconSignService();

            var keyPair = service.GenerateKeyPair();

            Assert.NotNull(keyPair);
            Assert.NotNull(keyPair.PrivateKey);
            Assert.NotNull(keyPair.Address);
        }