Exemple #1
0
        public static Address New()
        {
            var newAddress   = new Address();
            var keyValuePair = RSAHelper.CreateKeyPair();

            newAddress.PrivateKey = keyValuePair.Item1;
            newAddress.PublicKey  = keyValuePair.Item2;
            newAddress.Key        = HashHelper.GenerateAddress(newAddress.PublicKey);
            return(newAddress);
        }